/* Leoring site. Direction: "Color is a verdict". Ink on paper (or paper on ink), hairline rules,
   one serif voice. Green, amber and red appear only where a real decision is shown. */

:root {
  color-scheme: dark;
  --bg: #0C0F14; --raised: #151A22; --line: #262D38; --ink: #F2F0EA; --mute: #8F97A3; --dot: #3A4250;
  --green: #46D695; --amber: #F2B84B; --red: #FF6B5E;
  --paper: #F4F1EA; /* the backing disc behind the emblem, whose navy would vanish on dark ink */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.25rem;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #F4F1EA; --raised: #FFFFFF; --line: #DCD6CA; --ink: #14171C; --mute: #5B636F; --dot: #CFC9BC;
    --green: #0E7A4E; --amber: #8F5A06; --red: #B9362B;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F1EA; --raised: #FFFFFF; --line: #DCD6CA; --ink: #14171C; --mute: #5B636F; --dot: #CFC9BC;
  --green: #0E7A4E; --amber: #8F5A06; --red: #B9362B;
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, pre, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; touch-action: manipulation; }
em { font-style: italic; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: 0; z-index: 100; padding: 0.6rem 1rem;
  background: var(--ink); color: var(--bg); transform: translateY(-120%); text-decoration: none; border-radius: 0 0 8px 8px;
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3, .big, .said, .verb, .figure, .brand-name {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em;
}
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.9vw, 3.4rem); line-height: 1.07; max-width: 21ch; }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.15; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.45; color: var(--mute); max-width: 40ch; }
.caps, .kicker, .label, .legend {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.src { font-size: 0.8125rem; line-height: 1.5; color: var(--mute); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border: 1px solid var(--ink); border-radius: 8px;
  font-weight: 500; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9375rem; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); text-decoration: none; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--paper); flex: none; }
.mark img { width: 2rem; height: auto; }
.brand-name { font-size: 1.6rem; line-height: 1; }
.nav { order: 3; width: 100%; }
.nav ul { display: flex; gap: 1.4rem; overflow-x: auto; padding-block: 0.25rem; }
.nav a { color: var(--mute); text-decoration: none; font-size: 0.9375rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  transition: border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--ink); }

@media (min-width: 820px) {
  .nav { order: 0; width: auto; margin-left: 1rem; }
  .nav ul { gap: 1.75rem; }
  .site-header { position: sticky; top: 0; z-index: 50; }
}

/* ---------- sections ---------- */
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.split { display: grid; gap: 1.5rem 3rem; }
.label { padding-top: 0.6rem; }
.label .num { display: block; margin-bottom: 0.35rem; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.body > * + * { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.body > h2 + * { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 11rem minmax(0, 1fr); }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: end; }
.hero-copy > * + * { margin-top: 1.5rem; }
.hero .kicker { margin-bottom: 1.75rem; }
h1 { font-size: clamp(2.45rem, 1.1rem + 5.4vw, 5.1rem); line-height: 1.02; letter-spacing: -0.028em; max-width: 15ch; }
.hero .lede { margin-top: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem !important; }
.triad { margin-top: 2.25rem !important; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--mute); }
.hero-field figcaption { margin-top: 1rem; font-size: 0.8125rem; color: var(--mute); max-width: 36ch; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 4rem; }
  .hero-field { padding-bottom: 0.25rem; }
}

/* ---------- dot field ---------- */
.field { width: 100%; height: auto; overflow: visible; }
.field circle { animation: dotin 0.45s ease-out backwards; }
.dot-plain { fill: var(--dot); }
.dot-ok { fill: var(--green); }
.dot-hold { fill: var(--amber); }
.dot-no { fill: var(--red); }
@keyframes dotin { from { opacity: 0; } to { opacity: 1; } }

/* ---------- the shift ---------- */
.shift-top { display: grid; gap: 2.5rem; align-items: start; }
.months ul { margin-top: 1rem; }
.months li { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) 2.6rem; gap: 0.9rem; align-items: center; padding-block: 0.55rem; font-size: 0.9375rem; color: var(--mute); }
.months svg { width: 100%; height: 0.8rem; }
.months rect { fill: var(--dot); }
.months .n { font-variant-numeric: tabular-nums; text-align: right; }
.months .top { color: var(--ink); font-weight: 600; }
.months .top rect { fill: var(--ink); }
.months .src { margin-top: 1rem; }
.shift-text > * + * { margin-top: 1.1rem; }
.big { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.18; }
.shift-text p:not(.big) { color: var(--mute); max-width: 44ch; }
@media (min-width: 1020px) {
  .shift-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; }
}

.stranger { padding-top: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.stranger h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem); line-height: 1.08; max-width: 22ch; }
.incidents { margin-top: 2rem; border-top: 1px solid var(--line); }
.incidents li { display: grid; gap: 0.25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.incidents .date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); padding-top: 0.35rem; }
.incidents .who { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.incidents .what { color: var(--ink); max-width: 46ch; }
.stranger .src { margin-top: 1rem; }
.choice { margin-top: 1.75rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.3; max-width: 44ch; }
.choice span { font-family: var(--sans); font-style: normal; color: var(--mute); font-size: 1rem; margin-right: 0.35rem; }
@media (min-width: 760px) {
  .incidents li { grid-template-columns: 7rem 12rem minmax(0, 1fr); align-items: baseline; }
}

/* ---------- the product ---------- */
.parts { border-top: 1px solid var(--line); }
.part { display: grid; gap: 0.75rem 3rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.verb { font-size: clamp(2.6rem, 1.5rem + 4vw, 4.6rem); line-height: 1; }
.part h3 { margin-bottom: 0.5rem; }
.part .what { max-width: 52ch; }
.part .role { margin-top: 1rem; }
@media (min-width: 760px) {
  .part { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); align-items: baseline; }
}

/* ---------- how it works ---------- */
.journey { margin-left: 0.45rem; padding-left: 1.75rem; border-left: 1px solid var(--line); }
.journey li { position: relative; display: grid; gap: 0.15rem 2rem; padding-block: 0.9rem; }
.journey li::before {
  content: ""; position: absolute; left: calc(-1.75rem - 5.5px); top: 1.35rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--mute);
}
.journey .decision::before { background: var(--ink); border-color: var(--ink); }
.step { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.25; }
.desc { color: var(--mute); }
.outcomes { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; color: var(--ink); }
.out { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.out i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--green); }
.out-hold i { background: var(--amber); }
.out-no i { background: var(--red); }
@media (min-width: 760px) {
  .journey li { grid-template-columns: 17rem minmax(0, 1fr); align-items: baseline; }
}

.moment { margin-top: clamp(3rem, 6vw, 5rem) !important; }
.said { margin-top: 1rem; font-size: clamp(2.5rem, 1rem + 6.6vw, 6rem); line-height: 1.02; letter-spacing: -0.03em; }
.said span { display: block; }
.said .no { color: var(--red); }
.term {
  margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--raised); border: 1px solid var(--line); border-radius: 10px;
  font: 400 clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem)/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.term code { font: inherit; }
.term .dim { color: var(--mute); }
.term .no { color: var(--red); }
.term b { font-weight: 600; }
.after { margin-top: 1.75rem; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); line-height: 1.4; color: var(--mute); max-width: 36ch; }
.after strong { font-weight: 400; color: var(--ink); }
.moment .src { margin-top: 1.25rem; }

/* ---------- evidence ---------- */
.evidence-grid { display: grid; gap: 2.5rem; align-items: center; }
.field-evidence { max-width: 30rem; }
.tally .row { display: grid; grid-template-columns: clamp(5rem, 9vw, 7.5rem) 1fr; column-gap: 1.25rem; align-items: baseline; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.tally dd { display: contents; }
.tally .figure { grid-column: 1; grid-row: 1 / span 2; font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.tally dt { grid-column: 2; grid-row: 1; font-weight: 600; font-size: 1.125rem; }
.tally .gloss { grid-column: 2; grid-row: 2; color: var(--mute); font-size: 0.9375rem; }
.row-ok .figure { color: var(--green); }
.row-hold .figure { color: var(--amber); }
.row-no .figure { color: var(--red); }
.row-total { border-bottom: 0 !important; }
.caveat { font-size: 1.0625rem; color: var(--mute); max-width: 56ch; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.caveat strong { color: var(--ink); font-weight: 600; }
@media (min-width: 1020px) {
  .evidence-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

/* ---------- one skill, any AI ---------- */
.ais { border-top: 1px solid var(--line); }
.ai { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 0.2rem 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.ai-name { font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.ai-state { grid-column: 2; color: var(--mute); max-width: 52ch; }
.ai-yes .ai-state { color: var(--ink); }
.dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--ink); vertical-align: -0.05em; }
.dot.hollow { background: transparent; border-color: var(--mute); }
.ai .dot { align-self: center; }
.legend { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.legend .dot { width: 0.65rem; height: 0.65rem; margin-left: 0.9rem; }
.legend .dot:first-child { margin-left: 0; }
@media (min-width: 820px) {
  .ai { grid-template-columns: 1rem 13rem minmax(0, 1fr); }
  .ai-state { grid-column: 3; }
}

/* ---------- pricing ---------- */
.tiers { display: grid; border-top: 1px solid var(--line); }
.tier { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.tier h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); margin-bottom: 0.6rem; }
.tier p { color: var(--mute); max-width: 30ch; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .tier { padding: 1.75rem 1.75rem 2.25rem 0; border-bottom: 0; }
  .tier + .tier { padding-left: 1.75rem; border-left: 1px solid var(--line); }
}
.early { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.early p { font-size: 1.125rem; max-width: 40ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.foot { display: grid; gap: 2rem 3rem; }
.foot-brand p { margin-top: 1rem; color: var(--mute); max-width: 30ch; }
.foot-h { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.9rem; }
.foot li + li { margin-top: 0.35rem; }
.legal { font-size: 0.8125rem; line-height: 1.55; color: var(--mute); max-width: 70ch; }
@media (min-width: 900px) {
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
  .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; align-content: center; justify-items: start; padding-block: 4rem; }
.notfound h1 { margin-top: 1.25rem; }
.notfound .lede { margin-top: 1.5rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field circle { animation: none; }
  .btn, .theme-toggle { transition: none; }
}
@media (forced-colors: active) {
  .dot-plain, .dot-ok, .dot-hold, .dot-no { fill: CanvasText; }
}
