/* ==========================================================================
   hype or slop — design system
   Editorial, paper-and-ink. One loud colour (hype), one cool counterweight
   (slop). Serif for reading, grotesk for UI, mono for data.
   ========================================================================== */

:root {
  --bg: #121110;
  --bg-2: #1c1b18;
  --surface: #1a1917;
  --ink: #eeebe3;
  --ink-2: #c8c4b9;
  --ink-3: #99958a;
  --ink-4: #6d695f;
  --line: #2a2824;
  --line-2: #3b3833;

  --hype: #ff6a35;
  --hype-ink: #ff8b5e;
  --hype-soft: #3a1f13;
  --slop: #7d93a8;
  --slop-ink: #a7b9ca;
  --slop-soft: #1c2630;

  --ok: #4cc27c;
  --ok-soft: #13281b;
  --info: #5bb3d4;
  --info-soft: #10242d;
  --warn: #e0a440;
  --warn-soft: #2d2410;

  --shadow-pop: 0 16px 40px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --header-h: 107px;
  --r: 10px;
  --r-lg: 14px;
  color-scheme: dark;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
::selection { background: var(--hype-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--hype); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.i { flex: none; }
.i.flip { transform: rotate(180deg); }
@media (hover: none) { .follow-toggle { opacity: 1; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

.container { max-width: 1260px; margin-inline: auto; padding-inline: 28px; }

.label {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.linklike:hover { text-decoration-color: currentColor; }
.text-link { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { color: var(--hype-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 8px;
  font: 600 14px/1 var(--sans);
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--hype); color: #fff; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.is-on { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 500 13.5px/1 var(--sans);
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .x { opacity: .6; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 9px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button {
  padding: 5px 11px; border-radius: 6px;
  font: 500 13px/1.2 var(--sans); color: var(--ink-3);
  white-space: nowrap;
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .active { background: var(--ink); color: var(--bg); }
.seg .active:hover { color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead { display: flex; align-items: center; gap: 22px; height: 60px; }
.wordmark {
  font-family: var(--serif);
  font-size: 27px; line-height: 1;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.wm-hype { font-weight: 700; color: var(--ink); }
.wm-or { color: var(--hype); font-weight: 400; }
.wm-slop { font-style: italic; font-weight: 400; color: var(--slop-ink); }
.wordmark-sm { font-size: 22px; }
/* The site's line, next to the wordmark (header, footer) */
.tagline { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.footer-brand { display: flex; align-items: center; gap: 16px; }

.masthead-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }


.avatar-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: #fff; }

.nav {
  display: flex; align-items: stretch; gap: 2px;
  height: 46px;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 0 11px;
  font: 500 14.5px/1 var(--sans);
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.nav a:first-child { padding-left: 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--hype); }
.nav-spacer { flex: 1; min-width: 16px; }
.nav-badge {
  font: 600 10.5px/1 var(--mono);
  background: var(--hype); color: #fff;
  padding: 3px 6px; border-radius: 999px;
}

.only-mobile { display: none !important; }

/* ---------- Layout ---------- */
#page { outline: none; min-height: 70vh; }
.noscript { padding: 60px 0; color: var(--ink-2); font-size: 16px; }
.layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 300px;
  gap: 0 52px;
  align-items: start;
  padding-top: 30px; padding-bottom: 88px;
}
/* Feed pages: the title row spans the feed and the rail, then both columns
   start on the same line with the same kind of rule. */
.layout > .sidebar { grid-column: 1; grid-row: 1 / span 2; }
.feed-top { grid-column: 2 / 4; grid-row: 1; min-width: 0; padding-bottom: 30px; }
.layout > .main { grid-column: 2; grid-row: 2; }
.layout > .rail { grid-column: 3; grid-row: 2; }
.main { min-width: 0; }
.main-wide { padding-top: 26px; padding-bottom: 96px; min-width: 0; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: calc(var(--header-h) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto; scrollbar-width: thin;
  padding-bottom: 24px;
}
.side-sec + .side-sec { margin-top: 30px; }
.side-sec .label { margin-bottom: 10px; display: block; }
.side-list a, .side-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; margin: 0 -8px;
  border-radius: 7px;
  font-size: 14.5px; color: var(--ink-2);
  transition: background-color .12s, color .12s;
}
.side-list a:hover, .side-row:hover { background: var(--bg-2); color: var(--ink); }
.side-list a.active, .side-row.active { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.side-list .count { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--ink-4); }
.side-row { padding: 4px 4px 4px 8px; }
.side-row > a { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 2px 0; }
.side-row > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-toggle {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--ink-4);
  opacity: 0; transition: opacity .12s, color .12s, background-color .12s;
}
.side-row:hover .follow-toggle, .follow-toggle:focus-visible, .follow-toggle.on { opacity: 1; }
.follow-toggle:hover { color: var(--ink); background: var(--line); }
.follow-toggle.on { color: var(--hype); }


/* ---------- Feed head ---------- */
.feed-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.feed-head h1 {
  font: 600 36px/1.05 var(--serif);
  letter-spacing: -.025em;
}
.feed-head .desc { margin-top: 8px; color: var(--ink-3); font-size: 14.5px; max-width: 54ch; }
.feed-head .desc a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.feed-head .desc a:hover { text-decoration-color: currentColor; }
.feed-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.cat-strip { display: none; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }

.banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding: 12px 12px 12px 16px;
  background: var(--hype-soft);
  border-radius: var(--r);
  font-size: 14.5px;
}
.banner strong { font-weight: 700; }
.banner .text-link { margin-left: auto; }
.banner-info { background: var(--bg-2); }

.hidden-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }

/* New stories pill */
.pill-slot {
  position: sticky; top: calc(var(--header-h) + 14px);
  height: 0; z-index: 20;
  display: flex; justify-content: center;
}
.new-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font: 600 13.5px/1 var(--sans);
  box-shadow: var(--shadow-pop);
  animation: pill-in .35s cubic-bezier(.2, .9, .3, 1.2);
}
.new-pill:hover { background: var(--hype); color: #fff; }
@keyframes pill-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Day separators */
.day-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 44px; padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.main > .day-head:first-child, .pill-slot + .day-head { margin-top: 0; }
.day-head h2 { font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.day-head .label { margin-left: auto; }
.day-head + .story { padding-top: 18px; }

/* ---------- Story card ---------- */
.story {
  position: relative;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}
.story.ranked { display: grid; grid-template-columns: 50px minmax(0, 1fr); }
.rank {
  font: 500 34px/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-4);
  padding-top: 2px;
  letter-spacing: -.03em;
}
.story.lead .rank { color: var(--hype); font-size: 44px; }
.story-body { min-width: 0; }

.story-top {
  display: flex; align-items: center; gap: 12px;
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.st-left { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.st-left > * { flex: none; }
.st-left .cat, .st-left .cos { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-left .cat { flex: 0 1 auto; }
.st-left .cos { flex: 0 100 auto; }
.story-top a:hover { color: var(--ink); }
.story-top .cat { color: var(--ink); font-weight: 600; }
.story-top .sep { color: var(--ink-4); margin: 0 7px; }
.story-top .top-right { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.foot-status { display: none; }
.tag-new { color: var(--hype-ink); font-weight: 600; }
.tag-new[data-tip] { cursor: help; }
.tag-upd { color: var(--ink-2); font-weight: 600; }
.tag-dev { display: inline-flex; align-items: center; gap: 6px; color: var(--hype-ink); font-weight: 600; cursor: help; }
.tag-dev::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hype);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.story-title {
  font: 600 23px/1.22 var(--serif);
  letter-spacing: -.014em;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 34ch;
}
.story-title a, .u-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .28s ease;
  padding-bottom: 1px;
}
.story-title a:hover, .u-link:hover { background-size: 100% 1.5px; }
.story.lead .story-title { font-size: 31px; line-height: 1.15; }
.story.short { padding: 16px 0 14px; }
.story.short .story-title { font-size: 19px; }
.story.short .story-summary { font-size: 14.5px; }
.story.short .story-foot { margin-top: 10px; }
.story-summary { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.story-main.has-thumb { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; }
.story.lead .story-main.has-thumb { grid-template-columns: 152px minmax(0, 1fr); gap: 22px; }
.thumb {
  display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--bg-2);
  margin-top: 4px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thumb:hover img { transform: scale(1.04); }

.story-foot { margin-top: 16px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.foot-meta {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--mono); color: var(--ink-3);
}
.foot-meta a { display: inline-flex; align-items: center; gap: 5px; }
.foot-meta a:hover { color: var(--ink); }

.story.is-fresh { animation: fresh 2.8s ease-out; }
@keyframes fresh {
  0%, 30% { background: var(--hype-soft); box-shadow: -14px 0 0 var(--hype-soft), 14px 0 0 var(--hype-soft); }
  100% { background: transparent; box-shadow: -14px 0 0 transparent, 14px 0 0 transparent; }
}

/* Card overflow menu */
.more-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30;
  min-width: 220px; padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-pop);
  text-transform: none; letter-spacing: 0;
  animation: pop-in .14s ease-out;
}
@keyframes pop-in { from { transform: translateY(-4px); opacity: 0; } to { transform: none; opacity: 1; } }
.menu button, .menu a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 7px;
  font: 500 14px/1.2 var(--sans); color: var(--ink-2); text-align: left;
}
.menu button:hover, .menu a:hover { background: var(--bg-2); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Status tags ---------- */
.status {
  --c: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 9px 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font: 500 12.5px/1 var(--sans);
  letter-spacing: 0; text-transform: none;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: help;
  transition: border-color .15s, color .15s;
}
.status:hover, .status:focus-visible { border-color: var(--ink-4); color: var(--ink); }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px 0 7px;
  border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface);
  font: 500 12.5px/1 var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap;
  color: var(--ink); cursor: pointer; transition: border-color .15s;
}
.chip-btn:hover, .chip-btn:focus-visible { border-color: var(--ink-3); }
.chip-btn.is-on { color: var(--ink-2); background: var(--bg-2); }
@media (max-width: 420px) { .chip-btn .wide-only { display: none; } }
.sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; color: var(--c); }
.sig i { width: 3px; border-radius: 1px; background: currentColor; opacity: .22; }
.sig i:nth-child(1) { height: 4px; }
.sig i:nth-child(2) { height: 7px; }
.sig i:nth-child(3) { height: 10px; }
.sig[data-l="1"] i:nth-child(1),
.sig[data-l="2"] i:nth-child(-n+2),
.sig[data-l="3"] i { opacity: 1; }
.st-available, .st-confirmed, .conf-confirmed, .ms-available { --c: var(--ok); }
.st-rolling-out, .ms-preview { --c: var(--info); }
.st-announced, .st-reported, .conf-expected { --c: var(--warn); }
.st-rumor, .conf-rumored, .st-paper { --c: var(--ink-3); }
.ms-deprecated { --c: var(--ink-4); color: var(--ink-3); }

.tip {
  position: fixed; z-index: 300;
  max-width: 260px; padding: 8px 11px;
  background: var(--ink); color: var(--bg);
  border-radius: 8px;
  font: 500 13px/1.4 var(--sans);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  animation: tip-in .12s ease-out;
}
@keyframes tip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.tip.below { animation-name: tip-in-below; }
@keyframes tip-in-below { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ---------- Meter ---------- */
.meter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 170px; min-width: 150px; max-width: 250px; }
.meter-bar { display: flex; gap: 2px; height: 6px; }
.meter-hype, .meter-slop { height: 100%; border-radius: 999px; transition: flex-basis .6s cubic-bezier(.2, .8, .2, 1); }
.meter-hype { background: var(--hype); }
.meter-slop { background: var(--slop); }
.meter-text { font: 500 12px/1.2 var(--mono); color: var(--ink-3); white-space: nowrap; }
.meter-text b { font-weight: 600; }
.meter-text b.hype { color: var(--hype-ink); }
.meter-text b.slop { color: var(--slop-ink); }
.meter-empty { flex: 1; border-radius: 999px; background: var(--line); }
.meter.bump .meter-bar { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scaleY(1.6); } }

/* ---------- Vote buttons ---------- */
.votes { display: inline-flex; gap: 6px; }
.vote {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 600 13.5px/1 var(--sans); color: var(--ink-2);
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.vote .n { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.vote:active { transform: scale(.95); }
.vote-hype:hover { border-color: var(--hype); color: var(--hype-ink); }
.vote-slop:hover { border-color: var(--slop); color: var(--slop-ink); }
.vote-hype[aria-pressed="true"] { background: var(--hype); border-color: var(--hype); color: #fff; }
.vote-slop[aria-pressed="true"] { background: var(--slop); border-color: var(--slop); color: #fff; }
.vote[aria-pressed="true"] .n { color: rgba(255, 255, 255, .85); }
.vote.pop .i { animation: vote-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes vote-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------- Rail ---------- */
.rail { align-self: start; min-width: 0; }
.rail-mod { border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 38px; }
.rail-mod .mod-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.rail-mod .mod-head a { font-size: 12.5px; color: var(--ink-3); }
.rail-mod .mod-head a:hover { color: var(--ink); }
.big-pct { font: 600 48px/0.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.big-pct small { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-left: 6px; }
.big-pct.hype { color: var(--hype-ink); }
.big-pct.slop { color: var(--slop-ink); }
.rail-story { display: block; margin-top: 10px; font: 600 18px/1.28 var(--serif); letter-spacing: -.01em; }
.rail-story:hover { color: var(--hype-ink); }
.rail-sub { margin-top: 6px; font: 500 12px/1.3 var(--mono); color: var(--ink-3); }
.since-n { display: flex; align-items: baseline; gap: 10px; }
.since-n .big-num { font: 600 48px/0.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.since-n span:last-child { font-size: 15px; color: var(--ink-2); }
.since .text-link { margin-top: 14px; font-size: 14.5px; }
.rail-mod .btn { margin-top: 16px; width: 100%; }

.ev { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev-date { text-align: center; }
.ev-date .m { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hype-ink); }
.ev-date .d { font: 600 24px/1.05 var(--serif); font-variant-numeric: lining-nums; }
.ev-title { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
a.ev-title:hover { color: var(--hype-ink); }
.ev-sub { margin-top: 3px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); }

.col-teaser .t { display: block; font: 600 20px/1.25 var(--serif); letter-spacing: -.012em; }
.col-teaser .t:hover { color: var(--hype-ink); }
.col-teaser p { margin-top: 6px; color: var(--ink-2); font-size: 14px; }

.brief-on { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.brief-on .i { color: var(--ok); }
.brief-off { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
/* Newsletter sign-up */
.nl-form { display: grid; gap: 10px; margin-top: 12px; }
.nl-form .input { width: 100%; }
.nl-form .form-err { margin: 0; }
.rail-mod .nl-form .btn { margin-top: 0; width: 100%; }
.dialog .nl-form { margin-top: 18px; }
.rail-note { font-size: 14px; color: var(--ink-2); }
.rail-follow { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.rail-follow a:hover { color: var(--ink); }
.nl-done { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.nl-done .i { flex: none; margin-top: 2px; color: var(--ok); }
.nl-done.big { font-size: 17px; margin-top: 26px; }
.nl-done a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nl-page .page-head { margin-bottom: 26px; }
.nl-about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0 22px; border-top: 2px solid var(--ink); }
.nl-about h3 { font: 600 19px/1.2 var(--serif); }
.nl-about p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.nl-page-form { max-width: 420px; }
@media (max-width: 620px) { .nl-about { grid-template-columns: 1fr; gap: 14px; } }
.mini-form { display: flex; gap: 6px; margin-top: 12px; }
.mini-form input { flex: 1; min-width: 0; }
.rail-mod .mini-form .btn { margin-top: 0; width: auto; }

.input {
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-size: 14.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--bg-2); }
.input::placeholder { color: var(--ink-4); }

/* ---------- Empty states ---------- */
.empty { padding: 56px 0 40px; text-align: center; max-width: 520px; margin: 0 auto; }
.empty h2 { font: 600 28px/1.15 var(--serif); letter-spacing: -.02em; }
.empty p { margin-top: 10px; color: var(--ink-3); }
.empty .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chips-label { margin-top: 28px; }
.follow-pick { padding-top: 6px; text-align: left; max-width: none; }
.follow-pick .chips { justify-content: flex-start; margin-top: 12px; }

/* ---------- Story page ---------- */
.sp { max-width: 1140px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.crumbs button, .crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.crumbs button:hover, .crumbs a:hover { color: var(--ink); }
.sp-head { max-width: 860px; margin-top: 26px; }
.sp-head .story-top { margin-bottom: 14px; }
.sp-title {
  font: 600 clamp(32px, 4.4vw, 50px)/1.07 var(--serif);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.sp-dek { margin-top: 16px; font: 400 21px/1.5 var(--serif); color: var(--ink-2); max-width: 60ch; }
.sp-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }

.sp-rate { margin-top: 22px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.sp-rate .meter { flex: 0 1 220px; }
.sp-rank { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.sp-rank:hover { color: var(--ink); }

.sp-top { margin-bottom: 44px; }
.sp-top.has-img { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.sp-top.has-img .sp-head { max-width: none; }
.sp-figure { margin-top: 26px; }
.sp-img { aspect-ratio: 40 / 21; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.pic-credit { margin-top: 8px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); }
.pic-credit a:hover { color: var(--ink); }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-body p { font: 400 19px/1.65 var(--serif); color: var(--ink); max-width: 64ch; }
.sp-body p + p { margin-top: 1em; }
.sp-updates { margin-bottom: 30px; }
.sp-updates.later { margin: 30px 0 0; }
.sp-body .sp-updates .sp-update + .sp-update { margin-top: 20px; }
.sp-update .label { display: block; margin-bottom: 6px; color: var(--ink-2); }
.sp-update .upd-new { color: var(--hype-ink); }
.upd-link { color: var(--hype-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.upd-link:hover { color: var(--ink); }

.sp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-areas: "main aside" "comments aside";
  column-gap: 64px;
}
.sp-main { grid-area: main; min-width: 0; }
.sp-aside { grid-area: aside; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.sp-comments { grid-area: comments; min-width: 0; }

.sp-sec { margin-bottom: 46px; }
.sp-sec > h2, .sec-title {
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  padding-top: 12px; margin-bottom: 18px;
  border-top: 2px solid var(--ink);
}
.sec-title .right { margin-left: auto; text-transform: none; letter-spacing: 0; }
.bullets li { position: relative; padding-left: 24px; margin: 12px 0; font-size: 17px; line-height: 1.55; max-width: 66ch; }
.bullets li::before { content: ""; position: absolute; left: 3px; top: .78em; width: 10px; height: 2px; background: var(--hype); }


.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 8px 0 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 13px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink-4);
}
.tl-item.now::before { background: var(--hype); border-color: var(--hype); }
.tl-when { font: 500 11.5px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; display: flex; gap: 10px; align-items: center; }
.tl-when .pct-pill { margin-top: 0; }
.tl-title { display: block; margin-top: 6px; font: 600 18px/1.3 var(--serif); letter-spacing: -.01em; }
.tl-item.now .tl-title { color: var(--ink-3); font-style: italic; font-weight: 500; }
a.tl-title:hover { color: var(--hype-ink); }

/* Aside: same language as the home rail (rule on top, no boxes) */
.panel { border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 36px; }
.panel > .label { display: block; margin-bottom: 12px; }
.panel.flash { animation: panel-flash 1.8s ease-out; }
@keyframes panel-flash { 0%, 35% { border-top-color: var(--hype); } 100% { border-top-color: var(--ink); } }
.panel.flash > .label { animation: label-flash 1.8s ease-out; }
@keyframes label-flash { 0%, 35% { color: var(--hype-ink); } 100% { color: var(--ink-3); } }

.rc-status { display: flex; align-items: center; gap: 10px; font: 600 26px/1.1 var(--serif); letter-spacing: -.02em; }
.rc-status .sig { height: 15px; gap: 2px; }
.rc-status .sig i { width: 4px; border-radius: 1.5px; }
.rc-status .sig i:nth-child(1) { height: 6px; }
.rc-status .sig i:nth-child(2) { height: 10.5px; }
.rc-status .sig i:nth-child(3) { height: 15px; }
.rc-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rc-verified { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rc-verified .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.rc-verified .val { font: 600 14px/1 var(--sans); white-space: nowrap; }
.val.v-yes { color: var(--ok); }
.val.v-partly { color: var(--warn); }
.val.v-no { color: var(--hype-ink); }
.val.v-na { color: var(--ink-3); }
.rc-verified p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

.facts { display: grid; grid-template-columns: auto 1fr; }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt:first-of-type, .facts dd:first-of-type { padding-top: 2px; }
.facts dt { color: var(--ink-3); padding-right: 14px; }
.facts dd { text-align: right; font-weight: 600; color: var(--ink); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }

.src { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.src:first-child { padding-top: 2px; }
.src:last-child { border-bottom: 0; }
.src:hover .name span:first-child { color: var(--hype-ink); }
.src .src-ext { color: var(--ink-4); opacity: 0; transition: opacity .12s; }
.src:hover .src-ext, .src:focus-visible .src-ext { opacity: 1; }
.src .name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.src .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src .when { font: 500 11.5px/1.6 var(--mono); color: var(--ink-3); text-align: right; }
.src .dom { font: 500 11.5px/1.3 var(--mono); color: var(--ink-4); display: flex; gap: 6px; align-items: center; }
.src-type { color: var(--ink-3); text-transform: lowercase; }
.src-type::after { content: "·"; margin-left: 6px; color: var(--ink-4); }
.src-type.official { color: var(--ok); }
.first-badge { font: 500 12px/1 var(--sans); color: var(--hype-ink); }
.src.is-new { animation: fresh-row 2.5s ease-out; }

.follow-rows .row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.follow-rows .row a { flex: 1; font-weight: 600; font-size: 14.5px; }
.follow-rows .row a:hover { color: var(--hype-ink); }

/* Following: stories you follow */
.fs-list { margin-bottom: 34px; }
.fs-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fs-row .thumb.fs-thumb { width: 64px; height: 64px; margin-top: 0; }
.fs-meta { font: 500 11.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.fs-meta .sep { color: var(--ink-4); margin: 0 7px; }
.fs-title { font: 600 18px/1.3 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Comments ---------- */
.c-sort { margin-left: auto; }
.c-form { margin-bottom: 10px; }
.c-form textarea {
  width: 100%; min-height: 92px; resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: 1.5; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.c-form textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--bg-2); }
.c-form-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.c-form-foot .hint { font-size: 13px; color: var(--ink-3); }
.c-form-foot .hint b.hype { color: var(--hype-ink); }
.c-form-foot .hint b.slop { color: var(--slop-ink); }
.c-form-foot .btn { margin-left: auto; }

.c-thread { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 18px 0 14px; }
.c-replies { margin: -4px 0 6px 46px; }
.c-replies .comment { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.c-replies .avatar { width: 26px; height: 26px; font-size: 10.5px; }
.c-replies .c-text { font-size: 15px; }
.c-reply-form { margin: 0 0 16px 46px; }
.c-reply-form textarea { min-height: 70px; }
.c-reply-form .c-form-foot { justify-content: flex-end; }
.c-reply-form .c-form-foot .btn { margin-left: 0; }
.comment.mine { animation: fresh-row 2.5s ease-out; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: #fff; }
.c-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
.c-head strong { font-weight: 600; }
.c-head time { font: 500 11.5px/1 var(--mono); color: var(--ink-4); }
.c-vote { font: 500 12.5px/1 var(--sans); display: inline-flex; gap: 4px; align-items: center; }
.c-you { font: 500 12px/1 var(--sans); color: var(--ink-4); }
.c-top { font: 600 12px/1 var(--sans); color: var(--ok); }
.c-vote.hype { color: var(--hype-ink); }
.c-vote.slop { color: var(--slop-ink); }
.c-text { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 68ch; overflow-wrap: anywhere; }
.c-actions { margin-top: 8px; display: flex; gap: 16px; font: 500 12.5px/1 var(--sans); color: var(--ink-3); }
.c-actions button { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.c-actions button:hover { color: var(--ink); }
.c-actions button[aria-pressed="true"] { color: var(--hype-ink); }
.c-actions button:disabled { color: var(--ink-4); cursor: default; }
.c-like { padding: 4px 8px 4px 5px; margin: -4px 0 -4px -5px; border-radius: 6px; }
.c-like:hover { background: var(--bg-2); }
.c-like .n { font: 600 12.5px/1 var(--mono); }
.c-like.pop .i { animation: vote-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.c-empty { padding: 22px 0; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Today in brief ---------- */
.brief { max-width: 780px; margin: 0 auto; }
.brief-mast { text-align: center; padding: 18px 0 8px; }
.brief-mast .label { display: block; }
.brief-mast h1 { margin-top: 12px; font: 600 clamp(42px, 6vw, 64px)/1 var(--serif); letter-spacing: -.035em; }
.brief-mast .date { margin-top: 12px; font: italic 400 20px/1.3 var(--serif); color: var(--ink-2); }
.brief-mast .stats { margin-top: 14px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

.brief-top { margin-top: 40px; }
.brief-top .item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.brief-top .item.has-thumb { grid-template-columns: 56px minmax(0, 1fr) 132px; }
.brief-top .item .thumb { margin-top: 30px; }
.brief-top .item:last-child { border-bottom: 0; }
.brief-top .num { font: 500 44px/1 var(--serif); color: var(--hype); letter-spacing: -.03em; }
.brief-top .t { font: 600 26px/1.2 var(--serif); letter-spacing: -.018em; display: block; }
.brief-top p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.brief-top .m { margin-top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.brief-group { margin-top: 44px; }
.brief .day-head { margin-top: 0; }
.brief-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.brief-row:last-child { border-bottom: 0; }
.brief-row .t { font: 600 19px/1.3 var(--serif); letter-spacing: -.01em; display: block; }
.brief-row p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.brief-row .pct-pill { margin-top: 5px; }
.pct-pill { font: 600 12px/1 var(--mono); white-space: nowrap; }
.pct-pill.hype { color: var(--hype-ink); }
.pct-pill.slop { color: var(--slop-ink); }
.pct-pill.none { color: var(--ink-4); }

.the-end { text-align: center; margin-top: 56px; padding: 40px 0 20px; border-top: 2px solid var(--ink); }
.the-end h2 { font: italic 500 34px/1.1 var(--serif); letter-spacing: -.02em; }
.the-end .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Week ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font: 600 clamp(34px, 4.4vw, 48px)/1.04 var(--serif); letter-spacing: -.03em; }
.page-head .desc { margin-top: 10px; color: var(--ink-3); font-size: 15.5px; max-width: 60ch; }
.week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 34px; }
.week-col .day-head { margin-top: 0; }
.week-col .day-head h2 { display: flex; align-items: center; gap: 7px; }
.week-col .day-head h2 .i { color: var(--ink-3); margin-top: -1px; }
.week-col.hype .day-head h2 .i { color: var(--hype); }
.week-col.slop .day-head h2 .i { color: var(--slop); }
.week-empty { padding-top: 16px; font-size: 14px; color: var(--ink-3); }
.week-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.week-item:last-child { border-bottom: 0; }
.week-item .big-pct { font-size: 34px; }
.week-item .big-pct small { margin-left: 2px; }
.big-pct.split { display: flex; align-items: baseline; }
.big-pct.split .hv { color: var(--hype-ink); }
.big-pct.split .sv { font-size: 20px; color: var(--slop-ink); }
.big-pct.split small { margin: 0 3px; color: var(--ink-4); }
.week-item .t { font: 600 16.5px/1.3 var(--serif); display: block; }
.week-item .t:hover { color: var(--hype-ink); }
.week-item .s { margin-top: 6px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); }

/* ---------- Blog / article ---------- */
.kicker { display: inline-block; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--hype-ink); }
.kicker:hover { color: var(--ink); }

.blog-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 30px 0 36px; border-bottom: 1px solid var(--line); }
.blog-lead.no-pic { grid-template-columns: minmax(0, 1fr); }
.lead-txt .t { display: block; margin-top: 12px; font: 600 clamp(28px, 3vw, 40px)/1.08 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lead-txt .t:hover { color: var(--hype-ink); }
.lead-txt .dek { margin-top: 14px; font: 400 19px/1.5 var(--serif); color: var(--ink-2); }
.lead-txt .by { margin-top: 16px; font: 500 12px/1.3 var(--mono); color: var(--ink-3); }

.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.post-row .t { display: block; margin-top: 10px; font: 600 26px/1.15 var(--serif); letter-spacing: -.02em; }
.post-row .t:hover { color: var(--hype-ink); }
.post-row .dek { margin-top: 10px; font: 400 17.5px/1.5 var(--serif); color: var(--ink-2); max-width: 60ch; }
.post-row .by { margin-top: 12px; font: 500 12px/1.3 var(--mono); color: var(--ink-3); }

.post-img, .teaser-img, .lead-img, .more-img { display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.post-img { aspect-ratio: 3 / 2; }
.lead-img { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.teaser-img { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.more-img { aspect-ratio: 16 / 10; margin-bottom: 12px; }
.post-img img, .teaser-img img, .lead-img img, .more-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-img:hover img, .teaser-img:hover img, .lead-img:hover img, .more-img:hover img { transform: scale(1.04); }
.post-figure { margin: 0 0 38px; }
.post-hero { aspect-ratio: 40 / 21; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.more-posts { margin-top: 64px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.more-item .t { display: block; margin-top: 8px; font: 600 17px/1.3 var(--serif); letter-spacing: -.01em; }
.more-item .t:hover { color: var(--hype-ink); }

.article { max-width: 700px; margin: 0 auto; }
.article .crumbs { margin-bottom: 34px; }
.article > .kicker { display: block; width: max-content; }
.article h1 { margin-top: 12px; font: 600 clamp(36px, 5vw, 52px)/1.06 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.article .dek { margin-top: 16px; font: 400 23px/1.45 var(--serif); color: var(--ink-2); }
.article .byline { margin: 18px 0 32px; }
.article .byline .meta { font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.prose p { font: 400 19.5px/1.7 var(--serif); margin: 0 0 1.15em; color: var(--ink); }
.prose h2 { font: 600 27px/1.2 var(--serif); letter-spacing: -.018em; margin: 1.7em 0 .6em; }
.prose blockquote {
  margin: 1.6em 0;
  font: italic 400 26px/1.4 var(--serif); letter-spacing: -.01em; color: var(--ink);
  text-indent: -.45em;
}
.prose blockquote::before { content: "\201C"; color: var(--hype); }
.embed {
  margin: 30px 0; padding: 18px 20px 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.embed .label { display: block; margin-bottom: 10px; }
.embed .story-title { font-size: 21px; }
.embed .story-main.has-thumb { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
.embed .story-foot { margin-top: 14px; }
.article-end { margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Models table ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 28px; }
.select {
  height: 32px; padding: 0 32px 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a968b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; font: 500 13.5px/1 var(--sans); color: var(--ink-2);
  cursor: pointer;
}
.select:hover { border-color: var(--ink-3); color: var(--ink); }
.select option { background: var(--surface); color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 15px; height: 15px; accent-color: var(--hype); }
.filters .count { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ink-3); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 820px; }
.table th {
  text-align: left; padding: 12px 20px 12px 0;
  font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  white-space: nowrap; user-select: none;
}
.table th button { display: inline-flex; align-items: center; gap: 4px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.table th button:hover, .table th.sorted button { color: var(--ink); }
.table td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 14.5px; color: var(--ink-3); vertical-align: middle; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table td a { color: var(--ink-2); }
.table td.num { text-align: right; font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.table th.num { text-align: right; }
.table th.num button { flex-direction: row-reverse; }
.table .mn { display: block; width: max-content; font: 600 18px/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.table .mm { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-4); }
.table .w-open { color: var(--ink); }
.table .free { color: var(--ok); font-weight: 600; }
.mstat { display: inline-flex; align-items: center; gap: 7px; font: 500 14px/1 var(--sans); color: var(--ink-2); cursor: help; }
.ms-deprecated.mstat { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.table-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Calendar ---------- */
.cal-month { margin-top: 40px; }
.cal-month > h2 { font: 600 26px/1 var(--serif); letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cal-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cal-date .d { font: 600 40px/0.95 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.cal-date .w { margin-top: 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.cal-title { font: 600 21px/1.28 var(--serif); letter-spacing: -.012em; }
.cal-sub { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--ink-3); }
.cal-sub a { color: var(--ink-2); }
.cal-sub .dot { color: var(--ink-4); }
.cal-sub .mstat { font: inherit; color: var(--ink-2); }
.cal-note { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.cal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.cal-add { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.cal-add:hover { color: var(--ink); }
.cal-when { font: 500 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; padding-top: 7px; }
.cal-when.soon { color: var(--hype-ink); }
.cal-when-inline { display: none; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.filter-row .label { margin-right: 4px; }

/* ---------- Entity (company / category) head ---------- */
.entity-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.entity-head .txt { flex: 1; min-width: 220px; }
.entity-head .txt p { margin-top: 8px; }
.entity-head h1 { font: 600 40px/1.05 var(--serif); letter-spacing: -.028em; }
.entity-head p { margin-top: 6px; color: var(--ink-3); font-size: 15px; max-width: 56ch; }
.entity-head .actions { display: flex; gap: 8px; }
.entity-stats { display: flex; gap: 32px; padding: 22px 0 4px; flex-wrap: wrap; }
.entity-stats .n { font: 600 28px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.entity-stats .l { margin-top: 5px; font: 500 10.5px/1.2 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.mute-banner { margin-top: 16px; }

/* ---------- Profile ---------- */
.profile { max-width: 760px; }
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar.xl { width: 68px; height: 68px; font-size: 24px; flex: none; }
.profile-head .txt { flex: 1; min-width: 200px; }
.profile-head h1 { font: 600 clamp(32px, 4vw, 42px)/1.05 var(--serif); letter-spacing: -.025em; }
.profile-head .u { margin-top: 6px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }
.profile-head .bio { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 56ch; }
.profile-head .actions { display: flex; gap: 8px; }
.bio-form { margin-top: 20px; }
.bio-form textarea { width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; outline: none; }
.bio-form .c-form-foot { justify-content: flex-end; }
.bio-form .c-form-foot .btn { margin-left: 0; }
.profile .entity-stats { padding-top: 26px; }
.profile-tabs { margin-top: 22px; }
.profile-list { margin-top: 30px; }
.profile-list .day-head { margin-top: 0; }
.profile-empty { padding: 18px 0; color: var(--ink-3); font-size: 14.5px; }
.profile-danger { margin-top: 44px; }
.profile-danger .day-head { margin-top: 0; }
.profile-danger p { margin: 14px 0 14px; color: var(--ink-3); font-size: 14.5px; max-width: 60ch; }
.pc { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pc:last-child { border-bottom: 0; }
.pc-story { font: 600 18px/1.3 var(--serif); letter-spacing: -.01em; }
.pc-story:hover { color: var(--hype-ink); }
.pc-kind { margin-left: 8px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); }
.pc-text { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 66ch; }
.pc-meta { margin-top: 8px; display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--ink-3); }

/* ---------- Dialogs ---------- */
.dialog {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink);
  padding: 30px;
  width: min(460px, calc(100vw - 32px));
  box-shadow: var(--shadow-pop);
}
.dialog::backdrop { background: rgba(18, 17, 14, .5); }
.dialog[open] { animation: dlg-in .2s cubic-bezier(.2, .9, .3, 1); }
@keyframes dlg-in { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog h2 { font: 600 30px/1.1 var(--serif); letter-spacing: -.025em; padding-right: 30px; }
.dialog p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.dialog form { margin-top: 20px; display: grid; gap: 10px; }
.dialog .input { height: 44px; font-size: 15.5px; width: 100%; }
.dialog .btn { height: 44px; }
.dialog .close { position: absolute; top: 18px; right: 18px; }
/* Continue with Google: Google's dark button (fill #131314, outline #8E918F, text #E3E3E3) */
.auth-google { margin-top: 20px; }
.btn-google { width: 100%; justify-content: center; gap: 10px; background: #131314; color: #e3e3e3; border: 1px solid #8e918f; }
.btn-google:hover { background: #1e1f20; color: #e3e3e3; }
.btn-google svg { flex: none; }
.dialog .auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 -6px; font-size: 13px; color: var(--ink-4); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.dialog .alt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.dialog .fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-4); }
.field { display: grid; gap: 6px; }
.field > span { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.form-err { margin-top: 0 !important; font-size: 13.5px !important; color: var(--hype-ink) !important; }
.dialog .field-hint { margin-top: -4px; font-size: 12.5px; color: var(--ink-3); }
.dialog .field-hint .linklike { font-size: 13px; }

/* Comment box when signed out */
.c-signin { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.c-signin p { color: var(--ink-2); font-size: 15px; }
.c-signin-actions { display: flex; gap: 8px; }
.c-user { font-weight: 600; }
.comment.deleted .avatar { background: var(--bg-2); }
.comment.deleted .c-user, .comment.deleted .c-text { color: var(--ink-4); }
.c-user:hover { color: var(--hype-ink); }
.c-form-foot .hint a { color: var(--ink-2); font-weight: 600; }
.c-form-foot .hint a:hover { color: var(--ink); }
.dialog .done { text-align: center; padding: 10px 0; }
.dialog .done .big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin: 0 auto 16px; }
.dialog .done h2 { padding: 0; }

.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh;
  width: min(360px, 90vw);
  border: 0; border-left: 1px solid var(--line);
  border-radius: 0; padding: 20px 22px 32px;
  background: var(--bg); color: var(--ink);
  overflow-y: auto;
}
.drawer::backdrop { background: rgba(18, 17, 14, .5); }
.drawer[open] { animation: drawer-in .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer .side-sec + .side-sec { margin-top: 26px; }
.drawer-actions { display: grid; gap: 8px; margin-top: 24px; }
.drawer-actions .btn { width: 100%; height: 42px; }
.drawer-links a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 11px 16px; border-radius: 12px;
  font: 500 14px/1.35 var(--sans);
  box-shadow: var(--shadow-pop);
  animation: toast-in .25s cubic-bezier(.2, .9, .3, 1.2);
}
.toast a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.toast.out { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-3); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }
.footer-links .linklike { text-decoration: none; color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 284px; gap: 0 44px; }
  .feed-top { grid-column: 1 / 3; }
  .layout > .main { grid-column: 1; }
  .layout > .rail { grid-column: 2; }
  .sidebar { display: none; }
  .cat-strip { display: flex; }
  .week-grid { grid-template-columns: 1fr 1fr; }
  .week-col.divisive { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr) 290px; column-gap: 40px; }
  .sp-top.has-img { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
}
@media (max-width: 880px) {
  :root { --header-h: 101px; }
  .container { padding-inline: 20px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .feed-top { grid-column: 1; padding-bottom: 24px; }
  .layout > .main { grid-column: 1; }
  .layout > .rail { grid-column: 1; grid-row: 3; }
  .rail { border-top: 3px double var(--ink); padding-top: 28px; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: inline-grid !important; }
  .masthead { height: 56px; gap: 12px; }
  .masthead-right { gap: 2px; }
  .nav { height: 44px; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "aside" "comments"; }
  .sp-top.has-img { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sp-aside { position: static; margin-bottom: 40px; }
  .post-row { grid-template-columns: 1fr; gap: 14px; }
  .post-img { order: -1; }
  .blog-lead { grid-template-columns: 1fr; gap: 18px; }
  .more-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { padding-inline: 16px; }
  .wordmark { font-size: 24px; }
  .rail { grid-template-columns: 1fr; }
  .feed-head h1 { font-size: 30px; }
  .story-title { font-size: 21px; }
  .story.lead .story-title { font-size: 25px; }
  .story.ranked { grid-template-columns: 38px minmax(0, 1fr); }
  .rank { font-size: 28px; }
  .story.lead .rank { font-size: 34px; }
  .story-main.has-thumb, .story.lead .story-main.has-thumb { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .thumb { border-radius: 8px; }
  .sp-img { aspect-ratio: 16 / 9; }
  .sp-body p { font-size: 17.5px; }
  .sp-rate .meter { flex-basis: 100%; }
  .story .story-top .status { display: none; }
  .story-top .cos { display: none; }
  .foot-status { display: block; margin-left: auto; }
  .story-foot { gap: 12px; }
  .meter { max-width: none; flex-basis: 100%; }
  .foot-meta { margin-left: 0; width: 100%; }
  .votes { flex: 1; }
  .votes .vote { flex: 1; justify-content: center; }
  .week-grid { grid-template-columns: 1fr; gap: 34px; }
  .sp-dek { font-size: 19px; }
  .brief-top .item, .brief-top .item.has-thumb { grid-template-columns: 42px minmax(0, 1fr); }
  .brief-top .item .thumb { display: none; }
  .brief-top .story-top .status { display: none; }
  .brief-top .num { font-size: 34px; }
  .brief-top .t { font-size: 22px; }
  .cal-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .cal-row > .cal-when { display: none; }
  .cal-when-inline { display: contents; }
  .cal-when-inline .cal-when { padding-top: 0; font: inherit; }
  .cal-title { font-size: 19px; }
  .cal-date .d { font-size: 32px; }
  .prose p { font-size: 18.5px; }
  .entity-head h1 { font-size: 32px; }
  .dialog { padding: 24px 20px; }
}

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