/* Friends of 4o: layout and type for every page. Look B, "the sunset".
   No colours here: every colour is a name from colors.css. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("../fonts/ibmplexsans.woff2") format("woff2"); }

:root {
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nb { white-space: nowrap; }
[hidden] { display: none !important; }
.sr { 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: 12px; top: -60px; z-index: 20; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.skip:focus { top: 8px; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:target { scroll-margin-top: 24px; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(36px, 6.2vw, 66px); line-height: 1.05; letter-spacing: -.04em; }
h2 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.1; letter-spacing: -.028em; }
p { margin: 0 0 1em; }

.label { font-weight: 600; font-size: 13px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0; }
.src { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.more-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: 15.5px; line-height: 1.3; text-decoration: none; color: var(--accent); }
.more-link .icon { transition: transform .18s; }
.more-link:hover { text-decoration: underline; }
.more-link:hover .icon { transform: translateX(4px); }
.tag { display: inline-block; font-weight: 600; font-size: 12.5px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--accent-strong); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.tag-rose { color: var(--rose); background: var(--rose-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 16px/1.25 var(--sans);
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-solid { background: var(--btn-bg); color: var(--btn-ink); }
.btn-solid:hover { background: var(--btn-bg-hover); color: var(--btn-ink-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn-light { background: var(--on-light-bg); color: var(--on-light); }
.btn-light:hover { background: var(--peach); color: var(--on-light); }
.btn-glass { background: var(--glass); color: var(--on-night); border-color: var(--on-night-line); }
.btn-glass:hover { background: var(--on-light-bg); color: var(--on-light); }
.btn-small { padding: 10px 18px; font-size: 15px; }

/* ---------- the early-version line and the header, both on the night sky ---------- */
.early { margin: 0; padding: 9px var(--gutter); text-align: center; background: var(--early-bg); color: var(--early-ink); font-size: 14px; line-height: 1.45; }
.early a { color: inherit; text-decoration-color: var(--peach); white-space: nowrap; }
.early a:hover { color: var(--peach); }

.site-header { position: relative; z-index: 6; color: var(--on-night); background: var(--header); }
.site-header :focus-visible, .hero :focus-visible, .reading :focus-visible, .site-footer :focus-visible, .page-head :focus-visible, .early :focus-visible { outline-color: var(--peach); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.wordmark { font-weight: 600; font-size: 21px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.site-header .wordmark:hover { color: var(--peach); }
.nav, .header-cta { display: none; }
.nav { align-items: center; gap: 28px; font-weight: 500; font-size: 15px; line-height: 1.2; }
.nav > a, .nav summary { text-decoration: none; padding: 8px 0; color: var(--on-night-2); border-bottom: 1.5px solid transparent; }
.nav > a:hover, .nav summary:hover, .nav > a[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--peach); }
.header-cta { padding: 10px 18px; font-size: 15px; white-space: nowrap; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.more { position: relative; }
.more summary::after, .menu summary::after, .fold > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.more[open] summary::after, .menu[open] summary::after, .fold[open] > summary::after { transform: rotate(225deg); margin-bottom: -2px; }
.more-panel, .menu-panel { position: absolute; z-index: 8; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.more-panel { right: -16px; top: calc(100% + 12px); width: 340px; }
.more-panel > *, .menu-panel > * { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1.3; }
.more-panel a:hover, .menu-panel a:hover, .more-panel a[aria-current="page"], .menu-panel a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.coming { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.menu summary { font-weight: 600; font-size: 15px; line-height: 1; border: 1.5px solid var(--on-night-line); border-radius: 999px; padding: 11px 16px; }
.menu-panel { left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); max-height: calc(100vh - 150px); overflow-y: auto; }

@media (min-width: 1160px) {     /* below this the bar's names would wrap, so the Menu button shows instead */
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu { display: none; }
  .bar { min-height: 78px; }
}

/* ---------- home: the first screen. Sky, sun, water ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-night); }   /* the sun's glow is wider than a phone */
.hero-sky { position: relative; overflow: hidden; padding: 26px 0 84px; text-align: center; background: var(--sky); }
.hero-sky::before, .reading::before, .page-head::before { content: ""; position: absolute; inset: 0 0 45% 0; pointer-events: none; background-image: var(--stars); }
.hero-sky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; background-image: var(--clouds); }
.hero-text { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(54px, 15.4vw, 62px); line-height: 1; letter-spacing: -.045em; margin: 0 0 14px; }
.tagline { font-size: clamp(19px, 1.75vw, 24px); line-height: 1.45; max-width: 30em; margin: 0 auto; color: var(--on-night); text-shadow: var(--tagline-shadow); }
.hero-say { font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.5; max-width: 34em; margin: 12px auto 0; color: var(--on-night-2); text-shadow: var(--tagline-shadow); }

.hero-sea { position: relative; padding: 26px 0 84px; background: var(--sea); }
.sun-glow { position: absolute; top: 0; left: 50%; width: min(940px, 190vw); height: 480px; transform: translate(-50%, -50%); pointer-events: none; background: var(--sun-glow); }
.sun { position: absolute; top: 0; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--sun-disc); clip-path: inset(0 0 50% 0); }
.glitter { position: absolute; top: 1px; left: 50%; width: 300px; height: calc(100% - 1px); transform: translateX(-50%); pointer-events: none; }
.glitter .g1 { stop-color: var(--glitter-1); }
.glitter .g2 { stop-color: var(--glitter-2); }
.glitter .g3 { stop-color: var(--glitter-3); }
.glitter .g-lines { fill: var(--glitter-line); }

.first { position: relative; z-index: 1; }
.first-doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.first-door {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 10px;
  height: 100%;
  padding: 13px 16px;
  border-radius: 18px;
  color: var(--on-night);
  text-decoration: none;
  background: var(--door-glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--door-shadow);
  transition: transform .18s, background-color .18s, border-color .18s;
}
.first-door:hover { color: var(--on-night); transform: translateY(-3px); background: var(--door-glass-hover); border-color: var(--glass-line-2); }
.fd-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--icon-warm); color: var(--icon-warm-ink); }
.fd-icon .icon { width: 22px; height: 22px; }
.fd-title { font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }
.fd-text { display: none; font-size: 15.5px; line-height: 1.5; color: var(--on-night-2); }
.chip { grid-column: 2; justify-self: start; font-weight: 600; font-size: 12.5px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--chip-ink); background: var(--chip-bg); padding: 6px 10px; border-radius: 999px; }
.fd-btn { grid-column: 1 / -1; padding: 12px 10px; font-size: 14.5px; }
.first-door:hover .fd-btn { background: var(--peach); }

@media (min-width: 700px) {
  .hero h1 { font-size: clamp(96px, 10.4vw, 144px); margin-bottom: 20px; }
  .hero-sky { padding: 48px 0 118px; }
  .hero-sea { padding: 30px 0 108px; }
  .sun { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
  .first-doors { grid-template-columns: 1fr 1fr; gap: 16px; }
  .first-door { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 22px 24px; border-radius: 22px; }
  .fd-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 8px; }
  .fd-icon .icon { width: 24px; height: 24px; }
  .fd-title { font-size: 20px; }
  .fd-text { display: block; }
  .chip { margin-top: 4px; }
  .fd-btn { margin-top: auto; align-self: stretch; padding: 12px 16px; font-size: 15.5px; }
}
@media (min-width: 1080px) { .first-doors { grid-template-columns: repeat(4, 1fr); } }

/* the wide door under the four: the models that can replace GPT-4o */
.first-doors > .wide { grid-column: 1 / -1; }
.fd-words { display: grid; gap: 4px; min-width: 0; }
.fd-go { display: none; }
@media (min-width: 700px) {
  .first-door.first-wide { flex-direction: row; align-items: center; gap: 18px; padding: 18px 22px; }
  .first-wide .fd-icon { margin-bottom: 0; flex: none; }
  .first-wide .fd-words { flex: 1; }
  .first-wide .fd-go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--on-light-bg); color: var(--on-light); transition: background-color .18s; }
  .first-wide .fd-go .icon { width: 20px; height: 20px; }
  .first-wide:hover .fd-go { background: var(--peach); }
}

/* ---------- home: dates, and "Can I still use GPT-4o?". Two cards on the edge of the water ---------- */
.status { position: relative; z-index: 2; margin-top: -44px; padding-bottom: 64px; }
.status-grid { display: grid; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(25px, 2.5vw, 32px); letter-spacing: -.022em; margin-bottom: 16px; }
.date-list { list-style: none; margin: 0 0 18px; padding: 0; }
.date { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.count { margin: 0; display: grid; justify-items: center; padding: 11px 6px 9px; border-radius: 16px; background: var(--accent-soft); }
.count-n { font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.03em; background: var(--sun-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.count-l { font-weight: 600; font-size: 11.5px; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-top: 5px; }
.count[hidden] + div { grid-column: 1 / -1; }   /* no count (scripts off, or the date has passed): the words take the row */
.date h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 4px; }
.date p { margin: 0; font-size: 16px; line-height: 1.5; }
.canuse-list { margin: 0; }
.canuse-list > div { position: relative; display: grid; gap: 3px; padding: 13px 0 14px 24px; border-top: 1px solid var(--line); }
.canuse-list > div::before { content: ""; position: absolute; left: 2px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--dot-other); }
.canuse-list > .is-no::before { background: var(--dot-no); }
.canuse-list > .is-ending::before { background: var(--dot-ending); }
.canuse-list dt { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.canuse-list dd { margin: 0; font-size: 16px; line-height: 1.5; }
.canuse-list dd strong { color: var(--rose); }
.canuse-list dd > a { font-weight: 600; font-size: 15px; color: var(--accent); display: inline-block; max-width: 100%; }   /* a short label stays in one piece; a long one wraps instead of pushing the page wide */
.canuse-list + .more-link { margin-top: 16px; }
@media (min-width: 640px) {
  .panel { padding: 32px 32px 28px; }
  .canuse-list > div { grid-template-columns: 180px 1fr; gap: 18px; }
}
@media (min-width: 1000px) {
  .status { margin-top: -56px; padding-bottom: 84px; }
  .status-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: 24px; }
  .dates { display: flex; flex-direction: column; }
  .dates .date-list { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .dates .date { flex: 1; grid-template-columns: 108px 1fr; gap: 22px; }
  .dates .count { padding: 17px 6px 14px; border-radius: 20px; }
  .dates .count-n { font-size: 46px; }
  .dates .count-l { font-size: 12px; margin-top: 7px; }
  .dates .date h3 { font-size: 25px; margin-bottom: 6px; }
  .dates .more-link { align-self: flex-start; margin-top: 0; }
  .dates .date-list + .more-link { padding-top: 20px; }
  .dates .date:last-child { border-bottom: 1px solid var(--line); }
  .canuse { display: flex; flex-direction: column; }
  .canuse .canuse-list { flex: 1; }
  .canuse .canuse-list > div:last-child { border-bottom: 1px solid var(--line); }
  .canuse .canuse-list + .more-link { align-self: flex-start; margin-top: 0; padding-top: 20px; }
}

/* ---------- the guessing game: one round on the home page, and the full game ---------- */
.game { padding: 60px 0 68px; background: var(--band); }
.game-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.game h2 { font-size: clamp(36px, 5.4vw, 62px); letter-spacing: -.035em; margin: 10px 0 14px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.round { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.round::before { content: ""; display: block; height: 6px; background: var(--sun); border-radius: 28px 28px 0 0; }
.round-q { padding: 26px 22px 26px; text-align: center; border-bottom: 1px solid var(--line); }
.q { font-weight: 600; font-size: clamp(25px, 3.1vw, 38px); line-height: 1.2; letter-spacing: -.025em; margin: 10px 0 0; text-wrap: balance; }
.q.q-long { font-size: clamp(19px, 2vw, 24px); line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; }
.answers { display: grid; }
.answer { min-width: 0; padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; transition: background-color .25s; }
.answer + .answer { border-top: 1px solid var(--line); }
.answer .label { color: var(--ink-2); }
.answer .btn { align-self: flex-start; }
.answer .btn .words { text-wrap: balance; }   /* a label that wraps on a phone breaks into two even lines */
.who { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.who strong { display: block; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin-bottom: 3px; }
.answer[data-shown="gpt4o"] { background: var(--shown); }
.answer[data-shown="gpt4o"] .who strong { color: var(--accent); }
.answer[data-picked] .label::after { content: " · your pick"; }
.round-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 16px 22px 18px; border-top: 1px solid var(--line); }
.round-foot .btn { padding: 11px 20px; font-size: 15.5px; }
.result { padding: 26px 22px 30px; border-top: 1px solid var(--line); text-align: center; border-radius: 0 0 28px 28px; }
.result-text { font-weight: 600; font-size: clamp(23px, 2.5vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.result-note { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 40em; margin: 0 auto 18px; }
.result-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin: 0 0 18px; }
.result-row .ask { flex-basis: 100%; font-weight: 600; font-size: 16px; margin: 0; }
.tally { font-size: 15px; color: var(--ink-2); margin: 16px 0 0; }
@media (min-width: 760px) {
  .game { padding: 92px 0 108px; }
  .answers { grid-template-columns: 1fr 1fr; }
  .answer { padding: 34px 40px 36px; }
  .answer + .answer { border-top: 0; border-left: 1px solid var(--line); }
  .round-q { padding: 38px 40px 40px; }
  .round-foot { padding: 16px 40px 18px; }
}

/* the full game's own parts */
.game-page { padding: 40px 0 84px; background: var(--band); }
.pick-bar { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bar-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 0 0 28px 28px; }
.pick-bar { flex-direction: column; align-items: center; }
.pick-ask { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; text-align: center; text-wrap: balance; }
.pick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pick-bar .btn { padding: 11px 18px; font-size: 15px; }
@media (min-width: 760px) { .pick-bar { flex-direction: row; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; } }
.game-foot { max-width: 46em; margin: 26px auto 0; text-align: center; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.wait { padding: 60px 22px; text-align: center; color: var(--ink-2); }

/* an answer's own text, wherever it is printed */
.answer-text { font-size: 18.5px; line-height: 1.6; flex: 1; overflow-wrap: break-word; }
.answer-text > :first-child { margin-top: 0; }
.answer-text > :last-child { margin-bottom: 0; }
.answer-text p { margin: 0 0 .8em; }
.answer-text h4, .answer-text h5, .answer-text h6 { font-size: 1.06em; line-height: 1.3; letter-spacing: -.01em; margin: 1.4em 0 .5em; }
.answer-text h5, .answer-text h6 { font-size: 1em; }
.answer-text ul, .answer-text ol { margin: 0 0 .9em; padding-left: 1.3em; }
.answer-text li { margin-bottom: .35em; }
.answer-text li > p { margin-bottom: .35em; }
.answer-text blockquote { margin: 0 0 .9em; padding: 2px 0 2px 16px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.answer-text hr { border: 0; border-top: 1px solid var(--line); margin: 1.3em 0; }
.answer-text code { font-family: var(--mono); font-size: .88em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.answer-text pre { overflow-x: auto; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; line-height: 1.5; }
.answer-text pre code { background: transparent; padding: 0; }
.answer-text table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .9em; margin: 0 0 .9em; }
.answer-text th, .answer-text td { padding: 7px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.answer-text a { overflow-wrap: anywhere; }

/* ---------- home: read its own answers, on the night sky ---------- */
.reading { position: relative; overflow: hidden; color: var(--on-night); padding: 64px 0 68px; background: var(--night-band); }
.reading .wrap { position: relative; }
.reading .label { color: var(--peach); }
.reading-head { max-width: 760px; margin: 0 auto; text-align: center; }
.reading h2 { margin: 10px 0 14px; }
.reading-head p:not(.label) { color: var(--on-night-2); margin: 0; }
.starter { margin: 34px auto 34px; max-width: 1040px; padding: 30px 20px 30px; text-align: center; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line); }
.starter-q { font-size: 16px; line-height: 1.5; color: var(--on-night-3); max-width: 42em; margin: 0 auto 20px; }
.starter blockquote { margin: 0; }
.starter blockquote p { font-weight: 300; font-size: clamp(27px, 3.9vw, 50px); line-height: 1.16; letter-spacing: -.035em; margin: 0; background: var(--quote-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.starter blockquote p::before { content: "“"; }
.starter blockquote p::after { content: "”"; }
.starter figcaption { font-weight: 500; font-size: 14.5px; line-height: 1.4; color: var(--on-night-3); margin: 22px 0 14px; }
.starter .more-link { color: var(--on-night); border-bottom: 1.5px solid var(--peach); padding-bottom: 2px; }
.starter .more-link:hover { color: var(--peach); text-decoration: none; }
.groups { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.groups a { display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 17px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-night); text-decoration: none; font-weight: 500; font-size: 15.5px; line-height: 1.3; transition: background-color .16s, border-color .16s; }
.groups a:hover { background: var(--glass-2); border-color: var(--glass-line-2); color: var(--on-night); }
.groups .n { font-size: 13px; color: var(--on-night-3); white-space: nowrap; }
.reading-foot { text-align: center; margin: 30px 0 0; }
@media (min-width: 760px) {
  .reading { padding: 104px 0 108px; }
  .starter { margin: 48px auto 40px; padding: 52px 56px 48px; }
}

/* ---------- home: more on this site ---------- */
.doors { padding: 60px 0 56px; }
.door-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.door { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; height: 100%; padding: 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.door-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--sun); color: var(--on-sun); }
.door-icon .icon { width: 23px; height: 23px; }
.door h3 { font-size: 19.5px; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 6px; }
.door p { grid-column: 2; margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
a.door:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
a.door:hover h3 { color: var(--accent); }
.door.is-coming { border-style: dashed; }
.door .tag { margin-top: 12px; grid-column: 2; justify-self: start; }
@media (min-width: 720px) {
  .doors { padding: 104px 0 96px; }
  .door-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
  .door { display: block; padding: 28px 28px 30px; border-radius: 24px; }
  .door-icon { width: 50px; height: 50px; border-radius: 15px; margin-bottom: 20px; }
  .door-icon .icon { width: 26px; height: 26px; }
  .door h3 { font-size: 22px; margin-bottom: 8px; }
}
@media (min-width: 1080px) { .door-grid { grid-template-columns: repeat(3, 1fr); } }

.finding { margin-top: 20px; padding: 24px 22px 26px; border: 2px solid transparent; border-radius: 24px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--sun) border-box; }
.finding-text { font-size: clamp(19px, 1.85vw, 25px); line-height: 1.4; letter-spacing: -.015em; max-width: 42em; margin: 12px 0 14px; }
.finding-more { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.finding-more a { color: var(--accent); font-weight: 600; white-space: nowrap; margin-left: 10px; }
@media (min-width: 720px) { .finding { padding: 34px 40px 36px; } }

/* ---------- home: a note from Grant Williams ---------- */
.note { padding: 0 0 60px; }
.note-card { border-radius: 28px; padding: 30px 22px 30px; background: var(--note-card); }
.note-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.65; }
.note-body p:first-child { font-size: clamp(21px, 2.05vw, 28px); line-height: 1.38; letter-spacing: -.02em; margin: 14px 0 22px; }
.note-body .sig { font-weight: 600; font-size: 15px; color: var(--ink); margin: 0; }
@media (min-width: 1000px) {
  .note { padding-bottom: 104px; }
  .note-card { padding: 56px 60px 56px; }
  .note-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 64px; align-items: start; margin-top: 18px; }
  .note-body p:first-child { grid-row: 1 / span 2; margin: 0; }
  .note-body p:nth-child(2) { margin-bottom: 20px; }
  .note-body .sig { grid-column: 2; }
}

/* ---------- news cards ---------- */
.news { padding: 0 0 60px; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.news-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.story { display: block; height: 100%; padding: 22px 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.story .label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); letter-spacing: .04em; font-size: 12.5px; }
.story h2, .story h3 { font-size: 20.5px; line-height: 1.28; letter-spacing: -.018em; margin: 14px 0 10px; }
.story p:last-child { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.story:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.story:hover h2, .story:hover h3 { color: var(--accent); }
@media (min-width: 900px) {
  .news { padding-bottom: 104px; }
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
  .story { padding: 28px 28px 30px; border-radius: 24px; }
  .story h2, .story h3 { font-size: 22px; }
}

/* ---------- mailing list and suggestions ---------- */
.signup { padding: 60px 0 64px; background: var(--band-2); }
.forms { display: grid; gap: 16px; margin-top: 26px; }
.form-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px 24px; box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 18px; }
.form-card label, .field > label { font-weight: 600; font-size: 15px; line-height: 1.3; margin-bottom: 7px; }
.form-card input, .form-card textarea { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: 14px; padding: 13px 15px; margin-bottom: 16px; }
.form-card textarea { resize: vertical; min-height: 92px; margin-bottom: 8px; }
.form-card input::placeholder { color: var(--field-placeholder); opacity: 1; }
.form-card input:focus-visible, .form-card textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.form-care { font-weight: 600; font-size: 14.5px; line-height: 1.45; margin: 0 0 16px; }
.form-lead { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.form-trap { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-card .know { margin: 0; padding-left: 20px; }
.form-card .know li { margin: 0 0 12px; line-height: 1.5; }
.form-small { font-style: italic; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin: 16px 0 0; }
.form-note { align-self: stretch; font-weight: 500; font-size: 15px; line-height: 1.45; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
@media (min-width: 900px) {
  .signup { padding: 96px 0 108px; }
  .forms { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
  .form-card { padding: 34px 34px 32px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--on-night-3); padding: 52px 0 60px; font-size: 15.5px; line-height: 1.6; }
.site-footer .wordmark { color: var(--on-night); font-size: 24px; margin-bottom: 12px; }
.site-footer p { max-width: 32em; margin: 0 0 10px; }
.site-footer a { color: var(--on-night); text-decoration-color: var(--on-night-underline); }
.site-footer a:hover { color: var(--peach); }
.footer-grid { display: grid; gap: 34px; }
.footer-nav { display: grid; gap: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: 7px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .coming { display: block; padding: 7px 0; color: var(--on-night-3); }
@media (min-width: 900px) {
  .site-footer { padding: 76px 0 84px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 80px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---------- every inner page: a short night sky on top, then the page ---------- */
.page-head { position: relative; overflow: hidden; color: var(--on-night); background: var(--page-head); padding: 30px 0 46px; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sun); }
.page-head .wrap { position: relative; }
.page-head .label { color: var(--peach); margin-bottom: 14px; }
.page-head .label a { text-decoration: none; }
.page-head .label a:hover { color: var(--on-night); }
.page-head h1 { margin: 0 0 16px; max-width: 17em; }
.page-lede { font-size: clamp(18px, 1.65vw, 21.5px); line-height: 1.5; max-width: 37em; margin: 0; color: var(--on-night-2); }
.page-head .head-facts { margin: 16px 0 0; font-size: 14.5px; color: var(--on-night-3); }
@media (min-width: 760px) { .page-head { padding: 54px 0 72px; } }

.page-body { padding-top: 40px; padding-bottom: 72px; }
.page-grid { display: grid; gap: 30px; }
@media (min-width: 1000px) {
  .page-body { padding-top: 72px; padding-bottom: 110px; }
  .page-grid.has-toc { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
  .page-grid.has-toc .toc { position: sticky; top: 24px; }
}

.toc { font-size: 15.5px; line-height: 1.4; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.prose { max-width: 70ch; font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.022em; margin: 2.1em 0 .6em; }
.prose h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.012em; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose ol { list-style: none; padding: 0; counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; margin-bottom: 14px; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 16px; line-height: 1; background: var(--accent-soft); color: var(--accent-strong); }
.prose blockquote { margin: 1.4em 0; padding: 20px 22px; border-radius: 20px; background: var(--accent-soft); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose .src, .prose p.src { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.prose .src a { overflow-wrap: anywhere; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose strong { font-weight: 600; }
.callout { margin: 1.6em 0; padding: 20px 22px; border-radius: 20px; background: var(--note-card); }
.callout > :last-child { margin-bottom: 0; }
.callout .label { margin-bottom: 8px; }
.resources { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.resources a { color: var(--accent); font-weight: 600; }
.quiet-line { margin: 40px 0 0; font-size: 15px; color: var(--ink-2); }

/* a table that turns into cards on a phone */
.rtable { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; margin: 0 0 1.5em; }
.rtable th, .rtable td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.rtable thead th { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.rtable tbody th { font-weight: 600; }
.rtable .num { white-space: nowrap; }
@media (max-width: 859px) {
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rtable tr { padding: 14px 16px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
  .rtable th, .rtable td { border: 0; padding: 3px 0; }
  .rtable tbody th { font-size: 17.5px; padding-bottom: 6px; }
  .rtable td[data-th]::before { content: attr(data-th) ": "; font-weight: 600; color: var(--ink-2); }
  .rtable .num { white-space: normal; }
}

/* a table with many columns: always cards, two across on a wide screen */
.rtable-cards, .rtable-cards tbody, .rtable-cards tr, .rtable-cards th, .rtable-cards td { display: block; }
.rtable-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rtable-cards tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rtable-cards .num { white-space: normal; }
.rtable-cards tr { padding: 16px 18px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.rtable-cards th, .rtable-cards td { border: 0; padding: 3px 0; }
.rtable-cards tbody th { font-size: 17.5px; padding-bottom: 6px; }
.rtable-cards td[data-th]::before { content: attr(data-th) ": "; font-weight: 600; color: var(--ink-2); }
@media (min-width: 720px) { .rtable-cards tbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* a picture or, later, a video */
.media { margin: 1.8em 0; }
.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--night-band); }
.media-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.media figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* a block of text to copy, word for word */
.copy-box { margin: 1.4em 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.copy-box blockquote { margin: 0; padding: 22px 22px 6px; border-radius: 0; background: transparent; font-size: 18.5px; line-height: 1.6; }
.copy-box .copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 22px 20px; }
.copy-box .copy-said { font-size: 15px; color: var(--ink-2); margin: 0; }

.openings, .prose .openings { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 8px; }
.prose .openings > li { padding: 12px 16px; margin: 0; min-height: 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.prose .openings > li::before { content: none; }
.openings .who-said { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }

/* ---------- read: the nine groups, and a group's answers ---------- */
.group-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.group-card { height: 100%; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; }
.group-card h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; margin: 10px 0 6px; }
.group-card h2 a { text-decoration: none; }
.group-card .line { color: var(--ink-2); margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.group-card ol { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.group-card li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15.5px; line-height: 1.4; }
.group-card li a span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (min-width: 720px) { .group-grid { grid-template-columns: 1fr 1fr; gap: 20px; } .group-card { padding: 30px 30px 26px; } }
@media (min-width: 1080px) { .group-grid { grid-template-columns: repeat(3, 1fr); } }
.read-intro { max-width: 70ch; font-size: 18px; line-height: 1.7; margin: 0 0 36px; }
.read-intro p:last-child { margin-bottom: 0; }

.read-list { margin: 0 0 12px; padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.read-list ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: r; }
.read-list li { counter-increment: r; }
.read-list a { display: grid; grid-template-columns: 26px 1fr; padding: 8px 0; text-decoration: none; font-size: 16px; line-height: 1.4; }
.read-list a::before { content: counter(r); font-weight: 600; color: var(--accent); }
.reading-item { padding: 44px 0 46px; border-bottom: 1px solid var(--line); }
.ri-head .label { margin-bottom: 10px; }
.ri-q { font-size: clamp(22px, 2.3vw, 27px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: pretty; }
.ri-q.q-long { font-size: 18.5px; line-height: 1.45; letter-spacing: -.005em; font-weight: 500; }
.ri-facts { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ri-facts li { margin: 0; }
.ri-facts li:first-child { font-weight: 600; color: var(--ink); }
.ri-facts code { white-space: nowrap; }   /* a model's API name stays in one piece */
.ri-text { font-size: 19px; line-height: 1.7; max-width: 66ch; }
.ri-text.answer-text p { margin-bottom: 1em; }
@media (min-width: 1000px) {
  .reading-item { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 64px; align-items: start; padding: 72px 0 76px; }
  .ri-head { position: sticky; top: 28px; }
  .ri-facts { margin-bottom: 0; }
}
.keep-bar { position: fixed; z-index: 9; left: 0; right: 0; top: 0; padding: 10px var(--gutter) 11px; background: var(--bar-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14.5px; line-height: 1.4; transform: translateY(-110%); transition: transform .2s; }
.keep-bar[data-on] { transform: none; }
.keep-bar .label { font-size: 11.5px; }
.keep-bar p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-weight: 500; }
@media (min-width: 1000px) { .keep-bar { display: none; } }
.how-asked { margin: 56px 0 0; max-width: 70ch; }
.how-asked h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.how-asked h3 { font-size: 18px; margin: 22px 0 8px; }
.how-asked blockquote { margin: 0; padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); font-size: 16.5px; line-height: 1.6; }
.how-asked blockquote p { margin: 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin: 44px 0 0; }
.pager a { display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.3; min-width: min(100%, 260px); }
.pager a:hover { border-color: var(--line-strong); }
.pager a span { font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pager a.next { text-align: right; margin-left: auto; }

/* ---------- compare ---------- */
.cmp { padding-top: 34px; padding-bottom: 84px; }
.cmp-controls { display: grid; gap: 12px; margin: 0 0 22px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select select { width: 100%; -webkit-appearance: none; appearance: none; font: 500 16.5px/1.35 var(--sans); color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: 14px; padding: 13px 44px 13px 15px; text-overflow: ellipsis; cursor: pointer; }
.select select:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.q-step { display: flex; gap: 10px; }
.cmp-question { margin: 0 0 22px; padding: 24px 22px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cmp-question .q { margin: 8px 0 10px; }
.cmp-question .q-facts { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.cmp-grid { display: grid; gap: 16px; }
.cmp-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.cmp-col[data-side="left"] { background: var(--shown); }
.cmp-pick { display: grid; gap: 12px; }
.cmp-col > [data-out] { display: grid; gap: 16px; min-width: 0; }
.cmp-col > [data-out] > * { min-width: 0; }
.cmp-name { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.cmp-facts { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.measures { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.measures div { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; line-height: 1.3; }
.measures dt { color: var(--ink-2); }
.measures dd { margin: 0; font-weight: 600; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg legend { float: left; padding: 0; margin: 0 6px 0 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-block; min-width: 58px; padding: 9px 16px; border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--field-bg); font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; }
.seg input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.seg input:disabled { cursor: not-allowed; }
.seg input:disabled + span { opacity: .45; }
.seg-said { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-2); }
.clamp { position: relative; max-height: 22em; overflow: hidden; }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: var(--fade); pointer-events: none; }
.cmp-col[data-side="left"] .clamp::after { content: none; }
.fold > summary { display: inline-flex; align-items: center; font-weight: 600; font-size: 15.5px; color: var(--accent); padding: 6px 0; }
.fold-body { display: grid; gap: 18px; margin-top: 12px; }
.extra { padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.extra[data-marked] { padding: 18px; border: 2px solid var(--accent); border-radius: 18px; }
.extra h3 { font-size: 16px; }
.extra .cmp-facts { margin-top: 2px; }
.none-yet { margin: 0; padding: 18px; border-radius: 16px; background: var(--accent-soft); font-size: 16px; }
@media (min-width: 700px) {
  .cmp-controls { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (min-width: 900px) {
  .cmp { padding-top: 56px; padding-bottom: 110px; }
  .cmp-question { padding: 34px 40px 36px; }
  .cmp-grid { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .cmp-col { padding: 30px 32px 34px; }
  .clamp { max-height: none; overflow: visible; }
  .clamp::after { content: none; }
  [data-unclamp] { display: none; }
}

/* ---------- timeline ---------- */
.key { margin: 0 0 40px; padding: 24px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.key h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px; }
.key dl { margin: 0; display: grid; gap: 12px; }
.key dt { font-weight: 600; font-size: 16.5px; }
.key dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tl-year { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.03em; margin: 40px 0 20px; background: var(--sun-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px 36px; max-width: 72ch; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item.is-end::before { border-color: var(--dot-no); }
.tl-item.is-ahead::before { border-color: var(--dot-ending); }
.tl-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--accent); margin: 0 0 3px; }
.tl-item h3 { font-size: 20.5px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 6px; }
.tl-item p { margin: 0 0 6px; font-size: 17px; line-height: 1.6; }
@media (min-width: 720px) { .key { padding: 32px 34px; } .key dl { grid-template-columns: 1fr 1fr; gap: 18px 40px; } }

/* ---------- open models ---------- */
.model-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.model-card { padding: 24px 22px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.model-card h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 4px; }
.model-card .maker { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-2); }
.model-card p { font-size: 17px; line-height: 1.6; }
.facts { margin: 0 0 16px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.model-card .ours { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 16px; }
@media (min-width: 640px) { .model-card { padding: 32px 34px 34px; } .facts div { grid-template-columns: 170px 1fr; gap: 16px; } }

/* ---------- the models page: find a model to replace GPT-4o ---------- */
.finder { min-width: 0; }
.finder-key { margin: 0 0 34px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); font-size: 15.5px; line-height: 1.5; }
.finder-group { margin: 0 0 56px; scroll-margin-top: 24px; }
.finder-group:last-child { margin-bottom: 0; }
.finder-group h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
.group-text { max-width: 68ch; margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.finder-group > .state { margin: -8px 0 18px; font-weight: 600; font-size: 16.5px; }
.finder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.finder-card { height: 100%; display: flex; flex-direction: column; gap: 5px; padding: 20px 20px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 24px; }
.finder-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.finder-card .maker, .finder-card .how { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.finder-card .says { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
.finder-card .seen { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 16px; line-height: 1.5; }
.finder-card .seen .label { display: block; margin-bottom: 4px; color: var(--accent-strong); }
.finder-card .seen a { color: var(--accent-strong); font-weight: 600; }
.finder-card .state { margin: 8px 0 0; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.finder-card .links { margin: auto 0 0; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.quiet-link { font-size: 15px; color: var(--ink-2); }
.quiet-link:hover { color: var(--accent); }
.group-link { margin: 18px 0 0; }
.finder-dl { max-width: 68ch; margin: 0 0 18px; border-top: 1px solid var(--line); }
.finder-dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.finder-dl dt { font-weight: 600; font-size: 16.5px; line-height: 1.4; }
.finder-dl dd { margin: 2px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.finder-dl dd a { color: var(--accent); font-weight: 600; white-space: nowrap; margin-left: 6px; }
.finder .finding { margin: 4px 0 0; }
@media (min-width: 700px) { .finder-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ---------- small pages ---------- */
.center-page { padding-top: 72px; padding-bottom: 110px; text-align: center; }
.center-page p { max-width: 36em; margin: 0 auto 1.4em; font-size: 18px; }
.article-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-3); }
.page-head .tag { background: var(--glass-2); color: var(--on-night); }
.checked-line { margin-top: 28px; }
