/* The site is one static page with no scripts and no fonts to download. */

:root {
  --paper: #f6f2e9;
  --ink: #1d1c19;
  --soft: #66625a;
  --rule: #d8d1c2;
  --accent: #0f6b64;
  --wash: #ece6d8;
  --card: #fdfbf6;
  --warm: #c2742c;
  --shadow: rgba(60, 48, 20, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181a;
    --ink: #ebe7de;
    --soft: #a09c93;
    --rule: #32373a;
    --accent: #5fd4c4;
    --wash: #1e2326;
    --card: #1b2023;
    --warm: #e0a15e;
    --shadow: rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }

/* Header */

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 6px; }
.top nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--ink); }

/* Hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: start; padding-top: 4rem; padding-bottom: 4rem; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.02em; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--soft); margin: 1.5rem 0 2rem; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 0; }
.button { background: var(--ink); color: var(--paper); padding: 0.85rem 1.4rem; border-radius: 4px; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--accent); color: var(--paper); }
.quiet { color: var(--soft); }
.small { font-size: 0.9rem; color: var(--soft); margin: 1.25rem 0 0; }

.exchange { margin: 0.6rem 0 0; }
.asked { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3; margin: 0 0 1.25rem; }
.asked::before { content: "“"; }
.asked::after { content: "”"; }
.answer { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
.answer p { margin: 0 0 0.9rem; }
.answer p:last-child { margin-bottom: 0; }
figcaption { font-size: 0.85rem; color: var(--soft); margin-top: 1.25rem; }

/* The pulse line from the icon, as a divider. */

.trace { display: block; width: 100%; height: 3.5rem; }
.trace path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Sections: a heading in the margin, the matter beside it. */

.split { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--rule); }
.trace + .split { padding-top: 3rem; }
.split:last-of-type { border-bottom: 0; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.split p { margin: 0 0 1rem; max-width: 40em; }
.note { color: var(--soft); font-size: 0.95rem; }

/* Examples: the chart the assistant draws beside the answer it gives. */

.examples { padding-top: 3rem; padding-bottom: 4rem; border-bottom: 1px solid var(--rule); }
.examples .intro { color: var(--soft); margin: 0.75rem 0 3rem; }
.pair { display: grid; grid-template-columns: 24rem minmax(0, 1fr); gap: 3.5rem; align-items: center; margin-bottom: 3.5rem; }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 1.25rem 1.4rem 1.2rem; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -18px var(--shadow); transform: rotate(-1.2deg); }
.pair:nth-of-type(even) .card { transform: rotate(1deg); }
.card p { margin: 0; }
.ctitle { font-size: 0.95rem; font-weight: 600; }
.cunit { font-size: 0.8rem; color: var(--soft); margin-bottom: 0.9rem !important; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 9px var(--sans); fill: var(--soft); }
.chart .val { fill: var(--ink); font-weight: 600; }
.chart .grid line { stroke: var(--rule); stroke-width: 1; }
.chart .bar { fill: var(--accent); }
.chart .bar.dim { opacity: 0.45; }
.line-daily, .line-avg { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.line-daily { stroke: var(--accent); stroke-width: 1.25; opacity: 0.55; }
.line-avg { stroke: var(--warm); stroke-width: 2; }
.key { display: flex; gap: 1.1rem; font-size: 0.75rem; color: var(--soft); margin-top: 0.5rem !important; }
.key span::before { content: ""; display: inline-block; width: 0.9rem; height: 2px; vertical-align: middle; margin-right: 0.4rem; }
.k-daily::before { background: var(--accent); }
.k-avg::before { background: var(--warm); }

.chat p { margin: 0 0 0.8rem; max-width: 36em; }
.chat .asked { font-family: var(--sans); font-style: normal; font-size: 1rem; line-height: 1.5; width: fit-content; background: var(--wash); border-radius: 1rem; padding: 0.55rem 1rem; margin: 0 0 1rem; }
.chat .asked::before, .chat .asked::after { content: none; }
.used { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--soft); }
.used img { border-radius: 4px; }

.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.questions li:first-child { border-top: 0; padding-top: 0; }
.questions li::before { content: counter(q); font: 600 0.8rem var(--sans); font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }

.reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; margin: 0 0 2rem; }
.reads dt { font-weight: 600; margin-bottom: 0.2rem; }
.reads dd { margin: 0; color: var(--soft); }

.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.routes h3:not(:first-child) { margin-top: 2.25rem; }
.steps { margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 2.5rem; margin-bottom: 1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.15em; font: 600 1.6rem/1.2 var(--serif); color: var(--accent); }

code { font: 0.9em var(--mono); }
pre { background: var(--wash); border-radius: 4px; padding: 1rem 1.15rem; margin: 0 0 1rem; overflow-x: auto; line-height: 1.7; }
pre code { font-size: 0.9rem; }

.plain p { margin-bottom: 1.15rem; }

/* Footer */

footer { padding-top: 2.5rem; padding-bottom: 3.5rem; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--soft); }
footer p { margin: 0 0 0.75rem; max-width: 60em; }

@media (max-width: 50rem) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 2.5rem; padding-bottom: 3rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
  .reads, .routes { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; gap: 1.75rem; margin-bottom: 3.5rem; }
  .card { max-width: 26rem; }
  .top nav { gap: 1rem; }
  .questions li { font-size: 1.2rem; }
}

@media (max-width: 26rem) {
  .top nav a:nth-child(2) { display: none; }
}
