:root {
  --paper: #fbf9f4;
  --surface: #ffffff;
  --ink: #121212;
  --ink-2: #3d3a35;
  --muted: #6e6a62;
  --rule: #d9d4c7;
  --rule-strong: #121212;
  --accent: #c0362c;
  --k-models: #c0362c;
  --k-tech: #1f5fa8;
  --k-culture: #8a3fa0;
  --k-people: #1d7a55;
  --k-weekly: #8a6d1f;
  --chip: #f1ede3;
  --serif-display: 'Playfair Display', Georgia, serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131313; --surface: #1b1b1b; --ink: #f1eee8; --ink-2: #d6d2ca; --muted: #9c978d;
    --rule: #34322e; --rule-strong: #f1eee8; --accent: #ef6a5d;
    --k-models: #ef6a5d; --k-tech: #6fa8e8; --k-culture: #c88be0; --k-people: #5cc79a; --k-weekly: #d4ad4a; --chip: #262523;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131313; --surface: #1b1b1b; --ink: #f1eee8; --ink-2: #d6d2ca; --muted: #9c978d;
  --rule: #34322e; --rule-strong: #f1eee8; --accent: #ef6a5d;
  --k-models: #ef6a5d; --k-tech: #6fa8e8; --k-culture: #c88be0; --k-people: #5cc79a; --k-weekly: #d4ad4a; --chip: #262523;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
code { font-size: .85em; background: var(--chip); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* top bar + masthead */
.topbar { border-bottom: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.live:hover { color: var(--ink); text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k-people); }
.dot.on { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } }
.topbar-right { display: inline-flex; align-items: center; gap: 8px; }
.theme { background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 4px 6px; border-radius: 999px; }
.theme:hover { color: var(--ink); background: var(--chip); }
.search input { font: inherit; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px; width: 200px; }

.masthead { text-align: center; }
.brand-mark { display: inline-block; vertical-align: -.08em; margin-right: .3em; }
.mark { width: 1em; height: 1em; display: block; color: currentColor; }
.brand .mark { width: .78em; height: .78em; }
.brand { display: inline-block; font: 900 clamp(2.4rem, 7vw, 4.6rem)/1 var(--serif-display); letter-spacing: -.02em; margin-top: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 1.6rem; margin: 0 0 8px; }
.motto { margin: 8px 0 16px; font: italic 1.05rem var(--serif); color: var(--muted); }
.nav { border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.nav-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.nav a { padding: 10px 14px; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { text-decoration: none; color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }

/* shared type */
h1, h2, h3 { font-family: var(--serif-display); line-height: 1.12; }
.kicker { display: inline-block; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.k-models { color: var(--k-models); } .k-tech { color: var(--k-tech); } .k-culture { color: var(--k-culture); } .k-people { color: var(--k-people); } .k-weekly { color: var(--k-weekly); }
.dek { font: 400 1.2rem/1.5 var(--serif); color: var(--ink-2); margin: 8px 0 12px; }
.byline { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rule-title { font: 800 .85rem var(--sans); text-transform: uppercase; letter-spacing: .1em; border-top: 2px solid var(--rule-strong); padding-top: 8px; margin: 0 0 12px; }

/* thumbnails */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--chip); margin-bottom: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .3s; }
.thumb.tall img { object-position: center top; }
/* A wordmark is drawn for white paper and usually has no background of its own. */
.thumb.logo { background: #fff; }
.thumb.logo img { object-fit: contain; padding: 14%; }
.thumb:hover img { transform: scale(1.03); }
.thumb.cover { position: relative; }
.thumb.cover .cover-top, .thumb.cover .cover-mid, .thumb.cover .cover-foot { display: none; }

/* A story with no picture we may use gets a printed cover, built like a small front page. */
.thumb.placeholder, .hero.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(12px, 4%, 26px);
  color: #fff;
  overflow: hidden;
}
.thumb.placeholder::after, .hero.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.thumb.placeholder .cover-top, .thumb.placeholder .cover-mid, .thumb.placeholder .cover-foot,
.hero.cover .cover-top, .hero.cover .cover-mid, .hero.cover .cover-foot { display: block; position: relative; z-index: 1; }
.cover-top { display: flex !important; align-items: center; gap: 8px; }
.cover-top .mark { width: 15px; height: 15px; opacity: .9; flex: none; }
.cover-kicker { font: 700 .66rem var(--sans); text-transform: uppercase; letter-spacing: .14em; opacity: .85; }
.cover-rule { display: block; width: 34px; height: 2px; background: currentColor; opacity: .7; margin-bottom: 10px; }
.cover-title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 800 clamp(1.05rem, 2.1vw, 1.5rem)/1.16 var(--serif-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cover-foot { font: 600 .6rem var(--sans); text-transform: uppercase; letter-spacing: .18em; opacity: .55; }

/* Four layouts, so a page of covers still reads as a newspaper and not as a template. */
.cover-v2 { text-align: center; align-items: center; }
.cover-v2 .cover-rule { margin: 0 auto 10px; }
.cover-v2 .cover-mid { padding: 0 4%; }
.cover-v3 { justify-content: flex-start; }
.cover-v3 .cover-mid { margin-top: auto; }
.cover-v3 .cover-rule { width: 64px; }
.cover-v4 .cover-top { order: 3; opacity: .9; }
.cover-v4 .cover-foot { order: 1; }
.cover-v4 .cover-mid { order: 2; margin: auto 0; }

/* The lead story and the top of an article carry the cover at full size. */
.lead-img.placeholder .cover-title, .story-wide .thumb.placeholder .cover-title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); -webkit-line-clamp: 5; }
.hero.cover { aspect-ratio: 21 / 9; margin: 20px 0 8px; }
.hero.cover .cover-title { font-size: clamp(1.6rem, 3.6vw, 2.8rem); -webkit-line-clamp: 3; max-width: 20ch; }
.hero.cover .cover-top .mark { width: 20px; height: 20px; }
.k-bg-models { background: radial-gradient(120% 120% at 18% 12%, color-mix(in srgb, var(--k-models) 85%, #fff) 0%, var(--k-models) 42%, #4a1410 100%); }
.k-bg-tech { background: radial-gradient(120% 120% at 18% 12%, color-mix(in srgb, var(--k-tech) 85%, #fff) 0%, var(--k-tech) 42%, #0e2747 100%); }
.k-bg-culture { background: radial-gradient(120% 120% at 18% 12%, color-mix(in srgb, var(--k-culture) 85%, #fff) 0%, var(--k-culture) 42%, #34103f 100%); }
.k-bg-people { background: radial-gradient(120% 120% at 18% 12%, color-mix(in srgb, var(--k-people) 85%, #fff) 0%, var(--k-people) 42%, #0b3324 100%); }
.k-bg-weekly { background: radial-gradient(120% 120% at 18% 12%, color-mix(in srgb, var(--k-weekly) 85%, #fff) 0%, var(--k-weekly) 42%, #3b2d06 100%); }
.play { position: absolute; left: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; font-size: .9rem; }

/* stories */
.story h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.story p { margin: 0 0 6px; color: var(--ink-2); font: 1rem/1.45 var(--serif); }
.story-sm h3 { font-size: 1.05rem; }
.story-wide { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; grid-column: 1 / -1; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.story-wide h3 { font-size: 2rem; }
.story-wide .thumb { margin: 0; }

/* front page */
.lead-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--rule-strong); }
.lead-story .lead-img { aspect-ratio: 3 / 2; margin: 0; }
.lead-text h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 8px 0 10px; font-weight: 800; }
.lead-text .dek { font-size: 1.25rem; }
.read-more { display: inline-block; margin-top: 10px; font: 600 .9rem var(--sans); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { background: var(--chip); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 500; }
.chip span { color: var(--muted); margin-left: 2px; }

.section-row { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.row-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--rule-strong); padding-top: 10px; margin-bottom: 16px; }
.row-head h2 { margin: 0; font-size: 1.7rem; }
.row-head span { color: var(--muted); font-size: .9rem; flex: 1; }
.more { font-weight: 600; font-size: .85rem; color: var(--accent); }
.row-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.section-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }

.ask-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 24px; background: var(--ink); color: var(--paper); }
.ask-band h2 { margin: 0 0 4px; font-size: 1.6rem; }
.ask-band p { margin: 0; opacity: .8; }
.ask-band .button { background: var(--accent); }

.empty-front { max-width: 720px; margin: 40px auto; text-align: center; }
.empty-front h1 { font-size: 2.6rem; margin: 8px 0; }

/* page heads */
.page-head { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 6px 0; }
.entity-head .button { margin-top: 8px; }

/* article */
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 8px 0 10px; }
.article-head .dek { font-size: 1.35rem; }
.hero { margin: 20px 0 8px; }
.hero img { display: block; width: 100%; max-height: 560px; object-fit: contain; object-position: center; background: var(--chip); }
.hero.logo { max-width: 620px; margin-inline: auto; }
.hero.logo img { background: #fff; padding: 56px 64px; max-height: 340px; }
/* A portrait is hung in a narrower frame instead of floating in a wide one. */
.hero.tall { max-width: 560px; margin-inline: auto; }
.hero.tall img { max-height: 720px; }
.hero figcaption { font-size: .82rem; color: var(--muted); padding-top: 6px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 24px; }
.narrow .prose { max-width: 720px; }
.prose { font: 1.18rem/1.72 var(--serif); color: var(--ink); max-width: 720px; }
.prose a { color: var(--accent); }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .4em; }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose img { margin: 1em 0; }
.prose pre { background: var(--surface); border: 1px solid var(--rule); padding: 12px; overflow-x: auto; font-size: .85rem; }
.prose pre code { background: none; }
.wikilink { color: var(--ink) !important; border-bottom: 1px solid var(--rule); }
.wikilink:hover { text-decoration: none; border-bottom-color: var(--accent); background: var(--chip); }

/* the small numbers that point to the source of a fact */
.cite { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 1px; }
.cite a { color: var(--muted); font-family: var(--sans); font-weight: 600; padding: 0 1px; }
.cite a:hover { color: var(--accent); text-decoration: none; }
.cite + .cite { margin-left: 0; }
.callout { background: var(--chip); padding: 12px 16px; margin: 1em 0; }
.table { overflow-x: auto; }
table { border-collapse: collapse; font: .9rem var(--sans); width: 100%; }
th, td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.board .bar { display: inline-block; width: 80px; height: 6px; background: var(--chip); margin-right: 8px; vertical-align: middle; position: relative; }
.board .bar::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--accent); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; background: #000; }
.post-embed { position: relative; aspect-ratio: 9 / 15; width: 100%; max-width: 340px; margin: 1.2em 0; background: var(--chip); border: 1px solid var(--rule); }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose blockquote.post { border-left-width: 3px; font-style: normal; background: var(--chip); padding: 12px 18px; }
.prose blockquote.post cite { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); font-style: normal; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article-side .side-box { border-top: 2px solid var(--rule-strong); padding: 10px 0 18px; }
.side-box h2 { font: 800 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
.side-box p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-2); }
.entity-list { list-style: none; margin: 0; padding: 0; }
.entity-list li a { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.etype { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 70px; }
.count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.share { display: flex; gap: 12px; font-weight: 600; font-size: .9rem; }
.linklike { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.related { margin-top: 48px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-bottom: 32px; }
.days, .log { list-style: none; padding: 0; margin: 0 0 32px; }
.days li, .log li { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.days a { font: 600 1.15rem var(--serif); }
.log li { justify-content: flex-start; font-size: .9rem; }
.log time { color: var(--muted); min-width: 80px; }
.big-search { display: flex; gap: 8px; max-width: 640px; }

/* buttons + inputs */
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; flex: 1; min-width: 0; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .button { font: 600 .9rem var(--sans); background: var(--ink); color: var(--paper); border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer; }
a.button { display: inline-block; text-decoration: none; }
.side-box a.button { margin: 4px 0 8px; }
.button.big { padding: 14px 24px; font-size: 1rem; }
button:disabled { opacity: .6; cursor: wait; }

/* footer */
.footer { border-top: 3px double var(--rule-strong); padding: 32px 0 48px; font-size: .9rem; color: var(--ink-2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h3 { font: 800 .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.footer-inner > div > a { display: block; padding: 3px 0; }
.footer p { max-width: 460px; }

/* Ask Agnes */
.ask-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 .9rem var(--serif-display); }
.ask-avatar .mark { width: 17px; height: 17px; }
.ask-avatar.sm { width: 20px; height: 20px; font-size: .7rem; }
.ask-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.ask-panel { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 40px)); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 12px 48px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.ask-panel header strong { display: block; font: 800 1.2rem var(--serif-display); }
.ask-panel header span { font-size: .78rem; color: var(--muted); }
.icon { background: none; color: var(--ink); font-size: 1.6rem; line-height: 1; padding: 0 6px; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; background: var(--chip); font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--ink); color: var(--paper); }
.bubble p { margin: .35em 0; } .bubble p:first-child { margin-top: 0; } .bubble p:last-child { margin-bottom: 0; }
.bubble h2, .bubble h3 { font-size: 1.05rem; margin: .6em 0 .2em; }
.bubble ul, .bubble ol { padding-left: 1.2em; margin: .4em 0; }
.bubble a { color: var(--accent); text-decoration: underline; }
.bubble .wikilink { color: var(--accent) !important; }
.bubble .sources { font-size: .75rem; color: var(--muted); margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 6px; }
.bubble.thinking { color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.composer textarea { resize: none; max-height: 120px; }

/* moving through the archive */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 32px 0; font: 600 .9rem var(--sans); }
.pager a, .pager .current, .pager .gap { padding: 8px 13px; border: 1px solid var(--rule); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .gap { border: 0; color: var(--muted); }
.pager a:hover { text-decoration: none; border-color: var(--rule-strong); }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs span { margin: 0 2px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 8px; border-top: 1px solid var(--rule); padding-top: 18px; }
.prev-next a { display: block; padding: 12px 14px; border: 1px solid var(--rule); }
.prev-next a:hover { text-decoration: none; border-color: var(--rule-strong); }
.prev-next .older { text-align: right; }
.prev-next span { display: block; font: 600 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.prev-next strong { font: 600 1.02rem/1.3 var(--serif); }

/* build: github projects */
.repo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.repo { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.repo h3 { margin: 0; font: 700 1.05rem/1.3 var(--sans); overflow-wrap: anywhere; }
.repo h3 span { color: var(--muted); margin: 0 1px; }
.repo p { margin: 0; font: .92rem/1.5 var(--serif); color: var(--ink-2); }
.repo-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .76rem; color: var(--muted); }
.repo-meta .stars { font-weight: 700; color: var(--ink-2); }
.repo-meta .lang { background: var(--chip); border-radius: 999px; padding: 2px 8px; }

/* archive */
.archive-year { margin-bottom: 28px; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.month { display: block; padding: 12px 14px; border: 1px solid var(--rule); background: var(--surface); }
.month:hover { text-decoration: none; border-color: var(--rule-strong); }
.month strong { display: block; font: 700 1.05rem var(--serif-display); }
.month span { font-size: .78rem; color: var(--muted); }
.day-head { font: 700 1.1rem var(--serif-display); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.archive-day { margin-bottom: 32px; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.archive-list li a { font: 600 1.25rem/1.3 var(--serif); }
.archive-list li p { margin: 0; color: var(--muted); font: .95rem/1.45 var(--serif); }

/* newsroom */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 14px 16px; }
.card-label { display: block; font: 700 .68rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card strong { display: block; font: 800 1.9rem/1.2 var(--serif-display); margin: 4px 0 6px; overflow-wrap: anywhere; }
.card strong.small { font-size: 1.05rem; line-height: 1.3; font-family: var(--serif); font-weight: 600; }
.card p { margin: 0; font-size: .82rem; }
.panel { background: var(--surface); border: 1px solid var(--rule); padding: 18px 20px; margin-bottom: 28px; }
.panel h2 { font: 800 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.panel p { margin: 0 0 12px; font-size: .92rem; color: var(--ink-2); }
.panel form, .panel .row { display: flex; gap: 8px; flex-wrap: wrap; }
.panel form input { max-width: 480px; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }

/* responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-story { grid-template-columns: 1fr; gap: 16px; }
  .row-grid, .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .row-grid, .repo-grid, .section-list, .footer-inner, .cards { grid-template-columns: 1fr; }
  .story-wide, .prev-next { grid-template-columns: 1fr; }
  .prev-next .older { text-align: left; }
  .story-wide h3 { font-size: 1.5rem; }
  .search input { width: 140px; font-size: .8rem; }
  .nav-inner { gap: 0; }
  .nav a { padding: 8px 9px; font-size: .74rem; letter-spacing: .04em; }
  .ask-fab { right: 12px; bottom: 12px; }
  .ask-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

/* A drawing says so, every time it appears full size. */
.hero figcaption .credit { font: 600 .7rem var(--sans); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.hero figcaption .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* The private preview of what would be posted. */
.social-card { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.social-card h3 { margin: 0 0 14px; font-size: 1.15rem; }
/* The slides as they would be swiped through, side by side the way a phone shows them. */
.deck { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; scroll-snap-type: x mandatory; }
.slide { flex: 0 0 auto; width: 216px; margin: 0; position: relative; scroll-snap-align: start; }
.slide img { display: block; width: 216px; height: 270px; object-fit: cover; border: 1px solid var(--rule); background: var(--chip); }
.slide figcaption { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font: 600 .7rem var(--sans); padding: 2px 7px; border-radius: 99px; }
.slide video { display: block; width: 216px; height: 270px; object-fit: cover; border: 1px solid var(--rule); background: #000; }
.slide button.swap { font: 600 .72rem var(--sans); padding: 2px 6px; margin-left: 4px; border-radius: 3px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.clip-asks { display: grid; gap: 10px; margin: 0 0 18px; }
.clip-ask { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; background: var(--chip); padding: 12px; border-radius: 6px; }
.clip-ask img { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; }
.clip-ask p { margin: 4px 0; }
.clip-ask button { margin-left: 10px; font: 600 .85rem var(--sans); padding: 6px 12px; border-radius: 4px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.social-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post { margin: 0; }
.post-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.post-text { white-space: pre-wrap; background: var(--chip); padding: 12px 14px; margin: 0; font: .9rem/1.5 var(--sans); border-radius: 4px; }
@media (max-width: 700px) { .social-posts { grid-template-columns: 1fr; } }

/* A video from X, empty until pressed. */
.x-clip { margin: 0 0 1.4em; }
.x-clip .x-play { width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; gap: 14px; background: #101012; color: #fff; border: 0; border-radius: 6px; font: 600 1.05rem var(--sans); cursor: pointer; }
.x-clip .x-play span { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; border: 3px solid #fff; font-size: 1.6rem; padding-left: 6px; }
.x-clip .x-play:hover { background: #1c1c20; }
.x-clip .x-frame { display: block; width: 100%; max-width: 550px; height: 640px; border: 0; margin: 0 auto; color-scheme: light; background: transparent; }
.x-clip figcaption { font: .82rem/1.5 var(--sans); color: var(--muted); padding-top: 6px; }

/* videos and posts from other platforms, loaded only when pressed */
.embed-gate { margin: 1.2em 0; }
.embed-gate .embed-play, .embed-gate .embed-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.embed-gate.tall .embed-play, .embed-gate.tall .embed-frame { max-width: 340px; aspect-ratio: 9 / 15; }
.embed-gate .embed-play { display: flex; align-items: center; justify-content: center; gap: 14px; background: #101012; color: #fff; font: 600 1.05rem var(--sans); cursor: pointer; }
.embed-gate .embed-play span { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; border: 3px solid #fff; font-size: 1.6rem; padding-left: 6px; }
.embed-gate .embed-play:hover { background: #1c1c20; }
.embed-gate figcaption { font: .82rem/1.5 var(--sans); color: var(--muted); padding-top: 6px; max-width: 60ch; }

/* what the reader is told before the first message to the chat */
.ask-terms { padding: 12px 16px; border-top: 1px solid var(--rule); font: .85rem/1.5 var(--sans); background: var(--chip); }
.ask-terms p { margin: 0 0 8px; }

/* the credit a Creative Commons photograph keeps even as a small picture */
.thumb-credit { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 2px 6px; background: rgba(0,0,0,.55); color: #fff; font: 10px/1.4 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* revisione (local only) */
.review-item{border-top:1px solid var(--rule,#ccc);padding:1.5rem 0}
.review-item h2{margin:.2rem 0}
.review-item h3{font-size:1rem;margin:1rem 0 .3rem}
.review-item details{margin:1rem 0}
.button.ghost{background:transparent;color:inherit;border:1px solid currentColor}

/* the EU label for AI-generated text (Code of Practice on AI-generated content, Annex 1) */
.ai-badge { display: inline-flex; align-items: stretch; vertical-align: middle; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 4px; overflow: hidden; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.ai-badge b { padding: 3px 5px; background: var(--ink, #111); color: var(--paper, #fbf9f4); font-weight: 800; letter-spacing: .04em; }
.ai-badge span { padding: 3px 6px; }
