@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #132933;
  --muted: #4f6267;
  --line: #c7d0cf;
  --surface: #fbfcf9;
  --orange: #ba4e25;
  --a: #177a70;
  --b: #b54f2c;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f0f3ef;
  color: var(--ink);
  font:
    16px/1.45 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input[type="range"] {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
}
a:hover,
button.plain:hover,
.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d58042;
  outline-offset: 3px;
}
.wrap {
  width: min(1260px, calc(100% - 72px));
  margin: auto;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.nav,
.brand,
.nav nav,
.intro,
.kicker,
.section-head,
.event-top,
.event-result,
.map-key,
.fix-strip,
.scrub,
.pages,
.pages > div,
.filters,
.dialog-head {
  display: flex;
  align-items: center;
}
.nav {
  height: 66px;
  justify-content: space-between;
}
.brand {
  gap: 9px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -1px;
  font-size: 24px;
}
.brand:hover {
  text-decoration: none;
}
.nav nav {
  gap: 25px;
}
.nav nav a,
.plain {
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}
.plain {
  border: 0;
  padding: 7px 0;
  background: transparent;
}
.intro {
  justify-content: space-between;
  gap: 20px;
  padding: 33px 0 27px;
}
.kicker,
.overline,
.archive-stamp span,
.surface-unit,
.map-key {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 620;
}
.kicker {
  gap: 8px;
  color: var(--muted);
}
.dash {
  width: 23px;
  height: 3px;
  background: var(--orange);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.result-card > strong,
.breakpoint > strong,
.archive-stamp > strong {
  font-family: var(--display);
  font-weight: 600;
}
h1 {
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
}
h1 span {
  color: var(--orange);
}
.intro p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.archive-stamp {
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 17px;
  white-space: nowrap;
}
.archive-stamp > * {
  display: block;
}
.archive-stamp strong {
  font-size: 28px;
  line-height: 1.2;
}
.archive-stamp span {
  font-size: 12px;
  color: var(--muted);
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(290px, 1fr);
  gap: 16px;
}
.box,
.event {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.box {
  background: var(--surface);
}
.event {
  color: #eef6f6;
  background: #0d2231;
  border-color: #213b47;
  display: flex;
  flex-direction: column;
}
.event-top {
  justify-content: space-between;
  padding: 16px 22px 9px;
  gap: 12px;
}
.event .overline {
  color: #a4bdc2;
}
.event-top h2 {
  font-size: 34px;
  line-height: 1.1;
}
.event-result {
  border: 1px solid #628082;
  color: #dfebe8;
  padding: 5px 9px;
  font: 12px var(--mono);
  border-radius: 4px;
  white-space: nowrap;
}
.event-result.flip {
  color: #ffc19e;
  border-color: #8c6958;
}
#map {
  flex: 1;
  min-height: 230px;
  height: clamp(230px, 20vw, 295px);
  position: relative;
  overflow: hidden;
}
#map svg {
  display: block;
  width: 100%;
  height: 100%;
}
.map-loading {
  display: block;
  text-align: center;
  color: #bcc8d0;
}
.map-key {
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #bdd1d5;
  padding: 8px 22px 13px;
  border-bottom: 1px solid #39515b;
}
.map-key > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.key {
  width: 21px;
  height: 0;
  border-top: 2px solid;
}
.key.track {
  color: #f7bd6b;
}
.key.a {
  color: #53d5c1;
}
.key.b {
  color: #ff936c;
  border-top-style: dashed;
}
.fix-strip {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px 0;
}
.fix-strip strong,
.fix-strip small {
  display: block;
  font-size: 14px;
}
.fix-strip .overline {
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
}
.fix-wind {
  text-align: right;
}
.fix-strip small {
  font: 12px var(--mono);
  color: #bdd1d5;
}
.scrub {
  padding: 7px 22px 13px;
  gap: 9px;
}
.scrub button {
  height: 28px;
  width: 28px;
  font: 24px/1 var(--display);
  border: 1px solid #526b74;
  color: white;
  background: transparent;
  border-radius: 3px;
}
.scrub input {
  flex: 1;
  min-width: 0;
  accent-color: #f5af75;
}
.scrub span {
  font: 12px var(--mono);
  color: #bfd0d5;
  white-space: nowrap;
}
.overline,
.surface-unit {
  color: var(--muted);
  display: inline-block;
}
h2 {
  font-size: 33px;
  letter-spacing: -0.015em;
  line-height: 1.13;
}
.terms {
  padding: 18px 22px 14px;
}
.panel-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.field-label,
.filters label,
#coords label {
  font-weight: 620;
  font-size: 14px;
}
.field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}
.field-label small,
.comparison-inputs small {
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
}
input:not([type="range"]),
select {
  border: 1px solid #b8c3c3;
  background: #fff;
  border-radius: 4px;
  padding: 7px 9px;
  max-width: 100%;
  height: 37px;
  min-width: 0;
}
select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23475a5f' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  padding-right: 31px;
}
#site,
#limit {
  width: 100%;
}
.comparison-inputs {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 7px 8px;
  align-items: center;
  margin: 14px 0;
}
.comparison-inputs label {
  font-size: 14px;
}
.comparison-inputs input,
#limit,
#coords input {
  font: 15px var(--mono);
}
.comparison-inputs > strong {
  font-size: 14px;
}
.col-a {
  color: var(--a);
}
.col-b {
  color: var(--b);
}
.col-a i,
.col-b i,
.disc {
  display: inline-block;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  background: currentColor;
}
.disc.a {
  background: var(--a);
}
.disc.b {
  background: var(--b);
}
#coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
#coords input {
  display: block;
  width: 100%;
  margin-top: 3px;
}
.run {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 10px 13px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 680;
}
.run:hover {
  background: #26444d;
}
.run span {
  color: #bbbfb4;
}
#form-status {
  display: block;
  color: var(--muted);
  font-size: 12px;
  min-height: 0;
  margin-top: 4px;
}
.outcome {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  margin-top: 16px;
}
.result-card,
.breakpoint {
  padding: 15px 22px;
  min-width: 0;
}
.result-card {
  border-right: 1px solid var(--line);
}
.result-card > strong,
.breakpoint > strong {
  display: block;
  line-height: 1.12;
  font-size: 40px;
  margin: 4px 0;
}
.result-card small,
.breakpoint p,
.surface p {
  font-size: 14px;
  color: var(--muted);
}
.breakpoint {
  background: #e9efea;
}
.breakpoint > strong {
  font-size: 29px;
}
.text-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 650;
  color: #165b56;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breakpoint button {
  margin-top: 4px;
}
.ledger,
.surface {
  margin-top: 22px;
  padding: 22px;
}
.section-head,
.pages,
.dialog-head {
  justify-content: space-between;
  gap: 12px;
}
.secondary,
.dialog-head button {
  border: 1px solid #afbab8;
  background: transparent;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 620;
}
.secondary:hover:not(:disabled),
.dialog-head button:hover {
  background: #e6eeea;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0;
  border-block: 1px solid var(--line);
  padding: 10px 0;
}
.metrics span {
  font-size: 13px;
  color: var(--muted);
}
.metrics b {
  font: 600 26px var(--display);
  color: var(--ink);
  margin-right: 6px;
}
.filters {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.filters label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.filters input {
  width: 150px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #d7dfda;
}
th {
  background: #edf2ee;
  color: #465b61;
  font-size: 12px;
  font-weight: 650;
}
td {
  font-family: var(--mono);
  font-size: 13px;
}
td:first-child {
  font-family: inherit;
}
td button {
  border: 0;
  padding: 2px 0;
  text-align: left;
  background: none;
  color: #194f51;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
tbody tr.active {
  background: #e6efea;
}
.pages {
  margin-top: 12px;
}
.pages > div {
  gap: 6px;
}
.pages > span {
  font-size: 13px;
  color: var(--muted);
}
.surface p {
  margin: 10px 0 14px;
}
.surface table {
  min-width: 415px;
}
.surface th,
.surface td {
  text-align: center;
  padding: 3px;
  border: 0;
}
.surface td button {
  width: 100%;
  height: 33px;
  border: 1px solid #c5d7d1;
  display: block;
  text-align: center;
  font-family: var(--mono);
  text-decoration: none;
  color: #173833;
  border-radius: 3px;
}
.surface td button:hover,
.surface td button:focus-visible {
  box-shadow: inset 0 0 0 2px #1c5952;
}
.surface td button.chosen {
  box-shadow: inset 0 0 0 2px #b85331;
}
.surface td:first-child,
.surface th {
  white-space: nowrap;
}
.surface th {
  background: transparent;
}
.surface-unit {
  font-size: 12px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  padding: 24px 0 30px;
  color: var(--muted);
  font-size: 13px;
}
footer span {
  margin-right: auto;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #9aadae;
  padding: 24px;
  max-width: min(570px, 90vw);
  border-radius: 8px;
}
dialog::backdrop {
  background: #10222bc9;
}
dialog p {
  margin: 13px 0;
  font-size: 15px;
}
#loading {
  padding: 42px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.downloads {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.ledger td small {
  display: block;
  color: var(--muted);
  font: 11px var(--mono);
  margin-top: 1px;
}
.loss {
  margin-top: 20px;
  padding: 16px 22px;
}
.loss summary {
  cursor: pointer;
  font-weight: 650;
}
.loss p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0;
}
.loss form {
  max-width: 540px;
}
.loss label {
  font-size: 14px;
  font-weight: 620;
}
.loss textarea {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
  padding: 9px;
  font: 14px var(--mono);
  margin: 5px 0 8px;
  resize: vertical;
}
.loss #loss-result {
  margin-top: 10px;
}
.downloads #brief {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
@media (max-width: 700px) {
  .ledger .section-head {
    flex-wrap: wrap;
  }
  .loss {
    padding: 14px;
  }
}
@media (min-width: 1450px) {
  .intro {
    padding: 40px 0 31px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .workbench {
    grid-template-columns: minmax(0, 1.55fr) minmax(275px, 1fr);
    gap: 10px;
  }
  .terms {
    padding-inline: 14px;
  }
  .result-card,
  .breakpoint {
    padding: 13px;
  }
  .archive-stamp {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .result-card > strong {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .nav {
    height: 54px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .nav nav {
    gap: 14px;
  }
  .intro {
    padding: 21px 0 18px;
  }
  .intro p {
    font-size: 14px;
    max-width: 42ch;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .event-top {
    padding: 12px 14px 6px;
  }
  .map-key {
    padding-inline: 14px;
  }
  .fix-strip {
    padding-inline: 14px;
  }
  .scrub {
    padding: 7px 14px 11px;
  }
  .terms {
    padding: 14px;
  }
  .panel-header {
    padding-bottom: 7px;
    margin-bottom: 9px;
  }
  .comparison-inputs {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .outcome {
    grid-template-columns: 1fr 1fr;
  }
  .breakpoint {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
  }
  .outcome > .result-card:nth-child(2) {
    border-right: 0;
  }
  .ledger,
  .surface {
    padding: 14px;
    margin-top: 14px;
  }
  .filters {
    align-items: flex-start;
  }
  .filters label {
    display: grid;
    font-size: 13px;
    gap: 3px;
  }
  .filters select {
    max-width: 180px;
  }
  .filters input {
    max-width: 130px;
  }
  .surface-unit {
    display: none;
  }
  .event-result {
    font-size: 11px;
  }
  th,
  td {
    padding: 7px;
  }
  .ledger table {
    min-width: 465px;
  }
  .nav nav a,
  .nav nav button {
    font-size: 13px;
  }
  .section-head h2 {
    font-size: 29px;
  }
  .intro h1 {
    font-size: clamp(2.6rem, 9.6vw, 3.5rem);
  }
  footer span {
    width: 100%;
  }
  #map {
    min-height: 255px;
  }
}
@media print {
  .nav nav,
  .run,
  .scrub,
  .filters,
  .pages,
  .surface,
  .secondary,
  .text-btn,
  footer,
  .event-result {
    display: none;
  }
  .wrap {
    width: 100%;
  }
  .intro {
    padding: 10px 0;
  }
  .workbench {
    grid-template-columns: 2fr 1fr;
  }
  .box,
  .event {
    break-inside: avoid;
  }
  body {
    background: white;
  }
  .event {
    print-color-adjust: exact;
  }
}
