/* Data Daily — Swiss/brutalist editorial system (design handoff 2026-10-11, "Newspaper Redesign").
   One variable typeface (Archivo, self-hosted) at extreme widths, hairline rules, one hot accent.
   Dark is the default theme; [data-theme="light"] on <html> switches. Radius is 0 everywhere. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Tokens ===== */
:root {
  --bg: #0b0b0d;
  --ink: #ececE8;
  --ink2: #a7a7ad;
  --ink3: #74747a;
  --rule: #2a2a2f;
  --ph: #18181c;
  --acc: #e8410f;
  --onacc: #ffffff;
  --code: #141417;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1440px;
  --pad: 32px;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ececE8;
  --ink: #0d0d0f;
  --ink2: #4a4a50;
  --ink3: #7c7c82;
  --rule: #c4c4c0;
  --ph: #dcdcd7;
  --code: #e2e2dd;
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 200; background: var(--acc); color: var(--onacc); padding: 8px 14px; }
.skip-link:focus { top: 8px; color: var(--onacc); } /* off the top, not off the side: a negative left overflows RTL pages */

/* Type roles (handoff table) */
.label, .kicker {
  font-stretch: 112%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kicker { color: var(--acc); }
.kicker:hover { color: var(--ink); }
.h-lead, .h-sec, .h-card, .h-row, .h-post, .post-body h2, .post-body h3 {
  font-stretch: 68%;
  font-weight: 700;
  text-wrap: balance;
}
.h-lead { font-size: clamp(40px, 5vw, 72px); line-height: 0.94; letter-spacing: -0.02em; }
.h-sec { font-size: 36px; line-height: 0.98; letter-spacing: -0.015em; }
.h-card { font-size: 32px; line-height: 0.98; letter-spacing: -0.015em; }
.section-title {
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.dek { font-size: 18px; line-height: 1.5; color: var(--ink2); max-width: 58ch; text-wrap: pretty; }
.excerpt { font-size: 15px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.byline { font-size: 13px; color: var(--ink2); }
.byline .who { color: var(--ink); font-weight: 600; }
.byline .who:hover { color: var(--acc); }
.byline .sep { padding: 0 0.35em; }

/* ===== Masthead ===== */
.masthead { padding-top: 18px; }
.utility { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--ink2); }
.utility .tagline { text-wrap: balance; }
.tools { display: flex; gap: 18px; align-items: center; color: var(--ink); }
.tools a, .tools button, .tools summary { display: flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.tools a:hover, .tools button:hover, .tools summary:hover { color: var(--acc); }
.tools svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 180px; background: var(--bg); border: 1px solid var(--ink);
  display: flex; flex-direction: column;
}
.lang-menu a { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--rule); }
.lang-menu a:last-child { border-bottom: 0; }
.lang-menu a[aria-current] { background: var(--ink); color: var(--bg); }

.wordmark { display: block; margin-top: 14px; color: var(--acc); direction: ltr; }
/* Inner reading pages: the full-bleed wordmark would push the headline below the fold. */
.masthead.compact .wordmark { width: min(520px, 100%); }
.wordmark:hover { color: var(--acc); }
.wordmark svg { display: block; width: 100%; height: auto; }
.wordmark text { font-family: var(--font); font-weight: 800; font-stretch: 62%; font-size: 204px; }
.masthead h1 { font-size: inherit; }

.catnav { margin-top: 18px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; }
.catnav a {
  font-stretch: 112%; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border-right: 1px solid var(--rule); padding: 13px 16px; white-space: nowrap; flex-shrink: 0;
}
.catnav a[aria-current] { background: var(--ink); color: var(--bg); }
.catnav a[aria-current]:hover { color: var(--bg); }

/* ===== Media (cover images) ===== */
.media { position: relative; display: block; background: var(--ph); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.media:hover img { transform: scale(1.02); }
.r43 { aspect-ratio: 4 / 3; }
.r11 { aspect-ratio: 1 / 1; }
.r32 { aspect-ratio: 3 / 2; }
.media.empty::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, var(--rule) 14px 15px);
}

/* ===== Featured ===== */
.featured { padding-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 32px; align-items: start; }
.lead { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.secondary { display: flex; flex-direction: column; min-width: 0; border-top: 2px solid var(--ink); }
.sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.sec-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-body .byline { margin-top: auto; }

/* ===== Section heads ===== */
.block { margin-top: 80px; }
.page-head { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section-sub { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: baseline; }
.section-sub .dek { max-width: 70ch; }
.count { color: var(--ink3); }
.view-toggle { display: flex; border: 1px solid var(--ink); }
.view-toggle button { font-stretch: 112%; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; border: 0; padding: 10px 16px; background: transparent; color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.no-js .view-toggle { display: none; }

/* ===== Article list: one markup, two views ===== */
.list[data-view="index"] .item {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 24px; row-gap: 8px;
  padding: 22px 12px; border-bottom: 1px solid var(--rule); position: relative;
  transition: background 120ms;
}
.list[data-view="index"] .item .media,
.list[data-view="index"] .item .excerpt,
.list[data-view="index"] .item .byline,
.list[data-view="index"] .item .kicker { display: none; }
.item .num { flex: 0 0 40px; font-stretch: 62%; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.item .h-row { flex: 1 1 380px; min-width: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.015em; }
.item .h-row a::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.item .meta { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; align-items: baseline; }
.item .meta .label { min-width: 150px; }
.item .meta .m-author { min-width: 130px; }
.item .meta .m-date { min-width: 100px; }
.list[data-view="index"] .item:hover { background: var(--acc); color: var(--onacc); }
.list[data-view="index"] .item:hover a { color: var(--onacc); }

.list[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; padding-top: 32px; }
.list[data-view="grid"] .item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.list[data-view="grid"] .item .num,
.list[data-view="grid"] .item .meta { display: none; }
.list[data-view="grid"] .item .media { margin-bottom: 4px; }
.list[data-view="grid"] .item .h-row { font-size: 32px; line-height: 0.98; flex: none; }
.list[data-view="grid"] .item .h-row a::after { content: none; }
.list[data-view="grid"] .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state { padding: 64px 0; font-size: 18px; color: var(--ink2); }

.preview {
  position: fixed; width: 280px; aspect-ratio: 4 / 3; background: var(--ph); pointer-events: none; z-index: 50;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); display: none; object-fit: cover;
}
.preview.on { display: block; }

.pagination { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); margin-top: 40px; width: fit-content; }
.pagination a, .pagination span { font-stretch: 112%; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 10px 16px; border-right: 1px solid var(--rule); }
.pagination > :last-child { border-right: 0; }
.pagination .current-page { background: var(--ink); color: var(--bg); }

/* ===== Article page ===== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--acc); z-index: 100; }
.post { margin-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink3); }
.crumbs a:hover { color: var(--acc); }
.post-head { display: grid; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.post-head > * { max-width: 1100px; }
.h-post { font-size: clamp(44px, 6.4vw, 96px); line-height: 0.92; letter-spacing: -0.02em; }
.post-dek { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink2); max-width: 62ch; text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13px; color: var(--ink2); }
.post-meta .who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.avatar { width: 36px; height: 36px; object-fit: cover; background: var(--ph); flex-shrink: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags a { font-size: 12px; padding: 5px 9px; border: 1px solid var(--rule); color: var(--ink2); }
.post-tags a:hover { border-color: var(--acc); }

.post-hero { margin-top: 32px; }
.post-hero .media { aspect-ratio: 3 / 2; max-height: 78vh; }
figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink2); max-width: 70ch; }
figcaption::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--acc); vertical-align: middle; margin-right: 10px; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 0 32px; margin-top: 48px; }
.post-grid > * { grid-column: 2; }
.post-aside { grid-column: 1; grid-row: 1 / span 3; align-self: start; position: sticky; top: 24px; display: grid; gap: 16px; font-size: 13px; color: var(--ink2); max-width: 260px; }
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-grid > *, .post-aside { grid-column: 1; }
  .post-aside { position: static; grid-row: auto; max-width: none; margin-bottom: 32px; }
}
.share { display: flex; border: 1px solid var(--ink); width: fit-content; }
.share a { padding: 10px 12px; display: flex; border-right: 1px solid var(--rule); }
.share a:last-child { border-right: 0; }
.share svg { width: 16px; height: 16px; }

.post-body { font-size: 18.5px; line-height: 1.7; text-wrap: pretty; overflow-wrap: break-word; }
.post-body > * + * { margin-top: 1.25em; }
.post-body h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.015em; margin-top: 2em; padding-top: 18px; border-top: 2px solid var(--ink); }
.post-body h3 { font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; margin-top: 1.6em; }
.post-body h4 { font-size: 18.5px; font-weight: 700; margin-top: 1.5em; }
.post-body a { color: var(--acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--ink); }
.post-body strong { font-weight: 700; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.5em; }
.post-body li::marker { color: var(--acc); }
.post-body blockquote {
  border-left: 4px solid var(--acc); padding: 4px 0 4px 24px; margin-top: 1.6em; margin-bottom: 1.6em;
  font-stretch: 75%; font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
}
.post-body code { font-family: var(--mono); font-size: 0.86em; background: var(--code); padding: 0.1em 0.35em; }
.post-body pre { background: var(--code); border: 1px solid var(--rule); border-left: 3px solid var(--acc); padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; position: relative; }
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body pre[data-language]::before { content: attr(data-language); position: absolute; top: 6px; right: 10px; font-family: var(--font); font-stretch: 112%; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
.post-body figure { margin: 2em 0; }
.post-body figure img { width: 100%; background: var(--ph); }
@media (min-width: 1100px) { .post-body figure { margin-left: -60px; margin-right: -60px; } }

.post-sources { margin-top: 48px; border-top: 2px solid var(--ink); padding-top: 14px; font-size: 14px; color: var(--ink2); }
.post-sources ul { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 6px; }
.post-sources a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post-sources a:hover { color: var(--acc); }

.author-box { margin-top: 48px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.author-box img { width: 96px; height: 96px; object-fit: cover; background: var(--ph); }
.author-box .name { font-stretch: 68%; font-weight: 700; font-size: 28px; line-height: 1; }
.author-box p { margin-top: 8px; font-size: 14px; color: var(--ink2); }

/* ===== Authors ===== */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; padding-top: 32px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person .media { aspect-ratio: 4 / 5; }
.person .role { color: var(--acc); }
.profile { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; padding-top: 36px; align-items: start; }
.profile .media { aspect-ratio: 4 / 5; }
.profile-body { display: grid; gap: 18px; }
.profile-body .bio p + p { margin-top: 1em; }
.profile-body .bio { font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 62ch; }
.beats { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); width: fit-content; }
.beats a { padding: 8px 12px; border-right: 1px solid var(--rule); }
.beats a:last-child { border-right: 0; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } .profile .media { max-width: 320px; } }

/* ===== Prose pages (about, privacy) & search ===== */
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--ink2); padding-top: 28px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--ink); font-stretch: 68%; font-weight: 700; font-size: 32px; line-height: 1; margin-top: 1.6em; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.search-results { margin-top: 32px; }
.search-box { margin-top: 28px; display: flex; border: 2px solid var(--ink); }
.search-box input { flex: 1; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 22px; padding: 16px 18px; min-width: 0; }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--acc); }
.not-found .section-title { font-size: clamp(96px, 20vw, 260px); color: var(--acc); }

/* ===== Footer ===== */
.site-footer { padding-top: 96px; padding-bottom: 32px; }
.footer-row { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--ink2); }
.footer-mark { color: var(--ink); font-weight: 700; font-stretch: 62%; font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; margin-right: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ===== RTL ===== */
[dir="rtl"] .post-body blockquote { border-left: 0; border-right: 4px solid var(--acc); padding: 4px 24px 4px 0; }
[dir="rtl"] .post-body pre, [dir="rtl"] .post-body code { direction: ltr; text-align: left; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .catnav a { border-right: 0; border-left: 1px solid var(--rule); }

/* ===== Small screens ===== */
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .utility .tagline { font-size: 12px; }
  .catnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .catnav::-webkit-scrollbar { display: none; }
  .block { margin-top: 56px; }
  .item .meta .label, .item .meta .m-author, .item .meta .m-date { min-width: 0; }
  .post-body { font-size: 17.5px; }
}

@media print {
  .masthead .utility, .catnav, .share, .reading-progress, .site-footer, .related, .view-toggle { display: none; }
  body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
