/* Data Digest: a broadsheet opinion page.
   Centered nameplate over a double rule, one lead piece beside a narrow rail,
   the rest as a ruled index. The single accent is editor's blue pencil. */
:root {
  --paper: #f2f3ef;
  --sheet: #fafaf7;
  --ink: #15181d;
  --muted: #5a606a;
  --rule: #c6c9c2;
  --accent: #2343b8;
  --accent-ink: #ffffff;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; /* nameplate only */
  --body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101319; --sheet: #171b23; --ink: #e9e7df; --muted: #9aa0ab;
    --rule: #333946; --accent: #93a9ff; --accent-ink: #0c1020;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Nameplate */
.topline { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.topline nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topline a { text-decoration: none; }
.nameplate { text-align: center; padding: 30px 0 22px; }
.nameplate a { text-decoration: none; color: var(--ink); }
.nameplate .name { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 36; font-size: clamp(46px, 10vw, 104px); line-height: .95; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.nameplate .tagline { font-style: italic; color: var(--muted); margin: 12px 0 0; font-size: 19px; text-wrap: balance; }
.double { border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 7px; margin: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.topics a { text-decoration: none; }
.topics a.on { color: var(--accent); }

main.wrap { padding-top: 34px; padding-bottom: 60px; min-height: 40vh; }

/* Front page */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; }
/* Headlines use the body face in bold: sturdier strokes than the nameplate face. */
.lead h2 { font-family: var(--body); font-weight: 700; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 14px; text-wrap: balance; }
.lead h2 a, .item h3 a { text-decoration: none; }
.lead .more { margin: 18px 0 0; }
.dek { font-size: 21px; line-height: 1.45; color: var(--muted); font-style: italic; margin: 0 0 18px; max-width: 60ch; }
.excerpt { max-width: 60ch; margin: 0 0 18px; line-height: 1.65; }
.by { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.by b { color: var(--ink); font-weight: 500; }
.rail { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--rule); padding-left: 32px; }
.rail h4, .sect { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.rail p { font-size: 16px; margin: 0 0 12px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.rail li { display: flex; justify-content: space-between; gap: 12px; }
.index { margin-top: 48px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.item { padding: 20px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.item h3 { font-family: var(--body); font-weight: 700; font-size: 25px; line-height: 1.18; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.item p { margin: 0; font-size: 16.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tags a { color: var(--accent); text-decoration: none; }
.tags a:hover { text-decoration: underline; }
.empty { text-align: center; padding: 50px 0; color: var(--muted); font-style: italic; }
.empty .btn { font-style: normal; }

/* Article */
.article { max-width: 660px; margin: 0 auto; }
.article .head { font-family: var(--body); font-weight: 700; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 16px; text-wrap: balance; }
.article .by { padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 22px 0 30px; justify-content: space-between; }
.prose { font-size: 19px; line-height: 1.7; }
.prose p { margin: 0 0 1.2em; }
/* Subheads use the body face: the display face is too sharp at this size. */
.prose h1, .prose h2, .prose h3 { font-family: var(--body); font-weight: 650; line-height: 1.25; letter-spacing: -.005em; margin: 2em 0 .6em; text-wrap: balance; }
.prose h1, .prose h2 { font-size: 25px; }
.prose h3 { font-size: 21px; }
.prose :is(h1, h2, h3) strong { font-weight: inherit; }
.prose u { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a { text-decoration-thickness: 1px; }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--accent); font-style: italic; font-size: 23px; line-height: 1.4; text-wrap: balance; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.15em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 36px; padding-top: 18px; border-top: 3px double var(--ink); }
.back { margin-top: 26px; }
.back a { text-decoration: none; }

/* Controls */
.btn { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; border-radius: 0; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); color: var(--accent-ink); }
label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input[type=email] { width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); padding: 10px 12px; border-radius: 0; }
input:focus { border-color: var(--accent); outline: none; }
.sub-form { display: flex; flex-direction: column; gap: 10px; }
.sub-form label { margin-bottom: -4px; }
.hp { position: absolute; left: -9999px; }
.status { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

footer { border-top: 3px double var(--ink); padding: 20px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .front { grid-template-columns: 1fr; gap: 34px; }
  .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 26px; }
  .items { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: color .15s, background-color .15s; }
}
footer a { text-decoration: none; }
