@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #3a3a3c;
  --ink-deep: #2b2b2d;
  --orange: #e3682a;
  --paper: #ffffff;
  --tint: #f2f2f3;
  --rule: #c9c9cb;
  --muted: #646468;
  --on-ink-muted: #cfcfd1;
  --on-ink-rule: #68686b;

  --pad: clamp(1.25rem, 3.4vw, 3rem);
  --cell-x: clamp(0.75rem, 1.4vw, 1.25rem);
  --band: clamp(4.5rem, 9vw, 8.5rem);

  /* motion scale (durations and easings follow the transitions.dev tokens) */
  --duration-stagger: 40ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: var(--ink) var(--tint);
  accent-color: var(--orange);
  caret-color: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.125rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
h1, h2, p, ul, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
svg { width: 1.1em; height: 1.1em; flex: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: 90rem; margin-inline: auto; padding-inline: var(--pad); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--pad); top: -4rem; z-index: 10; padding: 0.7rem 1rem; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.08em; font-size: 1.625rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1; text-decoration: none; }
.logo svg { width: 1.08em; height: 1.08em; margin-top: 0.12em; }
nav { display: flex; gap: clamp(0.25rem, 2.2vw, 2rem); }
nav a { display: inline-flex; white-space: nowrap; align-items: center; min-height: 2.75rem; padding-inline: 0.4rem; font-size: 1.0625rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) no-repeat 0.4rem calc(100% - 0.55rem) / 0 2px; transition: background-size var(--duration-fast) var(--ease-smooth-out); }
nav a:hover, nav a:focus-visible { background-size: calc(100% - 0.8rem) 2px; }

/* ---------- opening: the logo and one question, then the page slides over it ---------- */
.open { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; min-height: 30rem; background: var(--ink); color: var(--paper); }
.open ::selection { background: var(--orange); color: var(--paper); }
.open-in { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding-block: 1.5rem 1.75rem; }
.open .logo { justify-self: start; min-height: 2.75rem; }
.open h1 { align-self: center; justify-self: center; text-align: center; max-width: 13ch; padding-bottom: 4vh; font-size: clamp(2.75rem, 8.2vw, 6rem); }
.open .w { display: inline-block; }
.open .x svg { width: 0.9em; height: 0.9em; margin-inline: 0.02em; vertical-align: -0.14em; overflow: visible; }
.open .x circle { fill: none; stroke: var(--orange); stroke-width: 3.6; stroke-dasharray: 101 100; transform: rotate(-90deg); transform-origin: 20px 20px; }
.open .x text { fill: var(--orange); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 25px; font-weight: 400; letter-spacing: 0; }
.down { justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--on-ink-muted); transition: color var(--duration-fast) var(--ease-smooth-out); }
.down svg { color: var(--orange); transition: transform var(--duration-fast) var(--ease-smooth-out); }
.down:hover { color: var(--paper); }
.down:hover svg { transform: translateY(4px); }
.page { position: relative; z-index: 1; background: var(--paper); }
.band-first { border-top: 0; }

/* ---------- headings and prose ---------- */
h1 { max-width: 15ch; font-size: clamp(2.6rem, 6.1vw, 5.5rem); font-weight: 500; line-height: 1.03; letter-spacing: -0.032em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.prose { max-width: 34rem; }
.prose-wide { max-width: 46rem; }
.prose h2 { margin-bottom: 1.5rem; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--ink); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); text-wrap: pretty; }

.more { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.more svg { transition: transform var(--duration-fast) var(--ease-smooth-out); }
.more:hover svg { transform: translateX(4px); }
.more:hover svg:has(use[href="#arrow-out"]) { transform: translate(3px, -3px); }

/* ---------- the sheet (tables) ---------- */
.sheet { width: 100%; border-collapse: collapse; text-align: left; }
.sheet thead th { padding: 0.7rem var(--cell-x); border-bottom: 2px solid var(--ink); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.sheet td, .sheet tbody th { padding: 1.25rem var(--cell-x); border-bottom: 1px solid var(--rule); vertical-align: middle; font-weight: 400; }

/* hero sheet */
.hero { padding-block: clamp(3rem, 6.5vw, 5.5rem) var(--band); }

/* plain pages (thanks, 404) */
.plain .hero { min-height: 70vh; }
.plain h1 { max-width: none; }
.lede { margin-block: 1.5rem 1.5rem; font-size: 1.25rem; }

/* ---------- bands ---------- */
.band { padding-block: var(--band); border-top: 2px solid var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }

.sheet-areas { font-size: clamp(1.4rem, 2.5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
.sheet-areas td { padding-block: clamp(1rem, 1.7vw, 1.5rem); }

.nw { white-space: nowrap; }
.statement { max-width: 24em; font-size: clamp(1.45rem, 2.5vw, 2.25rem); line-height: 1.22; letter-spacing: -0.015em; text-wrap: pretty; }
.split-tables { margin-top: clamp(2.5rem, 5vw, 4rem); }
.after { margin-top: 2rem; padding-inline: var(--cell-x); }

/* ---------- open source ---------- */
.links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.1rem 2.5rem; }

/* ---------- contact ---------- */
.contact { padding-top: var(--band); background: var(--ink); color: var(--paper); scrollbar-color: var(--on-ink-rule) var(--ink); }
.contact ::selection { background: var(--orange); color: var(--paper); }
.contact .prose p { color: var(--on-ink-muted); }
.contact h2 { font-size: clamp(2.6rem, 6.1vw, 5.5rem); letter-spacing: -0.032em; line-height: 1.03; }
.reach { margin-block: 1.75rem 1.75rem !important; }
.reach a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 500; text-decoration-color: var(--orange); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.reach a:hover { color: var(--orange); }

.send { border-top: 2px solid var(--paper); }
.field { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--on-ink-rule); transition: border-color var(--duration-quick) var(--ease-smooth-out); }
.field:focus-within { border-bottom-color: var(--orange); }
.field-area { align-items: start; }
.field label { padding: 1.1rem var(--cell-x); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.field label span { display: block; color: var(--on-ink-muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.field input, .field textarea { width: 100%; min-height: 3.75rem; padding: 1rem var(--cell-x); border: 0; border-radius: 0; background: transparent; color: var(--paper); font: inherit; font-size: 1.1875rem; resize: vertical; }
.field textarea { display: block; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; background: var(--ink-deep); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--paper); box-shadow: 0 0 0 100px var(--ink-deep) inset; }
.field.is-bad { border-bottom-color: var(--orange); }
.field.is-bad label::after { content: " required"; color: var(--orange); letter-spacing: 0; text-transform: none; }
.send button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 4.75rem; padding: 1.25rem var(--cell-x); border: 0; border-radius: 0; background: var(--orange); color: var(--paper); font: inherit; font-size: clamp(1.15rem, 1.65vw, 1.5rem); font-weight: 600; text-align: left; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-smooth-out), color var(--duration-fast) var(--ease-smooth-out); }
.send button svg { transition: transform var(--duration-fast) var(--ease-smooth-out); }
.send button:hover, .send button:focus-visible { background: var(--paper); color: var(--ink); }
.send button:hover svg { transform: translateX(5px); }
.send button:focus-visible { outline-color: var(--orange); }
.send button[disabled] { cursor: progress; background: var(--on-ink-rule); color: var(--paper); }
.send.is-sent button { cursor: default; background: var(--paper); color: var(--ink); }
.note { min-height: 1.6em; margin-top: 0.9rem; padding-inline: var(--cell-x); font-size: 1rem; color: var(--on-ink-muted); }
.note a { color: var(--paper); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2.5rem; margin-top: var(--band); padding-block: 1.75rem; border-top: 1px solid var(--on-ink-rule); font-size: 1rem; color: var(--on-ink-muted); }
.foot .logo { color: var(--paper); font-size: 1.375rem; margin-right: auto; }
.foot ul { display: flex; gap: 1.5rem; }
.foot a:not(.logo) { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot a:not(.logo):hover { color: var(--paper); }

/* ---------- the one authored moment: the question arrives and the x is drawn ---------- */
@media (prefers-reduced-motion: no-preference) {
  .open .w { animation: rise 700ms var(--ease-smooth-out) both; }
  .open .w:nth-child(1) { animation-delay: 80ms; }
  .open .w:nth-child(2) { animation-delay: 140ms; }
  .open .w:nth-child(3) { animation-delay: 200ms; }
  .open .w:nth-child(4) { animation-delay: 260ms; }
  .open .w:nth-child(5) { animation-delay: 520ms; }
  .open .w:nth-child(6) { animation-delay: 580ms; }
  .open .w:nth-child(7) { animation-delay: 640ms; }
  .open .x circle { animation: draw 900ms var(--ease-smooth-out) 320ms both; }
  .open .x text { animation: fade 400ms ease-out 760ms both; }
  .open .down { animation: fade 600ms ease-out 1200ms both; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.25em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes draw { from { stroke-dashoffset: 101; } to { stroke-dashoffset: 0; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* ---------- narrow screens: each row becomes a labelled block ---------- */
@media (max-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: 40rem; }
}
@media (max-width: 44rem) {
  body { font-size: 1.0625rem; }
  html { scroll-padding-top: 4rem; }
  .top-in { min-height: 4rem; }
  .logo { font-size: 1.375rem; }
  nav a { font-size: 1rem; padding-inline: 0.3rem; }
  .after { padding-inline: 0; }
  nav a { padding-inline: 0.25rem; }
  .sheet-areas thead th, .sheet-areas td { padding-inline: 0; }
  .field { grid-template-columns: minmax(0, 1fr); }
  .field label { padding: 0.9rem 0 0; }
  .field input, .field textarea { padding-inline: 0; }
  .field input:focus-visible, .field textarea:focus-visible { background: transparent; }
  .send button { padding-inline: 1rem; font-size: 1.25rem; }
  .note { padding-inline: 0; }
  .foot .logo { width: 100%; }
}

@media (max-width: 30rem) {
  .top .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .top .logo svg { width: 2rem; height: 2rem; margin-top: 0; }
  .top .logo { min-width: 2.75rem; min-height: 2.75rem; }
  .top-in { gap: 0.5rem; }
  nav { gap: 0; }
  nav a { font-size: 0.9375rem; }
}

@media (max-width: 23rem) {
  nav a { font-size: 0.8125rem; padding-inline: 0.15rem; }
}
