@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
}

:root {
  --paper: #F1F4F2;
  --ink: #0E2A2E;
  --silt: #55645F;
  --rule: #C7D0CB;
  --wash: #E3E9E5;
  --flare: #FF4D17;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 750;
  font-stretch: 80%;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.head-link { font-weight: 600; font-size: 0.975rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-top: clamp(2.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  font-weight: 760;
  font-stretch: 78%;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.brand-line {
  margin: 0 0 1.25rem;
  max-width: var(--measure);
  color: var(--silt);
  font-size: 1rem;
}
.lead {
  margin: 0 0 2rem;
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 650;
  padding: 0.85rem 1.35rem;
  border-radius: 3px;
}
.button:hover { background: #17414A; }
.quiet-link { font-weight: 600; }
.hero-note { margin: 1rem 0 0; max-width: var(--measure); }

/* The limit figure */
.limit {
  margin: 0;
  border-left: 3px solid var(--ink);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}
.limit-figure {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 0.82;
  margin-bottom: 1.1rem;
}
.limit-value {
  font-size: clamp(6.5rem, 15vw, 12.5rem);
  font-weight: 860;
  font-stretch: 62%;
  letter-spacing: -0.03em;
  color: var(--flare);
}
.limit-unit {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  font-stretch: 75%;
}
.limit figcaption {
  max-width: 24rem;
  font-size: 1rem;
  color: var(--silt);
}
.limit figcaption strong { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .limit-value {
    display: inline-block;
    animation: rise 900ms cubic-bezier(.2,.7,.1,1) 150ms both;
  }
  @keyframes rise {
    from { transform: translateY(0.25em); opacity: 0; clip-path: inset(100% 0 0 0); }
    to { transform: none; opacity: 1; clip-path: inset(0 0 0 0); }
  }
}

/* Ledger of counts */
.ledger-band {
  background: var(--wash);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.ledger-band h2 { margin-top: 0; }
.glance-head { margin-bottom: 1.5rem; }
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin: 0;
}
.ledger div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.ledger dt {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: 62%;
  text-align: right;
}
.ledger dd { margin: 0; max-width: 30rem; }

/* Sections */
.section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
}
h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  font-weight: 740;
  font-stretch: 80%;
  letter-spacing: -0.01em;
}
.section-body { max-width: 42rem; }
.section-wide { grid-template-columns: minmax(0, 1fr); }
.section-wide .section-body { max-width: none; }
.section-wide h2 { margin-bottom: 0.25rem; }
.section-wide .section-body > p:first-child { max-width: 42rem; }
.section-body > :first-child { margin-top: 0; }
.section-body p { margin: 0 0 1rem; }

.contents { margin: 0; padding: 0; list-style: none; }
.contents li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.contents li:last-child { border-bottom: 1px solid var(--rule); }
.contents b { font-weight: 700; }

.fields {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}
.fields li { break-inside: avoid; margin-bottom: 0.4rem; }

.rivers { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.rivers li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.rivers li:first-child { border-top: 1px solid var(--rule); }
.rivers span { color: var(--silt); text-align: right; }

.gaps { margin: 0; padding-left: 1.1rem; }
.gaps li { margin-bottom: 0.75rem; }

/* Sample table */
.table-scroll { overflow-x: auto; margin: 0 0 1rem; -webkit-overflow-scrolling: touch; }
.sample { border-collapse: collapse; width: 100%; min-width: 52rem; font-size: 0.9375rem; line-height: 1.4; }
.sample th, .sample td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-top: 1px solid var(--rule); }
.sample thead th { font-weight: 700; border-top: none; border-bottom: 2px solid var(--ink); padding-top: 0; }
.sample tbody th { font-weight: 700; white-space: nowrap; }
.sample tbody tr:last-child th, .sample tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.sample em { font-style: normal; color: var(--silt); }

/* Price */
.price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.price-value {
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 0.9;
  font-weight: 840;
  font-stretch: 62%;
}
.price-note { color: var(--silt); }
.terms { margin: 0 0 1.75rem; padding-left: 1.1rem; }
.terms li { margin-bottom: 0.6rem; }

.fine { color: var(--silt); font-size: 0.95rem; }

/* Footer */
.site-foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--silt);
}
.foot-inner {
  border-top: 3px solid var(--ink);
  padding-top: 1.5rem;
}
.site-foot p { margin: 0 0 0.6rem; max-width: 46rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; color: var(--ink); font-weight: 600; }

/* Privacy page */
.doc { max-width: 42rem; padding-top: clamp(2rem, 6vw, 4rem); }
.doc h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  font-weight: 760;
  font-stretch: 78%;
}
.doc h2 { margin: 2.25rem 0 0.6rem; font-size: 1.4rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.1rem; }
.doc li { margin-bottom: 0.45rem; }

/* Mobile */
@media (max-width: 52rem) {
  .hero, .section { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: start; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .fields { columns: 1; }
}
@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .lead { font-size: 1.0625rem; }
  .contents li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .ledger div { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .ledger dt { font-size: 2.2rem; }
  .head-link { font-size: 0.9rem; }
}

@media print {
  body { background: #fff; }
  .ledger-band { background: none; }
  .actions { display: none; }
}
