
/* Frothier — Live Site Styles */
:root {
  /* Frothier brand palette — deep navy + electric royal blue */
  --bg: oklch(0.16 0.022 264);
  --bg-1: oklch(0.19 0.024 264);
  --bg-2: oklch(0.22 0.026 264);
  --bg-3: oklch(0.26 0.028 264);
  --line: oklch(0.32 0.026 264);
  --line-2: oklch(0.38 0.028 264);
  --fg: oklch(0.96 0.005 264);
  --fg-1: oklch(0.82 0.01 264);
  --fg-2: oklch(0.62 0.014 264);
  --fg-3: oklch(0.48 0.014 264);
  --accent: oklch(0.62 0.20 264);
  --accent-2: oklch(0.48 0.18 264);
  --ok: oklch(0.78 0.14 150);
  --cat-hot: oklch(0.74 0.16 28);
  --cat-pol: oklch(0.72 0.12 240);
  --cat-fun: oklch(0.78 0.15 330);
  --cat-spo: oklch(0.78 0.14 145);
  --cat-wld: oklch(0.78 0.13 200);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono { font-family: var(--mono); }
::selection { background: var(--accent); color: var(--bg); }

/* === TOPBAR === */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg), transparent 6%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  height: 60px; padding: 0 24px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--line); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.cat-nav { display: flex; gap: 4px; align-items: center; height: 100%; overflow-x: auto; }
.cat-nav button {
  height: 36px; padding: 0 14px; border-radius: 6px;
  font-size: 13px; color: var(--fg-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 120ms, color 120ms;
}
.cat-nav button:hover { color: var(--fg); background: var(--bg-2); }
.cat-nav button.active { color: var(--fg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cat-nav .dot { width: 6px; height: 6px; border-radius: 50%; }
.cat-nav .dot.hot { background: var(--cat-hot); }
.cat-nav .dot.pol { background: var(--cat-pol); }
.cat-nav .dot.fun { background: var(--cat-fun); }
.cat-nav .dot.spo { background: var(--cat-spo); }
.cat-nav .dot.wld { background: var(--cat-wld); }
.cat-nav .dot.archive { background: var(--fg-3); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.search-trigger {
  height: 34px; padding: 0 12px; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; min-width: 220px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-3);
}
.search-trigger:hover { background: var(--bg-3); }
.search-trigger .kbd { font-size: 10px; padding: 2px 5px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 3px; margin-left: auto; color: var(--fg-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--fg-1); cursor: pointer; }
.avatar:hover { background: var(--line-2); }

/* === Frothing-now ticker === */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em;
}
.ticker-inner { max-width: 1320px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 16px; align-items: center; }
.ticker .label { color: var(--fg-3); }
.ticker .breaking { color: var(--accent); display: flex; align-items: center; gap: 6px; }
.ticker .breaking::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.ticker .stories { color: var(--fg-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker .stories span { margin-right: 18px; cursor: pointer; transition: color 120ms; }
.ticker .stories span:hover { color: var(--accent); }
.ticker .stories span::before { content: '·'; margin-right: 18px; color: var(--fg-3); }
.ticker .stories span:first-child::before { display: none; }
.ticker .meta { color: var(--fg-3); font-size: 10px; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

/* === Layout === */
.page { max-width: 1320px; margin: 0 auto; padding: 32px 24px 96px; }

/* === Cards === */
.story-card { cursor: pointer; transition: transform 200ms; }
.story-card:hover { transform: translateY(-2px); }
.story-card .img {
  border-radius: 6px; overflow: hidden; position: relative;
  aspect-ratio: 16/10; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.story-card .img::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.story-card .meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
.story-card .head { font-family: var(--serif); font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; }
.story-card .summary { font-size: 13px; color: var(--fg-2); line-height: 1.45; margin-top: 6px; }
.story-card .footer { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-top: 8px; }

.cat-pill {
  display: inline-flex; align-items: center; padding: 2px 7px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 3px; border: 1px solid;
}
.cat-pill.hot { color: var(--cat-hot); border-color: color-mix(in oklab, var(--cat-hot), transparent 70%); }
.cat-pill.pol { color: var(--cat-pol); border-color: color-mix(in oklab, var(--cat-pol), transparent 70%); }
.cat-pill.fun { color: var(--cat-fun); border-color: color-mix(in oklab, var(--cat-fun), transparent 70%); }
.cat-pill.spo { color: var(--cat-spo); border-color: color-mix(in oklab, var(--cat-spo), transparent 70%); }
.cat-pill.wld { color: var(--cat-wld); border-color: color-mix(in oklab, var(--cat-wld), transparent 70%); }
.source-meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }

/* === Hero === */
.hero-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.hero-card .img { aspect-ratio: 16/9; border-radius: 8px; }
.hero-card .head { font-size: 44px; line-height: 1.04; margin-top: 6px; }
.hero-card .summary { font-size: 16px; max-width: 640px; }
.hero-side { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.hero-side .label { font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hero-side .item { padding-bottom: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.hero-side .item:last-child { border-bottom: none; }
.hero-side .item:hover .item-head { color: var(--accent); }
.hero-side .item-num { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 600; margin-right: 8px; }
.hero-side .item-head { font-family: var(--serif); font-size: 17px; line-height: 1.22; transition: color 120ms; margin-top: 4px; }
.hero-side .item-meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-top: 4px; }

/* === Section === */
.section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.section-h-left { display: flex; align-items: baseline; gap: 16px; }
.section-h-num { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.section-h-title { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; font-weight: 500; }
.section-h-title em { font-style: italic; }
.section-h-link { font-family: var(--mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.section-h-link:hover { color: var(--accent); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* List card (compact) */
.list-card { display: grid; grid-template-columns: 1fr 110px; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.list-card:hover .head { color: var(--accent); }
.list-card .img { aspect-ratio: 1; border-radius: 4px; }
.list-card .head { font-family: var(--serif); font-size: 17px; line-height: 1.25; margin: 6px 0 4px; transition: color 120ms; }

/* === Category page === */
.cat-hero {
  padding: 56px 24px 36px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cat-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--cat-color), transparent 92%), transparent 80%);
  pointer-events: none;
}
.cat-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; }
.cat-hero .kicker { font-family: var(--mono); font-size: 12px; color: var(--cat-color); text-transform: uppercase; letter-spacing: 0.1em; }
.cat-hero h1 { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.025em; font-weight: 500; margin-top: 8px; }
.cat-hero h1 em { font-style: italic; color: var(--cat-color); }
.cat-hero .stats { display: flex; gap: 32px; margin-top: 20px; font-family: var(--mono); font-size: 11px; color: var(--fg-2); }
.cat-hero .stat .l { color: var(--fg-3); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.cat-hero .stat .v { color: var(--fg); font-size: 22px; font-family: var(--serif); margin-top: 2px; }

.filter-bar { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--bg-1); flex-wrap: wrap; }
.filter-bar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.seg button {
  padding: 6px 12px; border-radius: 4px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-2);
}
.seg button:hover { background: var(--bg-1); color: var(--fg-1); }
.seg button.active { background: var(--bg-1); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.divider-v { width: 1px; height: 18px; background: var(--line-2); }
.chip {
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2);
  font-family: var(--mono); font-size: 10px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; user-select: none;
}
.chip:hover { background: var(--bg-3); color: var(--fg-1); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* === Article page === */
.article-page { max-width: 1320px; margin: 0 auto; padding: 32px 24px 96px; }
.breadcrumbs { font-family: var(--mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--accent); }
.article-head { max-width: 820px; margin-bottom: 32px; }
.article-head .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.article-head h1 { font-family: var(--serif); font-size: 56px; line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; margin-bottom: 16px; }
.article-head .summary { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--fg-1); }
.article-grid { display: grid; grid-template-columns: 200px minmax(0, 720px) 320px; gap: 40px; align-items: start; }
.article-tools { position: sticky; top: 80px; align-self: start; }
.article-tools .tools-label { font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.article-tools button {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; width: 100%; text-align: left;
  font-size: 13px; color: var(--fg-2); border-bottom: 1px solid var(--line);
  transition: color 120ms;
}
.article-tools button:hover { color: var(--fg); }
.article-tools button.active { color: var(--accent); }
.article-tools button .icon { font-family: var(--mono); width: 18px; color: var(--fg-3); }
.article-tools button.active .icon { color: var(--accent); }

.article-body .hero-img { aspect-ratio: 16/9; border-radius: 8px; }
.article-body .caption { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin: 10px 0 32px; }
.article-body p { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--fg-1); margin-bottom: 22px; }
.article-body p:first-letter { font-weight: 500; }
.article-body .pullquote {
  border-left: 3px solid var(--accent); padding: 8px 0 8px 20px; margin: 32px 0;
  font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--fg);
  font-style: italic;
}

/* === The Frothier Take (AI synthesis) === */
.frothier-take {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 22px 24px 20px;
  margin: 0 0 36px;
  position: relative;
}
.frothier-take .ft-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.frothier-take .ft-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.frothier-take .ft-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px;
}
.frothier-take .ft-conf {
  margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-2);
}
.frothier-take .ft-conf.high   { color: var(--ok);      border-color: color-mix(in oklab, var(--ok), transparent 55%); }
.frothier-take .ft-conf.medium { color: var(--cat-pol); border-color: color-mix(in oklab, var(--cat-pol), transparent 55%); }
.frothier-take .ft-conf.low    { color: var(--cat-hot); border-color: color-mix(in oklab, var(--cat-hot), transparent 55%); }
.frothier-take .ft-oneline {
  font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--fg);
  font-style: italic; margin-bottom: 16px;
}
.frothier-take .ft-body p {
  font-family: var(--serif); font-size: 17px !important; line-height: 1.6; color: var(--fg-1);
  margin-bottom: 14px;
}
.frothier-take .ft-body p:last-child { margin-bottom: 0; }
.frothier-take .ft-split { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .frothier-take .ft-split.two { grid-template-columns: 1fr 1fr; } }
.frothier-take .ft-cell {
  background: color-mix(in oklab, var(--bg), transparent 35%);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.frothier-take .ft-cell .l {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.frothier-take .ft-cell.agree .l::before  { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.frothier-take .ft-cell.dispute .l::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cat-hot); }
.frothier-take .ft-cell .v { font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--fg-1); }
.frothier-take .ft-foot {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--fg-3);
}

.aside { display: grid; gap: 16px; position: sticky; top: 80px; align-self: start; }
.aside-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.aside-card .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aside-card .h-label { font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.aside-card .h-meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.source-row { padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.source-row:first-of-type { border-top: none; padding-top: 0; }
.source-row:hover .sr-name { color: var(--accent); }
.sr-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; }
.sr-name { color: var(--fg); transition: color 120ms; }
.sr-when { color: var(--fg-3); }
.sr-head { font-family: var(--serif); font-size: 14px; line-height: 1.3; color: var(--fg-2); margin-top: 4px; }
.timeline-row { display: flex; gap: 10px; padding: 6px 0; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--fg-2); }
.timeline-row .pip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.timeline-row .pip.done { background: var(--accent); }
.timeline-row .pip.pending { background: var(--line-2); }
.timeline-row .t { color: var(--fg-3); width: 38px; }

/* === Archive === */
.archive-hero { padding: 56px 24px 32px; border-bottom: 1px solid var(--line); }
.archive-hero-inner { max-width: 1320px; margin: 0 auto; }
.archive-hero h1 { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.025em; font-weight: 500; }
.archive-hero h1 em { font-style: italic; color: var(--accent); }
.archive-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 32px 24px 96px; }
.archive-filters { display: grid; gap: 16px; align-self: start; position: sticky; top: 80px; }
.filter-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-block .l { font-family: var(--mono); font-size: 9px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.filter-block .v { font-family: var(--mono); font-size: 12px; color: var(--fg); }
.histogram { background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 28px; }
.histogram-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.histogram-h .l { font-family: var(--mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; }
.histogram-h .peak { font-family: var(--mono); font-size: 11px; color: var(--fg-2); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 80px; }
.bars .bar { flex: 1; min-height: 8px; border-radius: 2px 2px 0 0; transition: opacity 120ms; cursor: pointer; }
.bars .bar:hover { opacity: 1 !important; }
.bars-x { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.archive-row { display: grid; grid-template-columns: 130px 1fr 60px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; cursor: pointer; transition: background 120ms; }
.archive-row:hover { background: var(--bg-1); margin: 0 -12px; padding: 18px 12px; }
.archive-row .date { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.archive-row .head { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.archive-row .arrow { font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-align: right; }

/* === Account === */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 32px 24px 96px; }
.account-side { display: grid; gap: 4px; align-self: start; position: sticky; top: 80px; }
.account-profile { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.account-profile .av-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-weight: 600; }
.account-profile .nm { font-weight: 600; }
.account-profile .em { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.account-side button {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
  border-radius: 6px; font-size: 13px; color: var(--fg-2); text-align: left;
}
.account-side button:hover { background: var(--bg-2); color: var(--fg); }
.account-side button.active { background: var(--bg-2); color: var(--fg); }
.account-side button .ct { font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.account-side button.active .ct { color: var(--accent); }

.followed { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.followed-pill {
  padding: 4px 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--fg-1); display: flex; align-items: center; gap: 6px;
}
.followed-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.feed-row { display: grid; grid-template-columns: 1fr 220px; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); cursor: pointer; }
.feed-row:hover .head { color: var(--accent); }
.feed-row .img { aspect-ratio: 16/10; border-radius: 6px; }
.feed-row .why { font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.feed-row .head { font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 6px; transition: color 120ms; }
.feed-row .actions { display: flex; gap: 12px; margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.feed-row .actions span:hover { color: var(--accent); }

/* === Search Modal === */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: oklch(0 0 0 / 0.6); backdrop-filter: blur(6px);
  display: grid; place-items: start center;
  padding-top: 12vh;
}
.search-modal {
  width: min(720px, 90vw); background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px -20px oklch(0 0 0 / 0.7);
}
.search-modal .input-row { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-modal input { flex: 1; background: none; border: none; outline: none; color: var(--fg); font-family: var(--mono); font-size: 16px; }
.search-modal input::placeholder { color: var(--fg-3); }
.search-modal .results { max-height: 480px; overflow-y: auto; }
.search-modal .result {
  padding: 12px 20px; border-bottom: 1px solid var(--line); cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.search-modal .result:hover, .search-modal .result.focused { background: var(--bg-2); }
.search-modal .result .head { font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.search-modal .result .meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-top: 3px; }
.search-modal .result mark { background: color-mix(in oklab, var(--accent), transparent 70%); color: var(--fg); padding: 0 2px; border-radius: 2px; }
.search-modal .empty { padding: 40px 20px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.search-modal .footer { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--fg-3); }
.search-modal .footer .kbd { padding: 1px 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; }

/* === Toast === */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--fg);
  animation: slideUp 200ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 10px 30px -10px oklch(0 0 0 / 0.5);
}
.toast .icon { color: var(--ok); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* === Static content pages === */
.infopage { max-width: 1320px; margin: 0 auto; padding: 40px 24px 80px; }
.infopage .back { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); margin-bottom: 28px; cursor: pointer; }
.infopage .back:hover { color: var(--accent); }
.infopage h1 { font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 10px; }
.infopage .page-tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--fg-2); margin-bottom: 18px; }
.infopage .page-updated { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); margin-bottom: 36px; }
.infopage h2 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.infopage p { font-size: 16px; line-height: 1.75; color: var(--fg-1); margin-bottom: 16px; max-width: 760px; }
.infopage ul, .infopage ol { margin: 0 0 18px 22px; display: grid; gap: 8px; max-width: 760px; }
.infopage li { font-size: 16px; line-height: 1.65; color: var(--fg-1); }
.infopage a.inline { color: var(--accent); cursor: pointer; }
.infopage a.inline:hover { text-decoration: underline; }
.infopage .page-contact { background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-top: 24px; max-width: 760px; }
.infopage .page-contact p { margin-bottom: 4px; font-size: 14px; }
@media (max-width: 600px) { .infopage h1 { font-size: 32px; } }

/* === Footer === */
.footer { border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 40px 24px 56px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer .social-row { display: flex; gap: 16px; }
.footer .social-row a { color: var(--fg-3); }
.footer .social-row a:hover { color: var(--accent); }
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); margin-bottom: 12px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { font-size: 13px; color: var(--fg-2); }
.footer ul a:hover { color: var(--accent); }
.footer .donate { background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.footer .donate h3 { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.footer .donate p { font-size: 13px; color: var(--fg-2); margin-bottom: 14px; }
.footer .donate .btns { display: flex; gap: 6px; }
.footer .donate .tier { padding: 8px 12px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.footer .donate .tier.featured { background: var(--accent); color: var(--bg); border-color: var(--accent); }
/* === DIGEST BAND === */
.digest-band { border-top: 1px solid var(--line); background:
    radial-gradient(900px 200px at 12% -40%, color-mix(in oklab, var(--accent), transparent 84%), transparent),
    var(--bg-1); }
.digest-inner { max-width: 1320px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.digest-copy h3 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; margin-bottom: 6px; }
.digest-copy h3 em { color: var(--accent); font-style: italic; }
.digest-copy p { font-size: 14px; color: var(--fg-2); max-width: 48ch; }
.digest-form { display: flex; gap: 8px; flex-wrap: wrap; }
.digest-form input { flex: 1 1 220px; min-width: 0; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; color: var(--fg); font-family: var(--mono); font-size: 13px; outline: none; }
.digest-form input:focus { border-color: var(--accent); }
.digest-form button { padding: 11px 18px; border-radius: 7px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 13px; border: 1px solid var(--accent); white-space: nowrap; }
.digest-form button:disabled { opacity: 0.6; cursor: wait; }
.digest-note { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 10px; }
.digest-note.err { color: var(--cat-hot); }
.digest-done { font-family: var(--serif); font-size: 18px; color: var(--fg); }
.digest-done em { color: var(--accent); font-style: italic; }
@media (max-width: 720px) { .digest-inner { grid-template-columns: 1fr; gap: 20px; } }
.digest-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.digest-proof .stat { color: var(--fg-1); }
.digest-proof .stat b { color: var(--accent); font-weight: 600; }
.digest-proof .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.digest-sub { margin-top: 12px; font-size: 13px; color: var(--fg-1); }
.digest-sub b { color: var(--accent); font-weight: 600; }
.testimonials { max-width: 1320px; margin: 0 auto; padding: 0 24px 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.tcard blockquote { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: var(--fg); margin-bottom: 10px; }
.tcard .who { font-family: var(--mono); font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.04em; }
.tcard .who b { color: var(--fg-1); font-weight: 600; }
@media (max-width: 720px) { .testimonials { grid-template-columns: 1fr; } }
.footer .legal { max-width: 1320px; margin: 0 auto; padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* responsive */
@media (max-width: 960px) {
  .hero-row, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .hero-card .head { font-size: 32px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-tools, .aside { position: static; }
  .archive-grid, .account-grid { grid-template-columns: 1fr; }
  .archive-filters, .account-side { position: static; }
  .article-head h1 { font-size: 36px; }
  .cat-hero h1, .archive-hero h1 { font-size: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cat-nav { display: none; }
}

/* === shell styles (block 2) === */

/* === Static pre-render shell ===
   Visible to search crawlers, social scrapers, and visitors before/if the
   React app mounts. ReactDOM replaces #root's children on load, so live
   visitors see the full app while everyone else still gets real content. */
.shell { max-width: 1100px; margin: 0 auto; padding: 28px 24px 64px; }
.shell-top { display: flex; align-items: center; gap: 11px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.shell-mark { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.shell-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.shell-tag { margin-left: auto; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.shell-hero { padding: 52px 0 40px; max-width: 40ch; }
.shell-hero .eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px; }
.shell-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
.shell-hero h1 em { color: var(--accent); font-style: italic; }
.shell-hero p { font-size: 16px; color: var(--fg-1); line-height: 1.55; margin-top: 18px; max-width: 52ch; }
.shell-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 14px; }
.shell-trust { font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin-top: 18px; letter-spacing: 0.02em; }
.shell-trust strong { color: var(--fg-1); font-weight: 600; }
.shell-section-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); margin: 8px 0 18px; }
.shell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.shell-cluster { background: var(--bg-1); padding: 20px; }
.shell-cluster .cmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.shell-pill { display: inline-flex; padding: 2px 7px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 3px; border: 1px solid; }
.shell-pill.hot { color: var(--cat-hot); border-color: color-mix(in oklab, var(--cat-hot), transparent 70%); }
.shell-pill.pol { color: var(--cat-pol); border-color: color-mix(in oklab, var(--cat-pol), transparent 70%); }
.shell-pill.fun { color: var(--cat-fun); border-color: color-mix(in oklab, var(--cat-fun), transparent 70%); }
.shell-pill.spo { color: var(--cat-spo); border-color: color-mix(in oklab, var(--cat-spo), transparent 70%); }
.shell-pill.wld { color: var(--cat-wld); border-color: color-mix(in oklab, var(--cat-wld), transparent 70%); }
.shell-cluster h2 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.shell-cluster .srcs { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-top: 10px; }
.shell-cluster .srcs b { color: var(--accent); font-weight: 600; }
.shell-signup { margin-top: 44px; padding: 28px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; }
.shell-signup h3 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.shell-signup h3 em { color: var(--accent); font-style: italic; }
.shell-signup p { font-size: 14px; color: var(--fg-2); margin-top: 6px; max-width: 50ch; }
.shell-signup form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.shell-signup input { flex: 1 1 240px; min-width: 0; padding: 11px 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; color: var(--fg); font-family: var(--mono); font-size: 13px; }
.shell-signup button { padding: 11px 20px; border-radius: 7px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 13px; border: none; }
.shell-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); }
.shell-social { display: flex; gap: 16px; margin-left: auto; }
.shell-social a { color: var(--fg-2); }
.shell-social a:hover { color: var(--accent); }

/* === Static page chrome (added for standalone pages) === */
.pagebar { grid-template-columns: auto 1fr auto; }
.pagebar-cta { justify-self: end; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-2); padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; }
.pagebar-cta:hover { color: var(--fg); border-color: var(--line-2); background: var(--bg-2); }
.infopage a.inline { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent), transparent 60%); }
.infopage a.inline:hover { border-bottom-color: var(--accent); }
.page-foot-wrap { max-width: 1320px; margin: 40px auto 0; padding: 0 24px 48px; }
.page-nav { display: flex; flex-wrap: wrap; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); margin-bottom: 4px; }
.page-nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-2); }
.page-nav a:hover { color: var(--accent); }
/* the static footer row sits in its own wrapper here, so neutralize the shell margin */
.page-foot-wrap .shell-foot { margin-top: 0; }
