/* Atheria marketing site.
   Layout: one left-aligned column of full-width bands on a 70rem measure. Paper ground,
   one night band (limits), one lamp band (contact). Illustrations are HTML, not images. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-italic-latin.woff2") format("woff2");
}

:root {
  --paper: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #14233B;
  --ink-soft: #44546B;
  --line: #D3DBE6;
  --lamp: #F5B83D;
  --on-lamp: #14233B;
  --night: #14233B;
  --on-night: #EAF0F7;
  --on-night-soft: #B5C2D4;
  --night-line: #2D3F5C;
  --allow: #17693F;
  --block: #A8322B;
  --hl-bg: #F5B83D;
  --hl-fg: #14233B;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.35rem + 2.3vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.45rem + 4.6vw, 4.5rem);

  --measure: 34rem;
  --radius: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1726;
    --surface: #152238;
    --ink: #EAF0F7;
    --ink-soft: #A8B6C9;
    --line: #2A3B57;
    --lamp: #F5B83D;
    --on-lamp: #14233B;
    --night: #081019;
    --on-night: #EAF0F7;
    --on-night-soft: #A8B6C9;
    --night-line: #22324B;
    --allow: #6FD3A0;
    --block: #F3938A;
    --hl-bg: transparent;
    --hl-fg: #F5B83D;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0D1726;
  --surface: #152238;
  --ink: #EAF0F7;
  --ink-soft: #A8B6C9;
  --line: #2A3B57;
  --lamp: #F5B83D;
  --on-lamp: #14233B;
  --night: #081019;
  --on-night: #EAF0F7;
  --on-night-soft: #A8B6C9;
  --night-line: #22324B;
  --allow: #6FD3A0;
  --block: #F3938A;
  --hl-bg: transparent;
  --hl-fg: #F5B83D;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.25; letter-spacing: -0.005em; }

a { color: inherit; text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

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

.band { padding-block: clamp(3.25rem, 2rem + 5vw, 6rem); }
.band--surface { background: var(--surface); border-block: 1px solid var(--line); }
.band--night { background: var(--night); color: var(--on-night); }
.band--night :focus-visible { outline-color: var(--on-night); }
.band--lamp { background: var(--lamp); color: var(--on-lamp); }
.band--lamp :focus-visible { outline-color: var(--on-lamp); }

.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
.prose { max-width: var(--measure); }
.soft { color: var(--ink-soft); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.5rem;
}
.skip:focus { top: 1rem; }

/* Header */
.site-head { padding-block: 1.25rem; }
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.brand-mark .house { fill: var(--ink); }
.brand-mark .window { fill: var(--lamp); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; }
.site-nav a { font-size: 1rem; text-decoration: none; padding-block: 0.25rem; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }

/* Hero */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(3.25rem, 2rem + 5vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero-copy { min-width: 0; gap: 1.5rem; }
.hl {
  color: var(--hl-fg);
  background: linear-gradient(transparent 58%, var(--hl-bg) 58%, var(--hl-bg) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 99rem;
  border: 2px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary { background: var(--lamp); color: var(--on-lamp); border-color: var(--on-lamp); box-shadow: 0 3px 0 var(--on-lamp); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary:hover { box-shadow: 0 4px 0 var(--on-lamp); }
.btn--quiet:hover { background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease; }
}

/* Illustration: a request, the advice, the decision */
.ask { min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.slip {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.slip--child { box-shadow: 5px 5px 0 var(--lamp); margin-right: 1.5rem; }
.slip--advice { border-style: dashed; margin-left: 1.5rem; }
.slip--parent { margin-right: 1.5rem; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.slip-who { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.slip p { font-size: 1rem; line-height: 1.45; }
.slip .site { font-family: var(--mono); font-size: 0.95em; overflow-wrap: anywhere; }
.slip q { font-style: italic; quotes: "\201C" "\201D"; }
.verdict { font-weight: 700; }
.faux-actions { display: flex; gap: 0.5rem; }
.faux {
  padding: 0.4rem 0.95rem;
  border-radius: 99rem;
  border: 1.5px solid var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}
.faux--yes { background: var(--lamp); color: var(--on-lamp); border-color: var(--on-lamp); }
figcaption, .caption { font-size: var(--step--1); color: var(--ink-soft); }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }

/* What you control */
.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.75rem, 1rem + 3vw, 3.5rem);
}
.control { min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.control h3::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.4rem;
  margin-bottom: 0.9rem;
  background: var(--lamp);
  border-radius: 2px;
}
.control p { color: var(--ink-soft); }

/* Asking */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 1rem + 2.5vw, 3rem);
  counter-reset: step;
}
.step { min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--lamp);
  color: var(--on-lamp);
  border: 1.5px solid var(--on-lamp);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}
.step p { color: var(--ink-soft); }
.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}
.note {
  min-width: 0;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.note p { color: var(--ink-soft); }

/* Split layout: heading left, content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.split > * { min-width: 0; }

/* The day strip */
.day { display: flex; flex-direction: column; gap: 0.9rem; }
.day-track { position: relative; padding-top: 2.1rem; padding-bottom: 1.9rem; }
.day-bar {
  display: flex;
  height: 3.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.6rem;
  overflow: hidden;
}
.seg { min-width: 0; display: grid; place-items: center; font-size: var(--step--1); font-weight: 700; white-space: nowrap; overflow: hidden; }
.seg--night { background: var(--night); color: var(--on-night); }
.seg--open { background: var(--surface); color: var(--ink); }
.seg--pause {
  background: repeating-linear-gradient(135deg, var(--lamp) 0 6px, var(--surface) 6px 12px);
}
.seg-a { flex: 7 1 0; }
.seg-b { flex: 10.5 1 0; }
.seg-c { flex: 1 1 0; }
.seg-d { flex: 1.5 1 0; }
.seg-e { flex: 4 1 0; }
.tick, .flag { position: absolute; font-size: var(--step--1); white-space: nowrap; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tick { bottom: 0; color: var(--ink-soft); }
.tick::before { content: ""; position: absolute; left: 50%; top: -0.4rem; width: 1.5px; height: 0.35rem; background: var(--ink-soft); }
.flag { top: 0; font-weight: 700; }
.flag::after { content: ""; position: absolute; left: 50%; bottom: -0.45rem; width: 1.5px; height: 0.4rem; background: var(--ink); }
.at-7 { left: 29.167%; }
.at-12 { left: 50%; }
.at-18 { left: 75%; }
.at-20 { left: 83.333%; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.swatch { width: 1rem; height: 1rem; border: 1.5px solid var(--ink); border-radius: 3px; flex: none; }
.swatch--night { background: var(--night); }
.swatch--open { background: var(--surface); }
.swatch--pause { background: repeating-linear-gradient(135deg, var(--lamp) 0 4px, var(--surface) 4px 8px); }

/* History */
.table-scroll { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.history { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 30rem; }
.history caption { text-align: left; padding: 0.85rem 1rem; font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.history th, .history td { padding: 0.6rem 1rem; text-align: left; white-space: nowrap; }
.history thead th { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.history tbody tr { border-top: 1px solid var(--line); }
.history tbody th { font-family: var(--mono); font-weight: 400; font-size: 0.875rem; }
.history .num { text-align: right; font-variant-numeric: tabular-nums; }
.ok { color: var(--allow); font-weight: 700; }
.no { color: var(--block); font-weight: 700; }
.leaves { display: flex; flex-direction: column; gap: 0.6rem; }
.leaves li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.leaves li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 0.18rem; background: var(--ink-soft); }

/* Limits */
.limits { display: flex; flex-direction: column; }
.limit { padding-block: 1.4rem; border-top: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 0.45rem; }
.limit:first-child { border-top: 0; padding-top: 0; }
.limit:last-child { padding-bottom: 0; }
.limit p { color: var(--on-night-soft); }
.band--night .lede { color: var(--on-night-soft); }

/* Closing band */
.closing { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.closing h2 { max-width: 20ch; }

/* Footer */
.site-foot { padding-block: 2.25rem 3rem; font-size: var(--step--1); color: var(--ink-soft); }
.foot-row { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-row p { max-width: 46rem; }
.foot-row strong { color: var(--ink); font-family: var(--display); font-size: 1.0625rem; }

/* Terms and privacy */
.doc { max-width: 42rem; display: flex; flex-direction: column; gap: 1.1rem; }
.doc h1 { font-size: var(--step-3); }
.doc h2 { font-size: var(--step-2); margin-top: 1.4rem; }
.doc .dated { font-size: var(--step--1); color: var(--ink-soft); }
.doc ul { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.25rem; list-style: disc; }

/* 404 */
.lost { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem; }

/* Narrow screens */
@media (max-width: 56rem) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ask { max-width: 30rem; }
}
@media (max-width: 38rem) {
  .controls, .notes { grid-template-columns: minmax(0, 1fr); }
  .slip--child, .slip--parent { margin-right: 0.75rem; }
  .slip--advice { margin-left: 0.75rem; }
  .site-nav ul { gap: 0.25rem 1.15rem; }
}
