/* Trias News portal. National-portal density (Tempo-like composition): Roboto for UI and headlines,
   Roboto Serif for article text, brand red for actions and labels, one black section, dark footer.
   Ad slots are placeholders (.ad); site.js handles drawer, search, cookie, app sheet, sticky ad. */
:root {
  --red: oklch(0.54 0.215 27);
  --red-ink: oklch(0.47 0.19 27);
  --red-soft: oklch(0.96 0.025 27);
  --ink: oklch(0.2 0.004 25);
  --ink-2: oklch(0.38 0.004 25);
  --ink-3: oklch(0.5 0.004 25);
  --paper: oklch(0.995 0.001 25);
  --gray: oklch(0.965 0.002 25);
  --gray-2: oklch(0.93 0.003 25);
  --line: oklch(0.9 0.003 25);
  --black: oklch(0.14 0.004 25);
  --foot: oklch(0.25 0.004 25);
  --radius: 4px;
  --wide: 1140px;
  --gutter: clamp(16px, 3vw, 32px);
  --sans: 'Roboto', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Roboto Serif', Georgia, serif;
  --hdr: 64px;
  color-scheme: light;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal }
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip { position: absolute; left: var(--gutter); top: 8px; z-index: 100; padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 700; transform: translateY(-200%); transition: transform .2s cubic-bezier(.22, 1, .36, 1) }
.skip:focus { transform: none }
main:focus { outline: none }
[hidden] { display: none !important }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s }
.btn-red { background: var(--red); color: oklch(0.99 0.002 25) }
.btn-red:hover { background: var(--red-ink) }
.btn-outline { border-color: var(--line); background: var(--paper); color: var(--ink) }
.btn-outline:hover { border-color: var(--ink) }
.btn-ghost { background: transparent; color: var(--ink-2) }
.btn-ghost:hover { color: var(--ink) }
.btn.wide { display: flex; width: 100%; margin-top: 32px }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper) }
.hdr-in { display: flex; align-items: center; gap: 8px; min-height: var(--hdr) }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ink) }
.brand img { height: 36px; width: auto }
.brand-name { font-size: 25px; font-weight: 900; letter-spacing: -0.035em; line-height: 1; white-space: nowrap }
.brand-name b { color: var(--red); font-weight: 900 }
.brand-txt { display: grid; gap: 3px }
.brand-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3) }
.brand-tag::before { content: ''; width: 14px; height: 1px; background: var(--red) }
.hdr-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--ink) }
.hdr-btn:hover { color: var(--red) }
.hdr-btn.icon { width: 44px; justify-content: center; padding: 0 }
.menu-btn { margin-left: 20px }
.hdr-links { display: flex; align-items: center }
.hdr-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 15px; border-left: 1px solid var(--line) }
.hdr-links a:hover { color: var(--red) }
.lk-mark { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 3px; border-radius: 3px; background: var(--red); color: oklch(0.99 0.002 25); font: 900 10px/1 var(--sans); letter-spacing: 0; vertical-align: 2px }
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto }
.hdr-tools .btn { min-width: 140px }
.avatar-btn { border: 1px solid var(--ink) !important; border-radius: 50%; width: 34px !important; min-height: 34px !important; height: 34px }
.searchbar { border-top: 1px solid var(--line); background: var(--paper) }
.searchbar .wrap { display: flex; gap: 8px; padding: 12px 0 }
.searchbar input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font: 16px var(--sans); color: var(--ink); background: var(--paper) }
.searchbar input:focus { outline: none; border-color: var(--ink) }
.rubrics { background: var(--gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.rubrics .wrap { display: flex; gap: clamp(16px, 2.4vw, 30px); overflow-x: auto; scrollbar-width: none; min-height: 44px; align-items: stretch }
.rubrics .wrap::-webkit-scrollbar { display: none }
.rubrics a { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 -2px 0 transparent }
.rubrics a:hover { color: var(--red) }
.rubrics a[aria-current] { color: var(--red); font-weight: 500; box-shadow: inset 0 -2px 0 var(--red) }
.pill { padding: 2px 8px; border-radius: 99px; background: var(--red); color: oklch(0.99 0.002 25); font-size: 11px; font-weight: 500 }
@media (max-width: 1080px) { .hdr-links { display: none } .menu-btn span { display: none } .menu-btn { margin-left: 4px; order: 3 } }
@media (max-width: 720px) {
  :root { --hdr: 56px }
  .brand img { height: 32px } .brand-name { font-size: 21px } .brand-tag { font-size: 10px }
  .hdr-tools .btn { min-width: 0; padding: 0 12px; min-height: 36px }
  .hdr-tools [data-open="search"], .avatar-btn { display: none !important }
  .rubrics .wrap { mask-image: linear-gradient(90deg, #000 88%, transparent) }
}

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: oklch(0.14 0.004 25 / .5) }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw); overflow-y: auto; padding: 16px 24px 40px; background: var(--paper); animation: drawer-in .28s cubic-bezier(.22, 1, .36, 1) }
@keyframes drawer-in { from { transform: translateX(-100%) } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.drawer-search { display: flex; border: 1px solid var(--line); border-radius: var(--radius) }
.drawer-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: none; font: 16px var(--sans); color: var(--ink) }
.drawer-search input:focus { outline: none }
.drawer-search button { width: 44px; border: 0; background: none; cursor: pointer }
.drawer-label { margin: 24px 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3) }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px }
.drawer-grid a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px }
.drawer-grid a:hover { color: var(--red) }
.drawer-grid.small a { font-size: 14px; color: var(--ink-2) }

/* ads (placeholders) */
.ad { margin: 24px 0 }
.ad-label { margin: 0 0 6px; text-align: center; font-size: 11px; color: var(--ink-3) }
.ad-slot { display: grid; place-content: center; justify-items: center; gap: 2px; margin-inline: auto; background: repeating-linear-gradient(135deg, var(--gray) 0 12px, var(--gray-2) 12px 13px); border: 1px solid var(--line); color: var(--ink-3) }
.ad-slot span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em }
.ad-slot small { font-size: 11px }
.ad-billboard .ad-slot { width: min(100%, 970px); height: 250px }
.ad-leader .ad-slot { width: min(100%, 728px); height: 90px }
.ad-half .ad-slot { width: 300px; max-width: 100%; height: 600px }
.ad-rect .ad-slot, .ad-inarticle .ad-slot { width: 300px; max-width: 100%; height: 250px }
.ad-mobile .ad-slot { width: 320px; max-width: 100%; height: 50px }
.top-ad .ad { margin: 20px 0 8px; padding: 12px 0; background: var(--gray) }
@media (max-width: 720px) { .ad-billboard .ad-slot { width: 300px; height: 250px } .ad-leader .ad-slot { width: 320px; height: 100px } }
.in-ad .ad { margin: 32px 0; padding: 16px 0; border-block: 1px solid var(--line) }
.list-ad { padding: 8px 0; border-top: 1px solid var(--line) }

@media (max-width: 999px) { .ad-half .ad-slot { height: 250px } .sticky-ad { position: static } }

/* layout */
.split { display: grid; gap: 40px; margin-top: 32px }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px } .side { border-left: 1px solid var(--line); padding-left: 24px } }
.side > * + * { margin-top: 32px }
.sticky-ad { position: sticky; top: calc(var(--hdr) + 60px) }
.block { margin-top: 40px }

/* shared pieces */
.sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px }
.sh h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em }
.sh a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--red); flex: none }
.sh a:hover { color: var(--red-ink) }
.sh a.btn { color: oklch(0.99 0.002 25); font-size: 14px }
.sh a.btn:hover { color: oklch(0.99 0.002 25) }
.sh.small h2 { font-size: 14px }
.sh-lede { margin: -8px 0 16px; font-size: 14px; color: var(--ink-2) }
.kicker { display: inline-block; font-size: 13px; font-weight: 500; color: var(--red) }
.kicker span { color: var(--ink-2); font-weight: 400 }
.meta { font-size: 13px; color: var(--ink-3) }
.t { font-weight: 500; color: var(--ink); text-wrap: pretty; transition: color .15s }
a:hover > .t, a:hover .t, .hero-lead:hover h2, .rcol-item:hover, .hero-related a:hover, .ranked a:hover, .focus-txt a:hover { color: var(--red) }
.dek { color: var(--ink-2); font-size: 15px; line-height: 1.5 }
.serif { font-family: var(--serif) }
.ph { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray) }
.ph.r169 { aspect-ratio: 16 / 9 } .ph.r43 { aspect-ratio: 4 / 3 } .ph.r34 { aspect-ratio: 3 / 4 }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1) }
a:hover .ph img { transform: scale(1.03) }
.ph.noimg::after { content: ''; position: absolute; inset: 0; background: url(/logo.svg) center / clamp(24px, 22%, 56px) no-repeat; opacity: .15 }
.thumbs { display: grid }
.thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line) }
.thumbs .thumb:first-child { padding-top: 0; border-top: 0 }
.thumb-txt { display: grid; gap: 4px }
.thumb .t { font-size: 15px; line-height: 1.4 }
.card { display: grid; gap: 10px; align-content: start }
.card .t { font-size: 16px; line-height: 1.35 }
.card.big .t { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.22; letter-spacing: -0.012em }
.card.big .dek { font-family: var(--serif); font-size: 15px }
.empty p { margin: 0 0 16px; font-size: 17px; color: var(--ink-2) }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--ink-2) }
.chips a:hover { border-color: var(--red); color: var(--red) }
.box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius) }
.box h2 { margin-bottom: 12px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .045em }
.tag-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none }
.tag-list a { display: inline-flex; min-height: 32px; align-items: center; font-size: 14px; font-weight: 500 }
.tag-list a:hover { color: var(--red) }
.ranked { margin: 0; padding: 0; list-style: none; counter-reset: rk }
.ranked li { counter-increment: rk; display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line) }
.ranked li:first-child { border-top: 0; padding-top: 0 }
.ranked li::before { content: counter(rk); font-size: 26px; font-weight: 900; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums }
.ranked a { font-size: 15px; font-weight: 500; line-height: 1.4 }
.avatar { display: inline-grid; place-items: center; flex: none; width: var(--s, 32px); height: var(--s, 32px); border-radius: 50%; background: var(--red-soft); color: var(--red-ink); font-size: calc(var(--s, 32px) * .38); font-weight: 700; object-fit: cover }

/* home */
.hero .main { display: grid; gap: 16px; align-content: start }
.hero-lead { display: grid; gap: 14px }
.hero-lead h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; transition: color .15s }
.hero-related { display: grid; gap: 12px }
@media (min-width: 720px) { .hero-related { grid-template-columns: repeat(3, 1fr); gap: 0 } .hero-related a + a { border-left: 1px solid var(--line); padding-left: 16px } .hero-related a { padding-right: 16px } }
.hero-related a { font-size: 15px; font-weight: 500; line-height: 1.4 }
@media (max-width: 719px) { .hero-related a { padding-top: 12px; border-top: 1px solid var(--line) } }
.trend, .mix { display: grid; gap: 24px }
@media (min-width: 720px) { .trend { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } .mix { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } .mix.rev .card { order: 2 } }
.dark { margin-top: 48px; padding: 32px 0 28px; background: var(--black); color: oklch(0.97 0.002 25) }
.dark .sh h2 { color: oklch(0.97 0.002 25) }
.dark-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
@media (max-width: 720px) { .dark-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter) } .dark-grid > * { scroll-snap-align: start } }
.dark .card .t { color: oklch(0.97 0.002 25); font-size: 17px; font-weight: 500 }
.dark .card:hover .t { color: oklch(0.8 0.1 27) }
.dark-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; font-size: 14px; font-weight: 500 }
.dark-more:hover { color: oklch(0.8 0.1 27) }
.columns { display: grid; gap: 20px }
@media (min-width: 720px) { .columns { grid-template-columns: repeat(3, 1fr); gap: 0 } .column + .column { border-left: 1px solid var(--line); padding-left: 16px } .column { padding-right: 16px } }
.column { display: grid; gap: 10px; align-content: start }
.byline-s { display: flex; align-items: center; gap: 8px; font-size: 14px }
.column .t { font-size: 15px; line-height: 1.4 }
.focus { display: grid; gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--black); color: oklch(0.97 0.002 25) }
@media (min-width: 720px) { .focus { grid-template-columns: 220px minmax(0, 1fr) } }
@media (max-width: 719px) { .focus .ph.r34 { aspect-ratio: 16 / 9 } }
.focus-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 500 }
.focus h2 { margin-bottom: 12px; font-size: 28px; font-weight: 900; letter-spacing: -0.02em }
.focus-txt a:not(.focus-more) { display: block; padding: 12px 0; border-top: 1px solid oklch(0.35 0.004 25); font-size: 15px; line-height: 1.4 }
.focus-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500 }
.focus-txt a:hover { color: oklch(0.8 0.1 27) }
.support { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(90deg, var(--red-soft), var(--paper) 60%) }
.support-brand { display: inline-flex; align-items: center; gap: 6px }
.support-brand img { height: 30px; width: auto } .support-brand .brand-name { font-size: 18px }
.support-txt { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2) }
.support-txt b { font-size: 17px; color: var(--ink) }
@media (max-width: 720px) { .support { grid-template-columns: 1fr } }
.rblock { margin-top: 40px }
.rblock:first-child { margin-top: 0 }
.rblock-lead { display: grid; gap: 16px }
@media (min-width: 720px) { .rblock-lead { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) } }
.rblock-txt { display: grid; gap: 10px; align-content: start }
.rblock-txt .t { font-size: clamp(20px, 2.3vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em }
.rblock-txt .dek { font-size: 16px; line-height: 1.6 }
.row3, .row4 { display: grid; gap: 20px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) }
.rgrid-wrap { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line) }
.rgrid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) }
.rcol-lead { margin-bottom: 4px }
.rcol-item { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; line-height: 1.4; transition: color .15s }

/* listing */
.page-head { padding: 12px 0 0 }
.crumbs { margin: 0 0 8px; font-size: 13px; color: var(--ink-3) }
.crumbs a:hover { color: var(--red) }
.page-head h1 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 900; letter-spacing: -0.025em }
.page-head p:not(.crumbs) { margin: 8px 0 0; max-width: 64ch; color: var(--ink-2) }
.list { display: grid }
.item { display: grid; grid-template-columns: clamp(110px, 30%, 240px) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line) }
.list > .item:first-child { border-top: 0; padding-top: 0 }
.item-txt { display: grid; gap: 6px; align-content: start }
.item .t { font-size: clamp(17px, 1.9vw, 20px); font-weight: 700; line-height: 1.28; letter-spacing: -0.008em }
.item .dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px }
@media (max-width: 560px) { .item .dek { display: none } }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line) }
.pager .count { font-size: 14px; color: var(--ink-3) }

/* article */
.ticker { display: flex; align-items: center; gap: 0; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); overflow-x: auto; scrollbar-width: none }
.ticker::-webkit-scrollbar { display: none }
.ticker-ico { flex: none; padding-right: 12px; color: var(--red) }
.ticker a { flex: 0 0 auto; max-width: 260px; padding: 0 16px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 500; line-height: 1.35 }
.ticker a:hover { color: var(--red) }
.article .kicker.big { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 14px }
.article .kicker a { color: var(--red) }
.article .kicker .topic, .article .kicker .type { color: var(--ink); font-weight: 500 }
.article .kicker .sep { color: var(--ink-3) }
.article h1 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 700; line-height: 1.16; letter-spacing: -0.022em }
.article > .dek { margin: 14px 0; max-width: 62ch; font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2) }
.article > .meta { margin: 0 0 6px }
.article > .meta b { color: var(--ink-2); font-weight: 500 }
.trust { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2) }
.trust:hover { color: var(--red) }
.article-body { display: grid; gap: 24px; margin-top: 24px }
@media (min-width: 720px) { .article-body { grid-template-columns: 48px minmax(0, 1fr) } }
.rail { display: flex; gap: 4px; align-self: start }
@media (min-width: 720px) { .rail { position: sticky; top: calc(var(--hdr) + 60px); flex-direction: column; padding: 8px 0; border: 1px solid var(--line); border-radius: var(--radius) } }
.rail a, .rail button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer }
.rail a:hover, .rail button:hover { color: var(--red) }
@media (max-width: 719px) { .rail { border-block: 1px solid var(--line); justify-content: space-between } }
.cover { position: relative; margin: 0 0 24px }
.cover img { width: 100%; border-radius: var(--radius) }
.cover figcaption { margin-top: 8px; font-size: 13px; font-style: italic; color: var(--ink-3) }
.zoom { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius); background: oklch(0.14 0.004 25 / .7); color: oklch(0.99 0.002 25); font-size: 12px; cursor: pointer }
.prose { --fs: 19px; max-width: 66ch; font-family: var(--serif); font-size: var(--fs); line-height: 1.65; color: oklch(0.22 0.004 25); font-optical-sizing: auto; text-wrap: pretty }
@media (max-width: 560px) { .prose { --fs: 18px } }
body.text-lg .prose { --fs: 22px }
.prose p { margin: 0 0 1em }
.article-main > .prose:first-of-type > p:first-of-type::first-letter, .article-main > figure + .prose > p:first-of-type::first-letter { float: left; margin: 6px 8px 0 0; font-size: 3.4em; font-weight: 700; line-height: .8; color: var(--ink) }
.prose h2 { margin: 1.4em 0 .5em; font: 700 1.15em/1.3 var(--sans); color: var(--ink) }
.prose h3 { margin: 1.2em 0 .5em; font: 700 1.05em/1.3 var(--sans) }
.prose a { color: var(--red); font-weight: 700 }
.prose blockquote { margin: 1.4em 0; font: 700 1.15em/1.45 var(--sans); color: var(--ink) }
.prose blockquote::before { content: '“'; display: block; height: .5em; font-size: 2.4em; line-height: 1; color: var(--red) }
.prose blockquote p { margin: 0 }
.prose img { margin: 1.4em 0; border-radius: var(--radius) }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0 }
.pills a { padding: 6px 12px; border-radius: var(--radius); background: var(--red-soft); color: var(--red-ink); font-size: 13px; font-weight: 500 }
.pills a:hover { background: var(--red); color: oklch(0.99 0.002 25) }
.author-box { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line) }
.author-box div { display: grid; font-size: 14px; color: var(--ink-3) }
.author-box b { font-size: 15px; color: var(--ink) }
.lightbox { max-width: 96vw; max-height: 92vh; padding: 0; border: 0; background: none }
.lightbox::backdrop { background: oklch(0.1 0.004 25 / .9) }
.lightbox img { max-height: 88vh; margin: auto }
.lightbox button { position: fixed; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer }

/* static pages */
.legal h1 { margin-bottom: 16px; font-size: clamp(28px, 3.8vw, 40px); font-weight: 900; letter-spacing: -0.025em }
.legal { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2) }
.legal .lede { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--ink) }
.legal h2 { margin: 1.6em 0 .4em; font-size: 20px; color: var(--ink) }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px }
.legal li { margin-bottom: 6px }
.masthead-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 16px; margin: 0 }
.masthead-list dt, .masthead-list dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line) }
.masthead-list dt { color: var(--ink-3); font-size: 15px }
.masthead-list dd { color: var(--ink); font-weight: 500 }
.page-nav { display: grid }
.page-nav a { display: flex; align-items: center; min-height: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2) }
.page-nav a[aria-current] { color: var(--red); font-weight: 500 }
.tip-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 }
.tip-actions a { text-decoration: none !important }
.tip-actions .btn-red { color: oklch(0.99 0.002 25) }

/* footer */
.foot { margin-top: 64px; background: var(--foot); color: oklch(0.85 0.003 25); font-size: 14px }
.foot .wrap { padding: 40px 0 24px }
.foot h2 { margin-bottom: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: oklch(0.98 0.002 25) }
.foot-top { display: grid; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid oklch(0.36 0.004 25) }
@media (min-width: 860px) { .foot-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) } }
.manifesto { margin: 0 }
.manifesto blockquote { margin: 0; font-size: 15px; font-style: italic; line-height: 1.6; color: oklch(0.95 0.002 25) }
.manifesto figcaption { margin-top: 8px; font-weight: 700; font-style: italic; color: oklch(0.98 0.002 25) }
.socials { display: flex; flex-wrap: wrap; gap: 4px }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: oklch(0.95 0.002 25) }
.socials a:hover { background: oklch(0.32 0.004 25) }
.stores { display: grid; gap: 10px; justify-items: start }
.store { display: grid; min-width: 150px; padding: 6px 14px; border: 1px solid oklch(0.6 0.003 25); border-radius: 8px; background: var(--black); color: oklch(0.98 0.002 25); font-size: 16px; font-weight: 500; line-height: 1.2 }
.store small { font-size: 10px; font-weight: 400 }
.store:hover { border-color: oklch(0.98 0.002 25) }
.foot-mid { display: grid; gap: 32px; padding: 28px 0; border-bottom: 1px solid oklch(0.36 0.004 25) }
@media (min-width: 860px) { .foot-mid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) } }
.foot-links { display: grid; gap: 4px 20px }
.foot-links.cols-4 { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) }
.foot-links.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.foot-links a { display: flex; align-items: center; min-height: 32px; color: oklch(0.85 0.003 25) }
.foot-links a:hover { color: oklch(0.98 0.002 25) }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 13px; color: oklch(0.72 0.003 25) }
.foot-base .brand { color: oklch(0.98 0.002 25) }
.foot-base .brand img { height: 28px } .foot-base .brand-name { font-size: 18px }

/* mobile tab bar, sticky ad, app sheet, cookie */
.tabbar { display: none }
@media (max-width: 720px) {
  body { padding-bottom: 60px }
  .tabbar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); height: 60px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--paper) }
  .tabbar a, .tabbar button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: none; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer }
  .tabbar [aria-current] { color: var(--red) }
}
.ad-sticky { position: fixed; inset: auto 0 0; z-index: 44; padding: 4px 0 6px; border-top: 1px solid var(--line); background: var(--paper) }
.ad-sticky .ad { margin: 0 }
.ad-sticky .ad-label { margin-bottom: 2px }
.ad-sticky > button { position: absolute; right: 8px; top: -28px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50% 50% 0 0; background: var(--paper); cursor: pointer }
@media (max-width: 720px) { .ad-sticky { bottom: 60px } }
@media (min-width: 721px) { .ad-sticky { display: none !important } }
.app-sheet { position: fixed; left: 12px; right: 12px; bottom: 72px; z-index: 55; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 10px 40px oklch(0.14 0.004 25 / .25); animation: sheet-in .35s cubic-bezier(.22, 1, .36, 1) }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0 } }
.app-sheet img { border-radius: 10px }
.app-sheet p { margin: 0; font-weight: 700; line-height: 1.3 }
.app-sheet small { color: var(--ink-3) }
.app-sheet-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px }
@media (min-width: 721px) { .app-sheet { display: none !important } }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--black); color: oklch(0.92 0.002 25); font-size: 14px }
.cookie p { margin: 0; max-width: 72ch }
.cookie a { color: oklch(0.98 0.002 25); text-decoration: underline }
.cookie-actions { display: flex; gap: 8px }
.cookie .btn-ghost { border-color: oklch(0.5 0.003 25); color: oklch(0.95 0.002 25) }

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