/* OpenAI Daily News: site styles.
   A broadsheet: warm paper, black ink, one deep red. Headlines and
   standfirsts are set in Newsreader, everything else in IBM Plex Sans.
   Stories are separated by hairline rules, never put in boxes; corners are
   square. Flat colour only: no gradients, glows or shadows. */

:root {
  --paper: #f6f1e6;
  --paper-2: #ece5d5;
  --ink: #1c1a16;
  --ink-2: #48443c;
  --ink-3: #6b665b;
  --rule: #d3c9b5;
  --rule-heavy: #1c1a16;
  --red: #8a1c14;
  --red-ink: #fbf7ee;
  --red-wash: #efdcd3;
  --warn: #8a1c14;
  --good: #2f5d3a;
  --focus: #8a1c14;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sheet: 1180px;
  --gutter: 20px;
  --gap: 28px;
  /* The space between one block of a page and the next. */
  --block: 44px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #191713;
    --paper-2: #23201a;
    --ink: #ebe5d7;
    --ink-2: #c0b8a7;
    --ink-3: #978f7f;
    --rule: #3a352c;
    --rule-heavy: #ebe5d7;
    --red: #e79383;
    --red-ink: #191713;
    --red-wash: #3a231e;
    --warn: #f0a394;
    --good: #9cc7a4;
    --focus: #e79383;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #191713;
  --paper-2: #23201a;
  --ink: #ebe5d7;
  --ink-2: #c0b8a7;
  --ink-3: #978f7f;
  --rule: #3a352c;
  --rule-heavy: #ebe5d7;
  --red: #e79383;
  --red-ink: #191713;
  --red-wash: #3a231e;
  --warn: #f0a394;
  --good: #9cc7a4;
  --focus: #e79383;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sheet { max-width: var(--sheet); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 32px; --gap: 40px; --block: 64px; } }
.skip { position: absolute; left: -9999px; top: 6px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utility line, nameplate, section line ---------- */
.utility { font-size: 13.5px; color: var(--ink-2); }
.utility__row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.utility__end { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
.utility__link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; }
.utility__find { margin-left: -10px; }
.utility__link[data-acct-state="in"] { color: var(--ink); font-weight: 600; }
.utility__theme { background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; min-width: 44px; min-height: 44px; color: inherit; }
.utility__theme:hover { color: var(--red); }

.nameplate { text-align: center; }
.nameplate .sheet { padding-top: clamp(8px, 2vw, 22px); }
.nameplate__title { display: inline-block; font: 700 clamp(34px, 8.4vw, 74px)/1 var(--display); letter-spacing: -0.022em; color: var(--ink); padding: 4px 0; }
.nameplate__title:hover { color: var(--ink); }
.nameplate__title--small { font-size: clamp(26px, 4vw, 34px); }
.nameplate__motto { margin: 8px 0 clamp(16px, 2.4vw, 26px); font: italic 400 clamp(15px, 2vw, 18px)/1.3 var(--display); color: var(--ink-2); }
.edition { margin: 0; padding: 10px 0; border-top: 1px solid var(--rule-heavy); border-bottom: 1px solid var(--rule-heavy); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.edition__checked { border-bottom: 1px solid var(--rule); }
.edition__checked:hover { border-color: currentColor; }
@media (max-width: 480px) { .edition__date { display: none; } }

.sections { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.sections__row { display: flex; justify-content: safe center; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sections__row::-webkit-scrollbar { display: none; }
.sections__link { flex: none; display: flex; align-items: center; min-height: 52px; padding: 0 13px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.sections__link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 7px; }
.sections__link[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* ---------- small type pieces ---------- */
/* A section's name in small capitals. One colour for every section. */
.slug, .kicker { display: inline-block; margin: 0 0 8px; font: 600 11.5px/1.2 var(--text); letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
a.slug { padding: 6px 0; margin: -6px 0 0; }
a.slug:hover { text-decoration: underline; text-underline-offset: 3px; }
.mark { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); padding: 3px 5px 2px; }
.byline { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; font-size: 13px; line-height: 1.4; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.byline__paper { color: var(--ink-2); font-weight: 500; }
.byline time::before, .byline__also::before { content: "·"; margin-right: 9px; color: var(--rule); }
/* A heading that opens a block: heavy rule above, hairline below. */
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; padding: 12px 0 11px; border-top: 2px solid var(--rule-heavy); border-bottom: 1px solid var(--rule); font: 600 13px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.label small { font: 400 13px/1.2 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink-3); text-align: right; }
.label small a { display: inline-block; padding: 5px 0; margin: -5px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.label small a:hover { color: var(--red); border-color: currentColor; }
.onward, .more { display: inline-block; margin-top: 14px; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--red); border-bottom: 1px solid currentColor; }
.nothing, .empty { color: var(--ink-3); font: italic 400 17px/1.45 var(--display); padding: 18px 0 24px; margin: 0; }
.nothing--invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.nothing--invite p { margin: 0; flex: 1 1 280px; }
.nothing--invite .btn { font-style: normal; }

/* ---------- pictures ---------- */
.plate { position: relative; margin: 0; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.plate--wide { aspect-ratio: 16 / 9; }
.plate--small { aspect-ratio: 1; width: 84px; flex: none; }
.plate__name { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font: italic 400 17px/1.2 var(--display); color: var(--ink-3); }
.plate--small .plate__name { font-size: 11px; padding: 4px; }

/* ---------- lead story ---------- */
.lede { text-align: center; }
.lede__head { font-size: clamp(28px, 3.9vw, 46px); line-height: 1.06; letter-spacing: -0.018em; font-weight: 600; text-wrap: balance; }
.lede__standfirst { margin: 16px auto 0; max-width: 56ch; font: 400 18.5px/1.45 var(--display); color: var(--ink-2); }
.lede .byline { justify-content: center; margin-top: 16px; }
.lede__picture { display: block; margin-top: 26px; }
.lede__head, .brief__head, .report__head, .latest__head, .article__title, .brief__standfirst { overflow-wrap: anywhere; }

/* ---------- runs of headlines ---------- */
.brief { display: flex; gap: 20px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.brief:last-child { border-bottom: 0; }
.brief__text { min-width: 0; }
.brief__head { font-size: 19px; line-height: 1.22; font-weight: 600; letter-spacing: -0.005em; }
.brief__standfirst, .list__dek { margin: 8px 0 0; font: 400 16.5px/1.45 var(--display); color: var(--ink-2); }
.briefs--pictured .plate--small { width: 96px; aspect-ratio: 4 / 3; }
.briefs--letters .brief__head { font-size: 22px; }

/* ---------- stories in columns ---------- */
.columns { display: grid; grid-template-columns: 1fr; }
.report { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.report:last-child { border-bottom: 0; }
.report__picture { display: block; margin-bottom: 16px; }
.report__head { font-size: 21px; line-height: 1.18; font-weight: 600; letter-spacing: -0.008em; }
.report__standfirst { margin: 9px 0 0; font: 400 16px/1.45 var(--display); color: var(--ink-2); }
.report--plain .report__head { font-size: 23px; }
@media (min-width: 620px) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .report { position: relative; }
  .report:nth-last-child(-n+2):nth-child(odd), .report:last-child { border-bottom: 0; }
  .report:nth-child(even)::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 24px; bottom: 24px; border-left: 1px solid var(--rule); }
}
@media (min-width: 980px) {
  .columns--3 .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .columns--4 .columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .columns--3 .report, .columns--4 .report { border-bottom: 0; }
  .columns--3 .report::before, .columns--4 .report::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 24px; bottom: 24px; border-left: 1px solid var(--rule); }
  .columns--3 .report:nth-child(3n+1)::before, .columns--4 .report:nth-child(4n+1)::before { display: none; }
  .columns--3 .report:nth-child(n+4), .columns--4 .report:nth-child(n+5) { border-top: 1px solid var(--rule); }
  .columns--4 .report__head { font-size: 19.5px; }
}
/* Phones: the first story of a block keeps its picture above the headline;
   the rest become short rows with a small picture, so a block is two
   screens long, not five. */
@media (max-width: 619px) {
  .report:nth-child(n+2) { display: flex; flex-direction: row-reverse; gap: 16px; padding: 18px 0; }
  .report:nth-child(n+2) .report__picture { flex: none; width: 96px; margin: 0; }
  .report:nth-child(n+2) .plate { aspect-ratio: 4 / 3; }
  .report:nth-child(n+2) .plate__name { font-size: 11px; padding: 4px; }
  .report:nth-child(n+2) .report__text { flex: 1; min-width: 0; }
  .report:nth-child(n+2) .report__head { font-size: 18px; }
  .report:nth-child(n+2) .report__standfirst { display: none; }
}

/* ---------- newest headlines with their hour ---------- */
.latest__item { padding: 15px 0; border-bottom: 1px solid var(--rule); }
.latest__item:last-child { border-bottom: 0; }
.latest__head { display: block; font: 600 17px/1.25 var(--display); }
.latest__line { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.latest__line time { color: var(--ink-2); font-weight: 500; }
.latest__section { color: var(--red); }
.latest__section:hover { text-decoration: underline; }

/* ---------- front page ---------- */
.frontpage { display: grid; gap: var(--block); padding: clamp(24px, 3.4vw, 40px) 0 0; }
.frontpage__lead { order: 1; }
.frontpage__top { order: 2; }
.frontpage__latest { order: 3; }
.frontpage__lead .columns { margin-top: 28px; border-top: 1px solid var(--rule); }
@media (min-width: 760px) and (max-width: 1039px) {
  .frontpage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
  .frontpage__lead { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .frontpage { grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr); column-gap: var(--gap); align-items: start; }
  .frontpage__latest { order: 1; }
  .frontpage__lead { order: 2; position: relative; }
  .frontpage__top { order: 3; }
  .frontpage__lead::before, .frontpage__lead::after { content: ""; position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
  .frontpage__lead::before { left: calc(var(--gap) / -2); }
  .frontpage__lead::after { right: calc(var(--gap) / -2); }
  .frontpage__latest .latest__head { font-size: 16.5px; }
  .frontpage__top .brief__head { font-size: 17.5px; }
}
/* Phones: the front page shows the first few of each list; the section's own page has the rest. */
@media (max-width: 759px) {
  .front .latest__item:nth-child(n+7), .front .pair .brief:nth-child(n+5) { display: none; }
  .front .latest__item:nth-child(6), .front .pair .brief:nth-child(4) { border-bottom: 0; }
}

.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--block) 0 0; border-top: 2px solid var(--rule-heavy); border-bottom: 1px solid var(--rule-heavy); }
.contents li { border-bottom: 1px solid var(--rule); }
.contents li:nth-child(odd) { border-right: 1px solid var(--rule); }
.contents li:nth-last-child(-n+2) { border-bottom: 0; }
.contents__link { display: block; padding: 16px 12px 15px; text-align: center; }
.contents__name { display: block; font: 600 17px/1.2 var(--display); }
.contents__count { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.contents__link:hover .contents__name { color: var(--red); }
@media (min-width: 640px) and (max-width: 1039px) {
  .contents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contents li:nth-child(odd) { border-right: 0; }
  .contents li:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
  .contents li:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (min-width: 1040px) {
  .contents { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .contents li { border-bottom: 0; }
  .contents li:not(:last-child) { border-right: 1px solid var(--rule); }
}

.dept { padding: var(--block) 0 0; }
.pair { display: grid; gap: var(--block); }
@media (min-width: 900px) {
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); align-items: start; }
  .pair--wide-first { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .pair > * + * { position: relative; }
  .pair > * + *::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 0; bottom: 0; border-left: 1px solid var(--rule); }
}
.endpaper { margin-top: var(--block); padding: 0 0 var(--block); background: var(--paper-2); }
.endpaper .dept { padding-top: calc(var(--block) - 8px); }
.explain p { font-size: 15px; color: var(--ink-2); }
.offers { display: grid; gap: 36px; margin-top: var(--block); padding-top: 36px; border-top: 1px solid var(--rule-heavy); }
@media (min-width: 760px) { .offers { grid-template-columns: 1fr 1fr; column-gap: var(--gap); } }
.offer h2 { font-size: 25px; line-height: 1.15; margin-bottom: 12px; }
.offer p { margin-bottom: 20px; }
.offer p { color: var(--ink-2); max-width: 48ch; font-size: 15.5px; }

/* ---------- section pages ---------- */
.desk-head { padding: clamp(30px, 5vw, 56px) 0 clamp(24px, 3.4vw, 38px); text-align: center; border-bottom: 1px solid var(--rule-heavy); margin-bottom: clamp(26px, 3.4vw, 40px); }
.headline { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.03; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.desk-head__about { margin: 16px auto 0; max-width: 60ch; font: 400 18px/1.45 var(--display); color: var(--ink-2); }
.tally { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tally b { color: var(--ink); font-weight: 600; }
.desk { display: grid; gap: var(--block); padding-bottom: 24px; }
@media (min-width: 1000px) { .desk { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 48px; align-items: start; } }
.desk__grid { margin-top: 28px; border-top: 1px solid var(--rule); }
.roll { font-size: 14.5px; color: var(--ink-2); }
.roll li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.roll li span { font-size: 12.5px; color: var(--ink-3); text-align: right; }
.sidenote { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--rule-heavy); }
.sidenote h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.sidenote p { font-size: 14.5px; color: var(--ink-2); margin-bottom: .6em; }
.sidenote a:not(.onward) { text-decoration: underline; text-underline-offset: 3px; }
.dateline { margin: var(--block) 0 0; padding: 12px 0 11px; border-top: 2px solid var(--rule-heavy); border-bottom: 1px solid var(--rule); font: 600 13px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.turn { display: flex; align-items: center; gap: 16px; margin: var(--block) 0 8px; padding-top: 20px; border-top: 1px solid var(--rule-heavy); font-size: 15px; }
.turn__page { color: var(--ink-3); margin-right: auto; font-variant-numeric: tabular-nums; }
.turn__link { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule); }
.turn__link--on { font-weight: 600; color: var(--red); border-color: currentColor; }

/* ---------- story page ---------- */
.trail { display: flex; align-items: center; gap: 16px; padding-top: 20px; font-size: 13.5px; color: var(--ink-3); }
.trail__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trail__crumbs a { padding: 6px 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.return { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding-right: 14px; border-right: 1px solid var(--rule); color: var(--ink-2); font-weight: 500; }
.return:hover { color: var(--red); }

.article { max-width: 680px; margin: 0 auto; padding: clamp(26px, 4vw, 48px) 0 8px; }
.article__head { text-align: center; }
.article__title { font-size: clamp(30px, 5vw, 48px); line-height: 1.06; letter-spacing: -0.018em; font-weight: 600; text-wrap: balance; }
.article__standfirst { margin: 18px auto 0; max-width: 52ch; font: 400 20px/1.42 var(--display); color: var(--ink-2); }
.article__by { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; margin: 26px 0 0; padding: 13px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.article__by b { color: var(--ink); font-weight: 600; }
.article__plate { margin-top: 30px; }
.article__credit { margin: 9px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: right; }
.article__text { margin-top: 32px; font-size: 18px; line-height: 1.68; }
.article__text p:last-child { margin-bottom: 0; }
.article__others { margin: 26px 0 0; font-size: 14.5px; color: var(--ink-2); }
.article__others b { font-weight: 600; color: var(--ink); }
.article__source { margin-top: 40px; padding: 24px 0 28px; border-top: 2px solid var(--rule-heavy); border-bottom: 1px solid var(--rule); }
.article__source p { font: 400 17px/1.45 var(--display); color: var(--ink-2); margin-bottom: 18px; }
.article__source p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article__pass { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 18px 0 0; font-size: 14px; }
.article__pass span { font: 600 11.5px/1 var(--text); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.article__pass a, .article__pass button { background: none; border: 0; padding: 9px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.article__pass a:hover, .article__pass button:hover { color: var(--red); text-decoration-color: currentColor; }
.article__note { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--rule-heavy); font-size: 14px; color: var(--ink-3); }
.article__note a { text-decoration: underline; text-underline-offset: 3px; }
.article--essay .article__head { text-align: left; }
.article--essay .article__standfirst { margin-left: 0; }
.article--essay .article__by { justify-content: flex-start; }

.further { max-width: 920px; margin: var(--block) auto 0; padding-bottom: 16px; display: grid; gap: var(--block); }
@media (min-width: 760px) {
  .further { grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .further__wide { grid-column: 1 / -1; }
}

/* ---------- long text: reader pieces, previews ---------- */
.prose { font-size: 18px; line-height: 1.7; margin-top: 32px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 27px; line-height: 1.18; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 21px; line-height: 1.25; margin: 1.4em 0 .45em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 0 0 0 18px; border-left: 2px solid var(--red); font: italic 400 20px/1.5 var(--display); color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }

/* ---------- information pages ---------- */
.doc { max-width: 1040px; padding-top: clamp(28px, 4.4vw, 52px); padding-bottom: 24px; }
.doc--narrow { max-width: 760px; }
.doc .headline { font-size: clamp(32px, 5vw, 50px); margin-bottom: 20px; }
.doc__lead { font: 400 21px/1.45 var(--display); color: var(--ink-2); max-width: 60ch; margin-bottom: 36px; }
.doc h2:where(:not(.label)) { font-size: 25px; line-height: 1.2; margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
.doc h2.label { margin-bottom: 14px; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-2); }
.doc ul.points { list-style: disc; padding-left: 1.2em; }
.doc ul.points li { margin-bottom: 9px; }
.doc a:not(.btn):not(.return) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.doc b { color: var(--ink); font-weight: 600; }
.cols { display: grid; gap: var(--block); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; } }
.steps { display: grid; gap: 12px; margin: 14px 0 32px; list-style: decimal; padding-left: 22px; }
.steps li { color: var(--ink-2); padding-left: 4px; }
.steps b { color: var(--ink); font-weight: 600; }
.notice { max-width: 680px; padding-top: 70px; padding-bottom: 90px; text-align: center; }
.notice p { color: var(--ink-2); font-size: 17px; }
.notice .headline { font-size: clamp(30px, 5vw, 46px); margin-bottom: 16px; }
.notice__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin: 0 0 40px; border-top: 2px solid var(--rule-heavy); }
.figures div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.figures dt { font-size: 12.5px; color: var(--ink-3); }
.figures dd { margin: 2px 0 0; font: 600 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.figures div:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } .figures div:first-child { grid-column: span 2; } }
.table-scroll { overflow-x: auto; }
.answer { font-weight: 500; }
.answer--yes { color: var(--good); }
.answer--no { color: var(--warn); }

/* advertising */
.rates { display: grid; gap: 0; margin: 14px 0 var(--block); border-top: 2px solid var(--rule-heavy); border-bottom: 1px solid var(--rule-heavy); }
.tier { padding: 26px 0 28px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.tier:last-child { border-bottom: 0; }
.tier h3 { font-size: 24px; line-height: 1.15; }
.tier__price { margin: 8px 0 16px; font-size: 14px; color: var(--ink-3); }
.tier__price b { font: 600 30px/1 var(--display); color: var(--ink); margin-right: 6px; }
.tier ul { font-size: 14.5px; color: var(--ink-2); display: grid; gap: 8px; margin-bottom: 24px; list-style: disc; padding-left: 18px; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier--on h3 { color: var(--red); }
.tier--on .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 820px) {
  .rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier { padding: 28px 28px 30px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .tier:first-child { padding-left: 0; }
  .tier:last-child { border-right: 0; padding-right: 0; }
}
.aside-line { border-left: 2px solid var(--red); padding: 2px 0 2px 16px; margin: 24px 0 8px; font-size: 15.5px; }
.terms-box { border-top: 1px solid var(--rule-heavy); border-bottom: 1px solid var(--rule); padding: 18px 0 14px; margin: 8px 0 24px; }
.terms-box h3 { font: 600 12.5px/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.terms-box ul { list-style: disc; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.terms-box b { color: var(--ink); font-weight: 600; }
.terms-box p { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.book { margin: 0 0 var(--block); scroll-margin-top: 70px; }
.book--flash { animation: book-flash 1.4s ease-out 1; }
@keyframes book-flash { from { outline: 3px solid var(--red); } to { outline: 3px solid transparent; } }
.picked { border-left: 2px solid var(--red); padding: 6px 0 6px 12px; margin: 6px 0 10px; color: var(--ink); font-size: 16px; }
.hint--ok { color: var(--good); }
.field-note { margin: -10px 0 20px; padding: 8px 12px; font-size: 14px; border-left: 2px solid var(--warn); background: var(--red-wash); }
@media (min-width: 900px) { .book { max-width: 760px; } }
.ad-slot { margin: clamp(24px, 3.4vw, 40px) auto 0; max-width: 970px; text-align: center; }
.ad-slot__label { font: 600 11px/1 var(--text); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ad-slot a { display: block; border: 1px solid var(--rule); }
.ad-slot img { display: block; width: 100%; height: auto; aspect-ratio: 970 / 250; object-fit: cover; }

/* ---------- forms ---------- */
.panel { border-top: 2px solid var(--rule-heavy); border-bottom: 1px solid var(--rule-heavy); padding: 26px 0 32px; }
.panel h2 { font-size: 25px; line-height: 1.2; margin: 0 0 16px; padding: 0; border: 0; }
.panel > p { color: var(--ink-2); font-size: 15px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 0; padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--warn); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 22px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14.5px; margin: 0 0 14px; padding: 10px 12px; border-left: 2px solid var(--warn); background: var(--red-wash); }
.form-msg[data-kind="ok"] { border-left-color: var(--good); background: var(--paper-2); }
.form-msg:empty { display: none; }
.form-foot { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.form-foot a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font: 600 14.5px/1 var(--text); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--quiet, .btn--ghost { background: transparent; color: var(--ink); }
.btn--quiet:hover, .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn--danger { background: transparent; color: var(--warn); border-color: var(--warn); }
.btn--danger:hover { background: var(--warn); color: var(--paper); border-color: var(--warn); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sign in, register */
.entry { display: grid; gap: var(--block); padding-top: clamp(32px, 5vw, 60px); padding-bottom: 24px; }
@media (min-width: 900px) { .entry { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 72px; align-items: start; } }
.entry__pitch h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.05; letter-spacing: -0.018em; margin-bottom: 20px; }
.entry__pitch p { font: 400 19px/1.45 var(--display); color: var(--ink-2); max-width: 44ch; }

/* the writing desk */
.writer { display: grid; gap: 36px; padding-top: clamp(26px, 4vw, 44px); padding-bottom: 24px; }
@media (min-width: 1100px) { .writer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; } }
.writer .headline { font-size: clamp(30px, 4vw, 42px); }
.writer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.writer__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.writer__proof { border-top: 2px solid var(--rule-heavy); padding: 14px 0 10px; }
@media (min-width: 1100px) { .writer__proof { position: sticky; top: 62px; align-self: start; max-height: calc(100vh - 78px); overflow: auto; } }
.writer__proof .article__title { font-size: 32px; }
.writer__note { color: var(--ink-2); font-size: 15px; margin: 10px 0 18px; }
.writer__note a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.marks { font-size: 13px; color: var(--ink-3); }
.marks code { font: inherit; color: var(--ink); background: var(--paper-2); padding: 1px 5px; white-space: nowrap; }
.kind { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-heavy); border-bottom: 1px solid var(--rule-heavy); }
.kind label { cursor: pointer; }
.kind label + label { border-left: 1px solid var(--rule); }
.kind input { position: absolute; opacity: 0; }
.kind span { display: block; height: 100%; padding: 12px 14px; font-size: 13.5px; color: var(--ink-3); }
.kind b { display: block; font: 600 19px/1.2 var(--display); color: var(--ink); margin-bottom: 3px; }
.kind input:checked + span { background: var(--paper-2); box-shadow: inset 0 3px 0 var(--red); }
.kind input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.proof-label { font: 600 11.5px/1 var(--text); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }

/* account and editor desk */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 600 11.5px/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 14px 11px 0; border-bottom: 2px solid var(--rule-heavy); }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table td:first-child { font: 600 17px/1.3 var(--display); color: var(--ink); }
.table--sources td:first-child { font-size: 16px; }
.table--terms { margin: 6px 0 18px; }
.td-date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.pill { display: inline-block; font: 600 11.5px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px 4px; border: 1px solid currentColor; }
.pill--pending { color: var(--ink-2); }
.pill--approved { color: var(--good); }
.pill--rejected { color: var(--warn); }
.queue-item { border-top: 2px solid var(--rule-heavy); padding: 22px 0 36px; }
.queue-item h3 { font-size: 26px; line-height: 1.15; }
.queue-item .prose { font-size: 16.5px; max-height: 420px; overflow: auto; border: 1px solid var(--rule); padding: 16px 18px; margin: 14px 0; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.queue-actions input { flex: 1 1 220px; min-height: 36px; border: 1px solid var(--ink-3); background: var(--paper); color: var(--ink); padding: 6px 10px; font: inherit; font-size: 14px; }
.ad-row { display: grid; gap: 14px; border-top: 1px solid var(--rule); padding: 16px 0; }
.ad-row img { width: 100%; max-width: 388px; aspect-ratio: 970 / 250; object-fit: cover; border: 1px solid var(--rule); }
.ad-row__meta { font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; align-content: start; }
.ad-row__meta b { color: var(--ink); }
.ad-row__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag-live { color: var(--good); font-weight: 600; }
@media (min-width: 760px) { .ad-row { grid-template-columns: 388px 1fr; } }
/* tables the account and desk scripts write: let them scroll on a phone */
#list, #inbox { overflow-x: auto; }
.skeleton { height: 14px; background: var(--paper-2); margin: 14px 0; }
.skeleton:nth-child(2n) { width: 70%; }
.stack { margin-top: 32px; }
.stack-later { margin-top: var(--block); }

/* /search */
.finder { display: flex; gap: 10px; max-width: 640px; margin: 0 0 12px; }
.finder input { flex: 1; min-width: 0; font: 400 17px/1.4 var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 0; padding: 0 14px; min-height: 48px; }
.finder input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.finder__state { font-size: 14px; color: var(--ink-3); margin: 0 0 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 28px; padding: 4px 0; border-top: 1px solid var(--rule-heavy); border-bottom: 1px solid var(--rule); }
.filter { background: none; border: 0; padding: 0; min-height: 44px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.filter:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; }
.filter[aria-pressed="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* results are story rows, not body copy: undo the .doc link and width rules */
.doc .briefs a:not(.btn) { color: inherit; text-decoration: none; }
.doc .briefs a:not(.btn):hover { color: var(--red); }
.doc .briefs a.slug { color: var(--red); }
.doc .briefs li { max-width: 820px; }
.doc .briefs .brief__standfirst { color: var(--ink-2); }

/* ---------- colophon ---------- */
.colophon { margin-top: clamp(56px, 8vw, 96px); padding: 0 0 48px; text-align: center; font-size: 14px; color: var(--ink-2); }
.colophon .sheet::before { content: ""; display: block; height: 7px; border-top: 4px solid var(--rule-heavy); border-bottom: 1px solid var(--rule-heavy); margin-bottom: 36px; }
.colophon__about { margin: 10px auto 30px; max-width: 52ch; font: italic 400 16.5px/1.4 var(--display); }
.colophon__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; padding: 8px 0; border-top: 1px solid var(--rule); }
.colophon__row a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-weight: 500; }
.colophon__row--minor a { color: var(--ink-2); font-weight: 400; font-size: 13.5px; }
.colophon__row a:hover { color: var(--red); }
.colophon__row--minor { border-bottom: 1px solid var(--rule); }
.colophon__legal { margin: 28px auto 10px; max-width: 86ch; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.colophon__copy { margin: 0; font-size: 12.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { .book--flash { animation: none; } .btn { transition: none; } }
