/* AllSaid — marketing site
   Palette: mineral paper, transcript ink, two track colours (you / far end),
   and the macOS microphone-indicator orange, reserved for consent. */

:root {
  --paper: #edf0ee;
  --surface: #f6f8f7;
  --ink: #15201e;
  --muted: #56625e;
  --rule: #c9d2ce;
  --you: #1d6b61;
  --far: #5a4fb0;
  --rec: #d9730a;
  --rec-ground: #fbe9d4;
  --rec-ink: #5a2f02;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.84rem;
  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: 1.9rem;
  --step-3: 2.7rem;
  --step-4: clamp(2.6rem, 6.4vw, 4.9rem);

  --margin: 11rem;
  --measure: 65ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1413;
    --surface: #151d1b;
    --ink: #e2e9e6;
    --muted: #94a19c;
    --rule: #28332f;
    --you: #62c6b5;
    --far: #aaa0f4;
    --rec: #ffa33d;
    --rec-ground: #2b1c0b;
    --rec-ink: #ffd9ad;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1413;
  --surface: #151d1b;
  --ink: #e2e9e6;
  --muted: #94a19c;
  --rule: #28332f;
  --you: #62c6b5;
  --far: #aaa0f4;
  --rec: #ffa33d;
  --rec-ground: #2b1c0b;
  --rec-ink: #ffd9ad;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--you); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }

.label {
  font-family: var(--mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- consent strip (every page) ---------- */
.consent-strip {
  background: var(--rec-ground);
  color: var(--rec-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--rec) 40%, transparent);
  font-family: var(--mono);
  font-size: var(--step--1);
  line-height: 1.45;
}
.consent-strip .wrap { display: flex; gap: 0.75rem; align-items: baseline; padding-block: 0.6rem; }
.consent-strip a { color: inherit; font-weight: 600; white-space: nowrap; }

.dot {
  display: inline-block;
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: var(--rec);
  flex: none;
  transform: translateY(-0.05em);
}

/* ---------- frame ---------- */
.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }

.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1.4rem;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand-mark { display: inline-flex; gap: 3px; align-items: center; height: 1.1rem; }
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: var(--you); }
.brand-mark i:nth-child(even) { background: var(--far); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; font-family: var(--mono); font-size: 0.9rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding-block: 0.2rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* The margin-note grid: a mono note column on the left, running text on the right */
.row {
  display: grid;
  grid-template-columns: var(--margin) minmax(0, 1fr);
  gap: 0 3rem;
  padding-block: 4.5rem;
  border-top: 1px solid var(--rule);
}
.row > .note { padding-top: 0.55rem; }
.row > .body { display: grid; gap: 1.4rem; max-width: 52rem; }
.row .prose { max-width: var(--measure); display: grid; gap: 1.1rem; }
.row .lede { font-size: var(--step-1); line-height: 1.45; max-width: 36ch; }

@media (max-width: 760px) {
  :root { --margin: auto; }
  .row { grid-template-columns: 1fr; gap: 1rem; padding-block: 3rem; }
  .row > .note { padding-top: 0; }
}

/* ---------- hero ---------- */
.hero { padding-block: 3.5rem 5rem; display: grid; gap: 3.5rem; }
.hero-copy { display: grid; gap: 1.5rem; max-width: 46rem; }
.hero-copy h1 em { font-style: normal; color: var(--rec); }
.hero-copy .lede { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.95rem; font-weight: 500;
  padding: 0.8rem 1.25rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none; border-radius: 3px;
}
.btn:hover { color: var(--paper); background: var(--you); }
.textlink { font-family: var(--mono); font-size: 0.95rem; color: var(--muted); }

/* ---------- the transcript specimen ---------- */
.file {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.file-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--step--1); color: var(--muted);
}
.file-body { padding: 1.6rem 1.1rem 1.8rem; overflow-x: auto; }

.transcript { display: grid; gap: 1.15rem; margin: 0; }
.turn {
  display: grid;
  grid-template-columns: 6.5rem 7.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  align-items: baseline;
}
.turn time, .turn .who { font-family: var(--mono); font-size: var(--step--1); }
.turn time { color: var(--muted); font-variant-numeric: tabular-nums; }
.turn .who { font-weight: 600; display: flex; align-items: center; gap: 0.45rem; }
.turn .who::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 1px; background: currentColor; flex: none; }
.turn.you .who { color: var(--you); }
.turn.far .who { color: var(--far); }
.turn p { font-size: 1.08rem; line-height: 1.5; max-width: 62ch; }

.turn.ask {
  background: var(--rec-ground);
  margin-inline: -1.1rem;
  padding: 0.9rem 1.1rem;
  box-shadow: inset 3px 0 0 var(--rec);
}
.turn.ask p { color: var(--rec-ink); }
.turn.ask .who { color: var(--rec-ink); }
.turn .flag {
  grid-column: 3; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rec-ink);
}

@media (max-width: 640px) {
  .turn { grid-template-columns: 1fr; gap: 0.15rem; }
  .turn time, .turn .who { display: inline-flex; }
  .turn .flag { grid-column: 1; }
  .turn-meta { display: flex; gap: 0.8rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .transcript .turn { animation: settle 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .transcript .turn:nth-child(2) { animation-delay: 0.35s; }
  .transcript .turn:nth-child(3) { animation-delay: 0.7s; }
  .transcript .turn:nth-child(4) { animation-delay: 1.05s; }
  .transcript .turn:nth-child(5) { animation-delay: 1.4s; }
  .rec-live .dot { animation: pulse 1.8s ease-in-out infinite; }
}
@keyframes settle { from { opacity: 0.25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- markdown specimen (summary) ---------- */
.md { font-family: var(--mono); font-size: 0.9rem; line-height: 1.75; white-space: pre; color: var(--ink); margin: 0; }
.md .h { color: var(--muted); }
.md .k { color: var(--you); font-weight: 600; }
.md .m { color: var(--muted); }

/* ---------- facts: aligned label/value pairs ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.2rem 3rem; margin: 0; }
.facts div { display: grid; gap: 0.35rem; align-content: start; }
.facts dt { font-family: var(--display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
.facts dd { margin: 0; color: var(--muted); font-size: 1.02rem; }
.facts .num { font-variant-numeric: tabular-nums; }

/* ---------- the big consent block ---------- */
.warning {
  background: var(--rec-ground);
  color: var(--rec-ink);
  border-top: 3px solid var(--rec);
}
.warning .row { border-top: 0; }
.warning h2 { color: var(--rec-ink); max-width: 18ch; }
.warning .note { color: var(--rec-ink); }
.warning .label { color: var(--rec-ink); opacity: 0.85; }
.warning a { color: var(--rec-ink); font-weight: 600; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: var(--measure); }
.rules li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; }
.rules li::before { content: ""; width: 0.6rem; height: 0.6rem; margin-top: 0.62rem; border-radius: 50%; background: var(--rec); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 34rem; }
th, td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-weight: 500; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.92rem; white-space: nowrap; }

/* ---------- pipeline diagram ---------- */
.pipe { overflow-x: auto; }
.pipe svg { display: block; min-width: 44rem; width: 100%; height: auto; }
.pipe text { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.pipe .sub { fill: var(--muted); font-size: 11.5px; }
.pipe .box { fill: var(--surface); stroke: var(--rule); }
.pipe .box-hot { fill: var(--surface); stroke: var(--ink); }
.pipe .line { stroke: var(--muted); fill: none; stroke-width: 1.2; }
.pipe .you { fill: var(--you); }
.pipe .far { fill: var(--far); }
.pipe .arrow { fill: var(--muted); }

/* ---------- scripts to read aloud ---------- */
.scripts { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.2rem; }
.script { background: var(--surface); border: 1px solid var(--rule); padding: 1.3rem 1.4rem; display: grid; gap: 0.7rem; align-content: start; border-radius: 4px; }
.script blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; }

/* ---------- contact ---------- */
.contact-card { display: grid; gap: 1.2rem; max-width: 40rem; }
.address {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  letter-spacing: -0.02em; word-break: break-word; text-decoration-thickness: 2px;
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--ink); margin-top: 2rem; }
.site-foot .wrap { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); gap: 1rem 3rem; padding-block: 2.5rem 3.5rem; }
.site-foot p { font-size: 0.95rem; color: var(--muted); max-width: var(--measure); }
.site-foot .fine { display: grid; gap: 0.8rem; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }
