/* Estuary public site. Same tokens as the Estuary Reader (reader/style.css)
   so the two read as one brand. The two fonts are the reader's own files,
   served from this site; nothing loads from elsewhere. */
@font-face {
  font-family: "Archivo";
  src: url("/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/martian-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  --paper: #eef2f7;
  --sheet: #ffffff;
  --ink: #1e293b;
  --body: #334155;
  --soft: #64748b;
  --rule: #e2e8f0;
  --wash: #f1f5f9;
  --band: #0b0f1a;
  --band-text: #dbe5ee;
  --accent: #1d4ed8;
  --aqua: #67e8f9;
  --display: "Archivo", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0f1a;
    --sheet: #111827;
    --ink: #f2f6f9;
    --body: #dbe5ee;
    --soft: #93a4b3;
    --rule: #334155;
    --wash: #1e293b;
    --band: #060912;
    --accent: #67e8f9;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--body); font: 16px/1.6 var(--text); }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }

.wrap, .band-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Masthead band. The lockup matches the reader and the staff page: the
   32px river mark, then ESTUARY in Archivo. Here the maker sits under the
   wordmark. */
.band { background: var(--band); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; border-radius: 6px; }
.mark { display: block; flex: none; width: 32px; height: 32px; }
.lockup { display: flex; flex-direction: column; gap: 0.3rem; }
.wordmark { font: 800 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.tagline { font: 500 0.56rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--aqua); }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-left: auto; }
.nav a { color: var(--band-text); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: #fff; text-decoration: underline; }
.brand:focus-visible, .nav a:focus-visible { outline-color: var(--aqua); }

/* Hero, on the band */
.hero { background: var(--band); color: #fff; padding-block: 2.5rem 3rem; }
.kicker { margin-bottom: 0.75rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--aqua); }
.headline { max-width: 18ch; font: 800 clamp(2.2rem, 7vw, 3.6rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.lede { max-width: 38rem; margin-top: 1.25rem; font-size: 1.12rem; color: var(--band-text); }
.actions { margin-top: 1.75rem; }
.button { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 99px; background: var(--aqua); color: #0b0f1a; font-weight: 700; text-decoration: none; }
.button:hover { background: #a5f3fc; }
.button:focus-visible { outline-color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; margin-top: 2.5rem; padding: 0; list-style: none; }
.facts li { min-width: 0; padding: 0.9rem 1rem; border: 1px solid #263244; border-radius: var(--radius); color: var(--band-text); font-size: 0.9rem; line-height: 1.45; }
.facts strong { display: block; font: 800 2rem/1 var(--display); color: #fff; margin-bottom: 0.35rem; }

/* Sections */
.section { padding-block: 3rem 0; scroll-margin-top: 1rem; }
.section-title { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 1.1rem; font: 800 1.6rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.015em; color: var(--ink); }
.section-title .num { font-size: 1rem; color: var(--accent); }
h3 { margin-bottom: 0.4rem; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem; padding: 0; list-style: none; }
.card { min-width: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card p { max-width: 65ch; }
.card.lead { border-top: 4px solid var(--accent); }
.chip { display: inline-block; margin-bottom: 0.55rem; padding: 0.2rem 0.55rem; border-radius: 99px; font-size: 0.66rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; background: var(--wash); color: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { min-width: 0; padding: 1.1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--sheet); border-radius: 0 var(--radius) var(--radius) 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.3rem; font: 800 0.85rem/1 var(--display); color: var(--accent); letter-spacing: 0.08em; }

.contact .address { margin-top: 0.4rem; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; user-select: all; }

.footer { margin-top: 3.5rem; padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); color: var(--soft); font-size: 0.85rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }

@media (max-width: 40rem) {
  .nav { margin-left: 0; width: 100%; padding-top: 0.75rem; border-top: 1px solid #1c2738; }
  .hero { padding-block: 1.75rem 2.25rem; }
}
