/* =========================================================
   STANDUPLY — design system
   Light editorial magazine + stage-light accent, dark mode
   ========================================================= */

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #141414;
  --ink-2: #4a4a48;
  --muted: #7a7873;
  --line: #e6e3dc;
  --accent: #d6411a;
  --accent-ink: #ffffff;
  --glow: 38 100% 62%;
  --dark: #121212;
  --dark-ink: #f4f2ee;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.06);

  --c-news: #d6411a;
  --c-interviews: #2563eb;
  --c-specials: #c0266d;
  --c-legends: #9a6a00;
  --c-rising-stars: #0b8457;
  --c-events: #0e7490;
  --c-reviews: #7c3aed;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 10px;
  color-scheme: light;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }

:root[data-theme="dark"] {
  --paper: #0f0f10;
  --surface: #18181a;
  --surface-2: #202023;
  --ink: #f2f0ec;
  --ink-2: #c4c1bb;
  --muted: #8e8b85;
  --line: #2c2b2e;
  --accent: #ff6a3d;
  --accent-ink: #160803;
  --dark: #050505;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --c-news: #ff7a4f;
  --c-interviews: #6ea0ff;
  --c-specials: #f06aa6;
  --c-legends: #e2b23c;
  --c-rising-stars: #3fd39a;
  --c-events: #3cc3dc;
  --c-reviews: #b18cff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f10; --surface: #18181a; --surface-2: #202023; --ink: #f2f0ec; --ink-2: #c4c1bb;
    --muted: #8e8b85; --line: #2c2b2e; --accent: #ff6a3d; --accent-ink: #160803; --dark: #050505;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --c-news: #ff7a4f; --c-interviews: #6ea0ff; --c-specials: #f06aa6; --c-legends: #e2b23c;
    --c-rising-stars: #3fd39a; --c-events: #3cc3dc; --c-reviews: #b18cff;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- ticker ---------- */
.ticker { background: var(--dark); color: var(--dark-ink); font-size: 12px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.ticker__inner { display: flex; align-items: center; }
.ticker__label { flex: none; background: var(--accent); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; font-size: 11px; position: relative; z-index: 1; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { white-space: nowrap; padding: 8px 18px; color: inherit; opacity: .85; }
.ticker__track a:hover { opacity: 1; color: hsl(var(--glow)); }
.ticker__track a::before { content: "●"; color: var(--accent); margin-right: 10px; font-size: 8px; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
.menu-btn { display: none; }

@media (max-width: 1099px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; margin: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - 64px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { font-size: 15px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .header-actions { margin-left: auto; }
}

/* ---------- masthead ---------- */
.masthead { padding-top: 28px; }
.masthead__word {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 21vw, 13.5rem); line-height: .82; letter-spacing: -0.005em;
  margin: 0; white-space: nowrap; text-align: center;
}
.masthead__word span { color: var(--accent); }
.masthead__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 14px; padding: 8px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.masthead__meta strong { color: var(--ink); }
@media (max-width: 599px) {
  .masthead { padding-top: 20px; }
  .masthead__meta { justify-content: center; text-align: center; font-size: 11px; gap: 4px 12px; }
  .masthead__meta > :last-child { display: none; }
}

/* ---------- layout ---------- */
main { display: block; }
.section { padding-top: 40px; padding-bottom: 40px; }
.section + .section { padding-top: 8px; }
@media (max-width: 599px) { .section { padding-top: 28px; padding-bottom: 28px; } }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 959px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.sidebar { display: grid; gap: 20px; }
@media (min-width: 960px) { .sidebar--sticky { position: sticky; top: 84px; } }

.grid { display: grid; gap: 28px 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 959px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 24px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1; letter-spacing: .005em; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.more-link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.more-link::after { content: "→"; transition: transform .2s; }
.more-link:hover::after { transform: translateX(3px); }

/* ---------- placeholder art (swap for licensed photos) ---------- */
.ph {
  --h: 30;
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at var(--mx, 50%) -10%, hsl(var(--h) 95% 72% / .85), transparent 55%),
    linear-gradient(160deg, hsl(var(--h) 45% 26%), hsl(calc(var(--h) + 35) 55% 9%));
  isolation: isolate;
}
.ph::before { /* stage floor */
  content: ""; position: absolute; inset: auto 0 0 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
  z-index: -1;
}
.ph::after { /* microphone silhouette */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 18%; height: 78%; transform: translateX(-50%);
  background: no-repeat center bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120' fill='%23000' fill-opacity='.55'%3E%3Crect x='14' y='0' width='12' height='22' rx='6'/%3E%3Crect x='18.5' y='22' width='3' height='8'/%3E%3Cpath d='M19 30h2l1 82h-4z'/%3E%3Cellipse cx='20' cy='116' rx='14' ry='4'/%3E%3C/svg%3E");
  transition: transform .5s ease;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--photo { background: #1a1a1a; }
.ph--photo::before, .ph--photo::after { display: none; }
.ph--photo .ph__bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(22px) saturate(1.1) brightness(.55); z-index: 0; }
.ph--photo .ph__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; z-index: 1; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 21 / 10; }
.ph--sq { aspect-ratio: 1; }
.ph__label { position: absolute; left: 10px; bottom: 10px; z-index: 1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }

/* ---------- badges & meta ---------- */
.badge { --c: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.badge[data-cat="news"] { --c: var(--c-news); }
.badge[data-cat="interviews"] { --c: var(--c-interviews); }
.badge[data-cat="specials"] { --c: var(--c-specials); }
.badge[data-cat="legends"] { --c: var(--c-legends); }
.badge[data-cat="rising-stars"] { --c: var(--c-rising-stars); }
.badge[data-cat="events"] { --c: var(--c-events); }
.badge[data-cat="reviews"] { --c: var(--c-reviews); }
.badge--pill { padding: 5px 10px 5px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.meta > * + *::before { content: "·"; margin-right: 12px; color: var(--line); }
.meta .badge + *::before { margin-right: 12px; }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__title { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__dek { color: var(--ink-2); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title a { color: var(--accent); }
.card:hover .ph::after { transform: translateX(-50%) scale(1.04); }
.card .ph { transition: box-shadow .3s ease, transform .3s ease; }
.card:hover .ph { box-shadow: 0 12px 30px -10px hsl(var(--h) 80% 45% / .55); transform: translateY(-2px); }

.card--feature { text-align: center; gap: 16px; }
.card--feature .meta { justify-content: center; }
.card--feature .card__title { font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 22ch; margin: 0 auto; }
.card--feature .card__dek { font-size: 16px; max-width: 58ch; margin: 0 auto; -webkit-line-clamp: 4; }
.card--feature .ph { aspect-ratio: 16 / 9; }

.card--row { flex-direction: row; align-items: center; gap: 14px; }
.card--row .ph { width: 92px; flex: none; aspect-ratio: 1; border-radius: 8px; }
.card--row .ph::after { width: 24%; }
.card--row .card__title { font-size: 14.5px; }

.card--overlay { border-radius: var(--radius); overflow: hidden; }
.card--overlay .ph { aspect-ratio: 4 / 5; border-radius: 0; }
.card--overlay .card__body { position: absolute; inset: auto 0 0 0; padding: 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); display: grid; gap: 8px; }
.card--overlay .card__title { font-size: 19px; color: #fff; }
.card--overlay .meta { color: rgba(255,255,255,.75); }
.card--overlay .badge { --c: #fff !important; }
.card--overlay:hover .card__title a { color: hsl(var(--glow)); }

/* ---------- widgets (sidebar) ---------- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget__title { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.widget__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.person { display: flex; align-items: center; gap: 12px; position: relative; }
.person__name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.person__name a::after { content: ""; position: absolute; inset: 0; }
.person__sub { font-size: 12px; color: var(--muted); }
.avatar {
  --h: 30; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; color: #fff; letter-spacing: .02em;
  background: radial-gradient(circle at 50% 0%, hsl(var(--h) 95% 70%), transparent 70%), linear-gradient(160deg, hsl(var(--h) 50% 32%), hsl(calc(var(--h) + 35) 55% 12%));
}
.avatar--lg { width: 120px; height: 120px; font-size: 44px; }
.avatar--md { width: 64px; height: 64px; font-size: 24px; }
.avatar--photo { overflow: hidden; padding: 0; background: #222; }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit, .photo-credits { font-size: 12px; color: var(--muted); margin-top: 8px; }
.photo-credits summary { cursor: pointer; }
.core-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.core-card__head { display: flex; align-items: center; gap: 16px; }
.core-card__head .avatar { margin: 0; }
.core-card__name { font-family: var(--font-display); font-size: 26px; line-height: 1.05; margin: 0; letter-spacing: .01em; }
.core-card__name a { color: var(--ink); }
.core-card__name a:hover { text-decoration: underline; }
.core-card__bio { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.core-card__link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink); align-self: flex-start; }
.core-card__link:hover { text-decoration: underline; }
.spot { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.spot:last-child { border-bottom: 0; }
.spot__media { width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; }
.spot__media.ph { aspect-ratio: 4 / 5; }
.spot__kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spot__name { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.02; margin: 6px 0 12px; }
.spot__name a { color: var(--ink); }
.spot__name a:hover { text-decoration: underline; }
.spot__bio { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.spot__latest { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
/* Ad slots: space is reserved only for real ad units so the page does not jump (CLS) */
.ad-slot { display: block; max-width: 100%; margin: 36px auto; text-align: center; overflow: hidden; clear: both; }
.ad-slot--inline { min-height: 280px; }
.ad-slot--sidebar { min-height: 600px; margin: 24px 0; }
.ad-slot--marker { min-height: 0; margin: 0; }
.ad-slot__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot ins.adsbygoogle { max-width: 100%; }
@media (max-width: 900px) { .ad-slot--sidebar { min-height: 280px; } }
@media (max-width: 599px) { .ad-slot--inline { min-height: 250px; margin: 28px auto; } }
/* Adsterra units: space is reserved so the page does not jump when an ad loads. */
.ad-slot--rect { min-height: 268px; }
.ad-slot--leader { min-height: 268px; }
@media (min-width: 768px) { .ad-slot--leader { min-height: 108px; } }
.ad-slot--native { margin: 40px 0 8px; text-align: left; }
.ad-slot iframe { max-width: 100%; border: 0; display: block; margin: 0 auto; }
.ad-slot[hidden] { display: none !important; }
.ad-slot--leader iframe[data-media="(min-width: 768px)"] { display: none; }
@media (min-width: 768px) {
  .ad-slot--leader iframe[data-media="(min-width: 768px)"] { display: block; }
  .ad-slot--leader iframe[data-media="(max-width: 767px)"] { display: none; }
}
.sidebar .ad-slot--rect { margin: 0 0 24px; }
.blog-post { max-width: 72ch; margin: 0 0 32px; }
.blog-post p { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin: 0 0 14px; }
.blog-post a { color: var(--ink); text-decoration: underline; }
.spot__text { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 12px; }
.spot__meta { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.spot__latest a { text-decoration: underline; }
@media (max-width: 640px) { .spot { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font-weight: 500; transition: .15s; }
.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag.is-active, .tag[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button.tag { cursor: pointer; }

.widget--dark { background: var(--dark); color: var(--dark-ink); border-color: transparent; position: relative; overflow: hidden; }
.widget--dark::before { content: ""; position: absolute; inset: -40% -20% auto; height: 90%; background: radial-gradient(closest-side, hsl(var(--glow) / .35), transparent); pointer-events: none; }
.widget--dark .widget__title { color: rgba(255,255,255,.6); }
.widget--dark .widget__title::after { background: rgba(255,255,255,.15); }

/* ---------- comedians rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 599px) { .rail { grid-auto-columns: 62%; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); } }
.c-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; transition: .25s; overflow: hidden; }
.c-card::before { content: ""; position: absolute; inset: -50% -30% auto; height: 80%; background: radial-gradient(closest-side, hsl(var(--h, 30) 95% 65% / .28), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.c-card:hover::before { opacity: 1; }
.c-card .avatar { margin-bottom: 8px; }
.c-card__name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.c-card__name a::after { content: ""; position: absolute; inset: 0; }
.c-card__style { font-size: 12px; color: var(--muted); }
.c-card__tag { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.era { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.era--legend { background: color-mix(in srgb, var(--c-legends) 16%, transparent); color: var(--c-legends); }
.era--rising { background: color-mix(in srgb, var(--c-rising-stars) 16%, transparent); color: var(--c-rising-stars); }

/* ---------- most read ---------- */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; display: grid; gap: 0; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.ranked li::before { content: counter(rank, decimal-leading-zero); font-family: var(--font-display); font-size: 40px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ranked li:hover::before { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.ranked a::after { content: ""; position: absolute; inset: 0; }
.ranked h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.ranked--compact li { grid-template-columns: 34px 1fr; padding: 12px 0; }
.ranked--compact li::before { font-size: 24px; }
.ranked--compact h3 { font-size: 14px; margin: 0; }
.ranked--compact li:last-child { border-bottom: 0; padding-bottom: 0; }
.ranked--compact li:first-child { padding-top: 0; }
@media (min-width: 900px) { .ranked--cols { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* ---------- events ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { position: relative; display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 14px; transition: .2s; }
.event:hover { border-color: var(--ink); }
.event__date { text-align: center; background: var(--dark); color: var(--dark-ink); border-radius: 8px; padding: 8px 0; line-height: 1; }
.event__date .m { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: hsl(var(--glow)); text-transform: uppercase; }
.event__date .d { display: block; font-family: var(--font-display); font-size: 30px; margin-top: 4px; }
.event__title { font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.event__title a::after { content: ""; position: absolute; inset: 0; }
.event__sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.event__cta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; white-space: nowrap; }
@media (max-width: 599px) {
  .event { grid-template-columns: 60px 1fr; gap: 14px; }
  .event__cta { display: none; }
  .event__date .d { font-size: 26px; }
}

/* ---------- newsletter ---------- */
.newsletter { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-ink); border-radius: calc(var(--radius) * 1.6); padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.newsletter::before { content: ""; position: absolute; width: 520px; height: 520px; left: -120px; top: -300px; background: radial-gradient(closest-side, hsl(var(--glow) / .45), transparent); pointer-events: none; }
.newsletter h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; line-height: .95; position: relative; }
.newsletter p { color: rgba(255,255,255,.72); margin: 12px 0 0; position: relative; }
@media (max-width: 799px) { .newsletter { grid-template-columns: 1fr; } }
.form-inline { display: flex; gap: 8px; position: relative; flex-wrap: wrap; }
.form-inline input { flex: 1 1 200px; min-width: 0; height: 50px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; padding: 0 20px; }
.form-inline input::placeholder { color: rgba(255,255,255,.5); }
.form-note { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 10px; position: relative; }
.form-msg { font-size: 14px; margin-top: 10px; color: hsl(var(--glow)); font-weight: 600; min-height: 1.4em; position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 99px; border: 0; cursor: pointer; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; transition: .15s; }
.btn:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.widget--dark .form-inline input { height: 44px; }
.widget--dark .btn { height: 44px; width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); margin-top: 64px; padding: 56px 0 28px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 799px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .logo { color: #fff; font-size: 28px; }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 12px; max-width: 34ch; }
.footer-col h3 { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.socials a:hover { border-color: #fff; }
.socials svg { width: 16px; height: 16px; }
.footer-word { font-family: var(--font-display); font-size: clamp(3rem, 16vw, 12rem); line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); margin: 48px 0 24px; white-space: nowrap; overflow: hidden; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.demo-note { color: hsl(var(--glow)); }

/* ---------- page header (listing pages) ---------- */
.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-head__kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 10vw, 6rem); line-height: .9; letter-spacing: 0; }
.page-head p { color: var(--ink-2); max-width: 60ch; margin: 14px 0 0; font-size: 17px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- directory filters ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; height: 52px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); padding: 0 20px 0 46px; font-size: 16px; }
.search-field input:focus { outline: none; border-color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row__label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; min-width: 44px; }
.result-count { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
[hidden] { display: none !important; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 60; }
.article-head { max-width: 820px; margin: 0 auto; text-align: center; padding: 40px 0 28px; }
.article-head .meta { justify-content: center; }
.article-head h1 { font-size: clamp(1.75rem, 5.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 16px 0; }
.article-head .dek { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); line-height: 1.5; margin: 0 auto; max-width: 62ch; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; text-align: left; }
.byline .avatar { width: 44px; height: 44px; font-size: 16px; }
.byline strong { display: block; font-size: 14.5px; }
.byline span { font-size: 12.5px; color: var(--muted); }
.article-hero { margin-bottom: 40px; }
.article-hero .ph { aspect-ratio: 21 / 9; }
@media (max-width: 599px) { .article-hero .ph { aspect-ratio: 4 / 3; } }
.article-hero figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 680px) 1fr; gap: 48px; }
.article-layout > .prose { grid-column: 2; }
.article-aside { position: sticky; top: 96px; align-self: start; }
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
  .article-layout > .prose { grid-column: 1; }
  .article-aside { position: static; }
}
.toc { font-size: 14px; }
.toc summary { cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); list-style: none; padding: 12px 0; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 16px; }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); line-height: 1.35; }
.toc a.is-active { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
@media (max-width: 1023px) { .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; background: var(--surface); } .toc ol { margin-bottom: 14px; } }
@media (min-width: 1024px) { .toc summary { pointer-events: none; } .toc summary::after { content: none; } }

.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.share__label { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 16px; height: 16px; }
.share .copied { border-color: var(--c-rising-stars); color: var(--c-rising-stars); }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.55em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.9em; }
.prose h3 { font-size: 1.2em; font-weight: 800; margin-top: 1.5em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 1.18em; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.prose .lead::first-letter { font-family: var(--font-display); float: left; font-size: 4.4em; line-height: .8; padding: 6px 10px 0 0; color: var(--accent); }
@media (max-width: 599px) { .prose { font-size: 17px; } }
.callout { font-size: 14.5px; line-height: 1.6; background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.sources { font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 20px; }
.sources h2 { font-size: 13px !important; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px !important; }
.sources ol { margin: 0; color: var(--ink-2); }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 14.5px; }
.author-box p { margin: 4px 0 0; color: var(--muted); }

/* ---------- profile ---------- */
.profile-hero { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-ink); }
.profile-hero::before { content: ""; position: absolute; inset: -60% -10% auto; height: 120%; background: radial-gradient(closest-side, hsl(var(--h, 30) 95% 60% / .45), transparent); pointer-events: none; }
.profile-hero__inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 48px 0; }
@media (max-width: 699px) { .profile-hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; padding: 36px 0; } }
.profile-hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: .92; }
.profile-hero .tagline { font-size: 18px; color: rgba(255,255,255,.75); margin: 10px 0 16px; }
.profile-hero .crumbs { color: rgba(255,255,255,.55); }
@media (max-width: 699px) { .profile-hero .crumbs, .profile-hero .tags { justify-content: center; } }
.profile-hero .tag { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.timeline { list-style: none; padding: 0 !important; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 34px; font-size: 16px; }
.timeline li + li { margin-top: 16px !important; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .02em; line-height: 1.2; }
.specials-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specials-table th, .specials-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.specials-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }

/* ---------- special cards ---------- */
.s-card .ph { aspect-ratio: 3 / 4; }
.s-card .ph__poster { position: absolute; inset: auto 0 0; padding: 16px; z-index: 1; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); }
.s-card .ph__poster b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; }
.s-card .ph__poster small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.s-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.s-info strong { color: var(--ink); font-weight: 700; }

/* ---------- static pages / forms ---------- */
.page-narrow { max-width: 760px; margin: 0 auto; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 12px 14px; font-size: 16px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form .form-msg { color: var(--c-rising-stars); }

/* ---------- search overlay ---------- */
.search-dialog { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; overflow-y: auto; }
.search-dialog.is-open { display: block; }
.search-dialog__inner { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.search-dialog__top { display: flex; gap: 8px; align-items: center; }
.search-dialog__top .search-field { flex: 1; }
.search-dialog__top input { height: 60px; font-size: 20px; }
.search-results { list-style: none; margin: 24px 0 0; padding: 0; }
.search-results li a { display: grid; gap: 4px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.search-results li a:hover, .search-results li a.is-focus { background: var(--surface-2); color: var(--ink); }
.search-results .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.search-results .t { font-weight: 700; font-size: 17px; }
.search-results mark { background: hsl(var(--glow) / .45); color: inherit; border-radius: 2px; }
.search-hint { font-size: 13px; color: var(--muted); margin-top: 16px; }
kbd { font: 600 11px var(--font-body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: var(--surface); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0 32px; }
.notfound b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(7rem, 34vw, 16rem); line-height: .85; color: var(--accent); }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  *, *::before, *::after { transition: none !important; }
}
