/* ═══════════════════════════════════════════════════════════════
   CLASYCAL — Old masters. New problems.
   Bright gallery: clean off-white walls, gilded frames, honest museum
   plaques, one sharp internet red. Red = action, gold = material.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/gloock-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/gloock-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/schibsted-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/schibsted-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/schibsted-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg:        oklch(0.985 0.004 82);
  --surface:   oklch(0.958 0.008 76);
  --surface2:  oklch(0.925 0.012 72);
  --ink:       oklch(0.16 0.018 38);
  --muted:     oklch(0.4 0.022 50);
  --neon:      oklch(0.49 0.17 28);
  --neon-hi:   oklch(0.44 0.16 28);
  --gold:      oklch(0.55 0.11 78);
  --gold-btn:  oklch(0.45 0.085 72);
  --gold-btn-hi: oklch(0.39 0.075 70);
  --gold-dim:  oklch(0.42 0.08 72);
  --gold-dark: oklch(0.31 0.055 70);
  --line:      oklch(0.84 0.016 72);
  --plaque:    oklch(0.935 0.014 78);

  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --space-2: clamp(1rem, 2vw, 1.5rem);
  --space-3: clamp(2rem, 4vw, 3.5rem);
  --space-4: clamp(3rem, 7vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 3.75rem;

  --z-frieze: 1;
  --z-head: 20;
  --z-progress: 25;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; text-wrap: balance; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
a { color: inherit; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--neon); color: oklch(0.99 0.004 82); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 3px; }

.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: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--bg);
  font-weight: 700; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 0.6rem; }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.75em 1.35em;
  font: 700 0.97rem/1.1 var(--font-body);
  text-decoration: none; text-align: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[hidden] { display: none; }
.btn-neon { background: var(--neon); color: oklch(0.99 0.004 82); }
.btn-neon:hover { background: var(--neon-hi); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: oklch(1 0 0 / 0.6); }
.btn-ghost:hover { border-color: var(--muted); background: oklch(0.95 0.006 80); }
.btn-gold { background: var(--gold-btn); color: oklch(0.99 0.004 82); }
.btn-gold:hover { background: var(--gold-btn-hi); }
.btn-small { min-height: 2.5rem; padding: 0.6em 1.1em; font-size: 0.9rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-weight: 700; color: var(--neon); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-underline-offset: 0.2em;
}
.text-link svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: var(--z-head);
  background: oklch(0.985 0.004 82 / 0.95);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: 82rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  min-height: var(--head-h);
  padding: 0.45rem var(--gutter);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; }
.site-nav a {
  font-size: 0.95rem; font-weight: 700; color: var(--muted);
  text-decoration: none; padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav .nav-follow { display: none; }
.head-cta { min-height: 2.5rem; padding: 0.5em 1em; font-size: 0.9rem; }
.head-count { opacity: 0.8; font-weight: 600; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: -0.4rem;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 1.6rem; height: 1.6rem; }
.nav-toggle-open { display: inline-flex; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

@media (max-width: 63.99rem) {
  .head-inner { gap: 0.4rem 0.75rem; }
  .site-nav { order: 3; width: 100%; gap: 0.1rem 1rem; padding-bottom: 0.35rem; }
  .site-nav a { font-size: 0.9rem; }
  .head-count { display: none; }
  /* with JS: collapse into a menu panel */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px oklch(0.2 0.03 60 / 0.12);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.25s var(--ease); }
  .js .site-nav a {
    font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--ink);
    padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  }
  .js .site-nav a[aria-current="page"] { color: var(--neon); border-bottom-color: var(--line); }
  .js .site-nav .nav-follow {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 1rem; border: 0; border-radius: 999px;
    background: var(--neon); color: oklch(0.99 0.004 82);
    font: 700 1rem/1 var(--font-body); padding: 0.95rem 1rem;
  }
  .js .site-nav .nav-follow svg { width: 1.2rem; height: 1.2rem; }
}
@media (max-width: 22rem) { .head-cta span { display: none; } }

/* ── Gilded frames, plaques, bubbles ─────────────────────────── */
.frame {
  --frame-w: clamp(9px, 1.3vw, 16px);
  display: block;
  padding: var(--frame-w);
  background: linear-gradient(140deg,
      oklch(0.85 0.11 88), oklch(0.55 0.09 78) 28%,
      oklch(0.82 0.12 86) 52%, oklch(0.45 0.07 75) 78%,
      oklch(0.75 0.11 84));
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 2px oklch(0.32 0.05 75),
    0 14px 30px oklch(0.2 0.03 60 / 0.16),
    0 3px 8px oklch(0.2 0.03 60 / 0.12);
  text-decoration: none;
}
.frame .art {
  display: block; position: relative; overflow: hidden;
  outline: 3px solid oklch(0.22 0.03 75);
  background: var(--surface);
}
.frame .art img { width: 100%; }
.frame-thumb { --frame-w: 7px; }

.plaque {
  display: grid; gap: 0.1rem;
  width: fit-content; max-width: 100%;
  margin: 0.85rem auto 0;
  padding: 0.5rem 1rem;
  text-align: center;
  background: var(--plaque);
  border: 1px solid oklch(0.74 0.04 76);
  border-radius: 2px;
  box-shadow: 0 2px 6px oklch(0.25 0.03 60 / 0.12);
  font-size: 0.82rem; line-height: 1.4;
}
.plaque strong { font: 400 0.98rem/1.25 var(--font-display); color: var(--gold-dark); letter-spacing: 0.01em; }
.plaque span { color: var(--muted); font-weight: 600; }
.plaque em { color: var(--gold-dim); font-style: italic; font-weight: 700; }

.bubble {
  position: absolute; max-width: 80%;
  padding: 0.55em 0.85em;
  background: oklch(0.985 0.002 90); color: oklch(0.16 0 0);
  font: 800 clamp(0.8rem, 1.05vw, 0.98rem)/1.3 var(--font-body);
  border-radius: 10px;
  box-shadow: 0 3px 12px oklch(0.2 0.03 60 / 0.18);
  text-wrap: balance;
}
.bubble-b { bottom: 6%; left: 50%; transform: translateX(-50%) rotate(0.8deg); text-align: center; width: max-content; }

/* ── Page heads & crumbs ─────────────────────────────────────── */
.page-head { padding: var(--space-3) 0 var(--space-2); max-width: 48rem; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.page-head p { margin-top: 0.9rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 500; max-width: 40rem; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.crumbs { padding-top: 1.1rem; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs > span:last-child:not([aria-hidden]) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding-block: var(--space-4) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); padding-block: var(--space-4); margin-top: var(--space-4); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: var(--space-2); }
.section-title { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
.section-lede { color: var(--muted); max-width: 40rem; margin: -0.4rem 0 var(--space-2); font-weight: 500; }
.section-more { margin-top: var(--space-2); }

/* ── Home hero ───────────────────────────────────────────────── */
.hero {
  display: grid; gap: var(--space-3);
  align-items: center;
  padding-block: 1.6rem var(--space-4);
}
@media (max-width: 30rem) {
  .hero-sub { font-size: 1rem; margin-top: 0.8rem; }
  .hero-actions { margin-top: 1.1rem; gap: 0.5rem; }
  .hero-actions .btn { padding-inline: 1rem; font-size: 0.92rem; }
}
.hero-title { font-size: clamp(2.7rem, 10vw, 5.6rem); line-height: 0.98; }
.hero-title span { display: block; }
.line-neon { color: var(--neon); }
.hero-sub { margin-top: 1.1rem; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

@keyframes neon-flicker {
  0%, 100% { opacity: 1; } 8% { opacity: 0.35; } 10% { opacity: 1; }
  22% { opacity: 0.6; } 24% { opacity: 1; } 42% { opacity: 0.85; } 44% { opacity: 1; }
}
[data-flicker].lit { animation: neon-flicker 1.6s steps(1) 1 both; }

.motd { margin: 0; width: 100%; max-width: 30rem; justify-self: center; }
.motd-label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; justify-content: center;
  font: 400 1.15rem/1.2 var(--font-display); color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.motd-label span { font: 600 0.85rem/1 var(--font-body); color: var(--muted); }
.motd .frame { transform: rotate(-0.6deg); transition: transform 0.5s var(--ease); }
.motd .frame:hover { transform: rotate(0deg) translateY(-4px); }
.motd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.5rem; margin-top: 1rem; font-size: 0.95rem; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); min-height: min(82vh, 52rem); }
}

/* ── Frieze ──────────────────────────────────────────────────── */
.frieze { overflow: hidden; background: var(--gold-dark); padding: 0.7rem 0; position: relative; z-index: var(--z-frieze); }
.frieze-track { display: flex; gap: 2.2rem; width: max-content; animation: frieze-scroll 40s linear infinite; }
.frieze-track span { font: 400 1.02rem/1.2 var(--font-display); color: oklch(0.97 0.01 82); white-space: nowrap; }
.frieze-track i { color: oklch(0.82 0.07 82); font-style: normal; }
@keyframes frieze-scroll { to { transform: translateX(-50%); } }

/* ── Meme grid & cards ───────────────────────────────────────── */
.meme-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 0.9rem;
  align-items: start;
}
@media (min-width: 45rem) { .meme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.6rem; } }
@media (min-width: 70rem) { .meme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .meme-grid-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem 1.1rem; } }
.meme-card[hidden] { display: none; }
.meme-link { display: block; text-decoration: none; color: inherit; border-radius: 4px; }
.meme-link .frame { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.meme-link:hover .frame {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: inset 0 0 0 2px oklch(0.32 0.05 75), 0 22px 40px oklch(0.2 0.03 60 / 0.22);
}
.meme-cap {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 0.75rem;
  font: 650 0.95rem/1.35 var(--font-body);
  text-wrap: pretty;
}
.meme-by { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
@media (max-width: 30rem) {
  .meme-cap { font-size: 0.88rem; }
  .meme-by { font-size: 0.76rem; }
}

/* chips & filters */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-row[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2.4rem; padding: 0.4rem 0.95rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: oklch(1 0 0 / 0.7);
  font: 650 0.9rem/1.1 var(--font-body); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--gold-dim); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-n { font-weight: 500; opacity: 0.75; font-size: 0.85em; }
.filters { padding: 0.25rem 0 var(--space-2); display: grid; gap: 0.9rem; }
.filters[hidden] { display: none; }
@media (max-width: 44.99rem) {
  .chip-scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0.2rem var(--gutter) 0.4rem;
    scroll-padding-inline: var(--gutter);
  }
  .chip-scroll::-webkit-scrollbar { display: none; }
}
.filter-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.select-wrap { position: relative; display: inline-block; max-width: 100%; }
.select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  min-height: 2.6rem; padding: 0.45rem 2.6rem 0.45rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: oklch(1 0 0 / 0.8);
  font: 650 0.92rem/1.2 var(--font-body); color: var(--ink); max-width: 100%;
}
.result-count { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.empty-state { padding: var(--space-3) 0; color: var(--muted); font-size: 1.05rem; }
.empty-state[hidden] { display: none; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lb {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: oklch(0.17 0.012 60 / 0.97); color: oklch(0.97 0.006 82);
  overscroll-behavior: contain;
}
.lb::backdrop { background: oklch(0.12 0.01 60 / 0.6); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem 0.4rem 1rem; }
.lb-count { font-size: 0.88rem; font-weight: 600; opacity: 0.85; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 0.75rem; touch-action: pan-y; }
.lb-figure { margin: 0; display: grid; justify-items: center; min-height: 0; }
.lb-figure .frame { --frame-w: clamp(6px, 1vw, 12px); }
.lb-img { width: auto; max-width: min(88vw, 40rem); max-height: calc(100dvh - 16rem); object-fit: contain; transition: opacity 0.15s ease; }
.lb-img.is-swapping { opacity: 0.25; }
.lb-info { padding: 0.75rem 1rem calc(0.9rem + env(safe-area-inset-bottom)); max-width: 44rem; margin-inline: auto; width: 100%; text-align: center; }
.lb-text { font: 400 clamp(1.05rem, 2.4vw, 1.35rem)/1.3 var(--font-display); }
.lb-credit { margin-top: 0.3rem; font-size: 0.82rem; opacity: 0.8; }
.lb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.8rem; }
.lb-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.6rem; padding: 0.5rem 1rem;
  border: 1px solid oklch(1 0 0 / 0.28); border-radius: 999px;
  background: oklch(1 0 0 / 0.06); color: inherit;
  font: 650 0.88rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.lb-btn:hover { background: oklch(1 0 0 / 0.14); }
.lb-btn svg { width: 1.1rem; height: 1.1rem; }
.lb-btn-primary { background: var(--neon); border-color: var(--neon); color: #fff; }
.lb-btn-primary:hover { background: var(--neon-hi); }
.lb-icon {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border: 0; border-radius: 50%; background: oklch(1 0 0 / 0.1); color: inherit; cursor: pointer;
}
.lb-icon:hover { background: oklch(1 0 0 / 0.2); }
.lb-icon svg { width: 1.5rem; height: 1.5rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0.6rem; } .lb-next { right: 0.6rem; }
.lb :focus-visible { outline-color: oklch(0.82 0.12 85); }
.lb-status { min-height: 1.2em; margin-top: 0.4rem; font-size: 0.85rem; opacity: 0.9; }
@media (max-width: 44.99rem) {
  .lb-prev, .lb-next { top: auto; bottom: 0; transform: none; width: 2.6rem; height: 2.6rem; }
  .lb-stage { padding-bottom: 3rem; }
  .lb-img { max-height: calc(100dvh - 19.5rem); }
  .lb-btn { padding: 0.5rem 0.8rem; }
}

/* ── Meme detail page ────────────────────────────────────────── */
.meme-layout { display: grid; gap: var(--space-3); padding-top: var(--space-2); align-items: start; }
.meme-hero { margin: 0; width: 100%; max-width: 34rem; justify-self: center; }
.meme-info h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.meme-note { margin-top: 1rem; font-size: 1.12rem; font-weight: 550; }
.meme-story-text { margin-top: 0.7rem; color: var(--muted); }
.meme-info .chip-row { margin-top: 1.2rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }
.action-row.center { justify-content: center; }
.featured-in { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.featured-in h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.featured-in ul { list-style: none; display: grid; gap: 0.35rem; }
.featured-in a { font-weight: 650; color: var(--ink); text-underline-offset: 0.18em; text-decoration-color: var(--gold); }
.featured-in a:hover { color: var(--neon); }
.pager { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.75rem; padding: 0 0.3rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.pager a:hover { color: var(--neon); }
.pager svg { width: 1.2rem; height: 1.2rem; }
@media (min-width: 60rem) {
  .meme-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
  .meme-info { padding-top: 1rem; }
}

/* share bar */
.share-bar { margin-top: 1.6rem; }
.share-label { font: 400 1.15rem/1.2 var(--font-display); margin-bottom: 0.6rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.6rem; padding: 0.45rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; background: oklch(1 0 0 / 0.7);
  font: 650 0.86rem/1 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.share-btn:hover { border-color: var(--muted); background: oklch(0.95 0.006 80); }
.share-btn svg { width: 1.05rem; height: 1.05rem; }
.share-btn[hidden] { display: none; }
.share-status { min-height: 1.3em; margin-top: 0.4rem; font-size: 0.88rem; color: var(--gold-dim); font-weight: 650; }

/* ── Compilations ────────────────────────────────────────────── */
.comp-grid { list-style: none; display: grid; gap: 2.4rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.comp-card a { display: block; text-decoration: none; color: inherit; }
.comp-cover { position: relative; display: block; padding: 0.8rem 1.6rem 0.4rem; isolation: isolate; }
.comp-cover .frame { position: relative; z-index: 2; transition: transform 0.4s var(--ease); }
.comp-behind {
  position: absolute; z-index: 1; top: 1.4rem; width: 58%; padding: 5px;
  background: linear-gradient(140deg, oklch(0.8 0.1 86), oklch(0.5 0.08 76));
  box-shadow: 0 8px 18px oklch(0.2 0.03 60 / 0.18);
  transition: transform 0.4s var(--ease);
}
.comp-behind img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.comp-behind-0 { left: 0; transform: rotate(-6deg); }
.comp-behind-1 { right: 0; transform: rotate(5deg); }
.comp-card a:hover .comp-cover .frame { transform: translateY(-5px); }
.comp-card a:hover .comp-behind-0 { transform: rotate(-9deg) translateX(-6px); }
.comp-card a:hover .comp-behind-1 { transform: rotate(8deg) translateX(6px); }
.comp-meta { display: block; margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--gold-dim); }
.comp-title { display: block; margin-top: 0.25rem; font: 400 1.35rem/1.18 var(--font-display); text-wrap: balance; }
.comp-card a:hover .comp-title { color: var(--neon); }
.comp-grid-index { padding-bottom: var(--space-2); }
@media (max-width: 44.99rem) {
  .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0.9rem; }
  .comp-cover { padding: 0.6rem 0.9rem 0.2rem; }
  .comp-behind { top: 1rem; }
  .comp-meta { font-size: 0.78rem; margin-top: 0.8rem; }
  .comp-title { font-size: 1.08rem; line-height: 1.2; }
}

/* listicle */
.listicle-head { max-width: 46rem; margin-inline: auto; padding: var(--space-3) 0 var(--space-2); text-align: center; }
.listicle-head h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); }
.listicle-meta { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.listicle-intro { margin-top: 1.2rem; font-size: 1.12rem; text-align: left; max-width: 65ch; margin-inline: auto; }
.list-items { list-style: none; max-width: 42rem; margin-inline: auto; display: grid; gap: var(--space-4); padding-top: var(--space-3); }
.list-item { scroll-margin-top: calc(var(--head-h) + 1rem); }
.list-head { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; align-items: baseline; font-size: clamp(1.4rem, 3.6vw, 1.95rem); }
.list-num { font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 0.9; color: var(--gold-dim); min-width: 1.3ch; }
.list-intro { margin-top: 0.7rem; color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.list-figure { margin: 1.2rem 0 0; }
.list-more { margin-top: 0.9rem; text-align: center; font-size: 0.95rem; }
.listicle-foot { max-width: 42rem; margin-inline: auto; padding-top: var(--space-4); }
.listicle-outro { font: 400 clamp(1.25rem, 3vw, 1.6rem)/1.35 var(--font-display); text-wrap: pretty; }

/* follow band */
.follow-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin-top: var(--space-4); padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--gold-dark);
  background: var(--plaque);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px oklch(0.6 0.06 76);
}
.follow-line { font: 400 clamp(1.25rem, 3vw, 1.65rem)/1.25 var(--font-display); color: var(--gold-dark); max-width: 30rem; }
.follow-band .action-row { margin-top: 0; }

/* ── Articles ────────────────────────────────────────────────── */
.cat-tag { display: inline-block; font-size: 0.84rem; font-weight: 800; color: var(--neon); }
.article-grid { list-style: none; display: grid; gap: 2.2rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.article-card a { display: block; height: 100%; text-decoration: none; color: inherit; }
.article-card[hidden] { display: none; }
.article-thumb { display: block; overflow: hidden; border-radius: 3px; background: var(--surface2); aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--line); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.article-card a:hover .article-thumb img { transform: scale(1.04); }
.article-card-body { display: grid; gap: 0.35rem; padding-top: 0.9rem; }
.article-card-title { font: 400 1.4rem/1.15 var(--font-display); text-wrap: balance; }
.article-card a:hover .article-card-title { color: var(--neon); }
.article-card-dek { color: var(--muted); font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { font-size: 0.83rem; color: var(--muted); font-weight: 600; }
@media (min-width: 60rem) {
  .article-card-big { grid-column: 1 / -1; }
  .article-card-big a { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; align-items: center; }
  .article-card-big .article-card-title { font-size: clamp(2rem, 3.2vw, 2.8rem); }
  .article-card-big .article-card-dek { font-size: 1.1rem; -webkit-line-clamp: 4; }
}
[data-cat-filter] { margin-bottom: var(--space-2); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--neon); transform-origin: 0 50%; transform: scaleX(0); }

.article-head { max-width: 46rem; margin-inline: auto; padding: var(--space-3) 0 var(--space-2); text-align: center; }
.article-head h1 { margin-top: 0.5rem; font-size: clamp(2.2rem, 6.4vw, 4rem); }
.article-dek { margin-top: 1rem; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); font-weight: 500; }
.article-meta { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.article-hero { margin: var(--space-2) auto 0; max-width: 56rem; }
.article-hero img { max-height: 70vh; object-fit: cover; }
.article-layout { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.toc { padding: 1rem 1.2rem; background: var(--plaque); border: 1px solid oklch(0.74 0.04 76); border-radius: 2px; }
.toc-head { font: 400 1.1rem/1.2 var(--font-display); color: var(--gold-dark); margin-bottom: 0.5rem; }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.toc li::marker { color: var(--gold-dim); font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--neon); }
@media (min-width: 64rem) {
  .article-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; max-width: 64rem; margin-inline: auto; }
  .article-aside .toc { position: sticky; top: calc(var(--head-h) + 1.5rem); }
}
@media (max-width: 63.99rem) { .article-layout { max-width: 42rem; margin-inline: auto; } }

.prose { max-width: 65ch; font-size: 1.125rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-top: 2em; line-height: 1.15; scroll-margin-top: calc(var(--head-h) + 1rem); }
.prose h3 { font: 750 1.2rem/1.3 var(--font-body); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--neon); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding: 0.2em 0 0.2em 1.1em; border-left: 1px solid var(--gold); font: 400 1.3rem/1.4 var(--font-display); color: var(--gold-dark); }
.prose strong { font-weight: 750; }
.prose figure { margin-block: 2.2em; }
.prose figure img { width: 100%; }
.prose figure > img { border: 9px solid var(--gold-dim); }
.prose figcaption { font-size: 0.85rem; line-height: 1.45; color: var(--muted); font-weight: 600; }
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.4rem; margin-top: 0; }
.sources ol { margin-top: 0.8em; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.sources a { color: var(--ink); word-break: break-word; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2em; }
.prose .tag-list { padding-left: 0; }
.tag-list li { padding: 0.25rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; color: var(--muted); font-weight: 600; margin: 0; }
.legal h2 { font-size: 1.35rem; }
.small-print { margin-top: var(--space-2); font-size: 0.88rem; color: var(--muted); }

/* ── Donor plaque ────────────────────────────────────────────── */
.donors { padding-block: var(--space-4) 0; }
.donor-plaque {
  max-width: 52rem; margin-inline: auto; text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--plaque);
  border: 1px solid var(--gold-dark);
  box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px var(--gold-dark), 0 12px 30px oklch(0.2 0.03 60 / 0.12);
}
.donor-head { font: 400 1.1rem/1.2 var(--font-display); color: var(--gold-dim); }
.donor-big { margin-top: 0.6rem; font-size: clamp(2rem, 6vw, 3.4rem); color: var(--gold-dark); }
.donor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.9rem; margin: 1rem 0 1.5rem; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.donor-row i { color: var(--gold-dark); font-style: normal; }

/* ── Gift shop ───────────────────────────────────────────────── */
.shop-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.4rem clamp(1.5rem, 3.5vw, 3rem); }
.product { display: flex; flex-direction: column; }
.product-visual {
  display: grid; place-items: center; aspect-ratio: 5 / 4;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 6px;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.product-visual:hover { transform: translateY(-5px); border-color: var(--gold-dark); }
.grip-shape {
  position: relative; display: grid; place-items: center; width: 46%; aspect-ratio: 1; overflow: hidden;
  border-radius: 50%; background: oklch(0.98 0.004 90);
  box-shadow: inset 0 0 0 10px oklch(0.15 0.01 80), inset 0 0 0 14px var(--gold-dark), 0 16px 34px oklch(0 0 0 / 0.4);
}
.grip-shape img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: cover; border-radius: 50%; }
.grip-shape span, .case-shape span {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%) rotate(-3deg);
  width: max-content; max-width: 84%; padding: 0.25rem 0.5rem; border-radius: 6px;
  background: oklch(0.98 0.002 90); color: oklch(0.16 0 0); font: 800 0.72rem/1.2 var(--font-body);
}
.case-shape {
  position: relative; display: block; width: 32%; aspect-ratio: 9 / 18; padding: 8px; border-radius: 20px;
  background: oklch(0.92 0.006 90); box-shadow: inset 0 0 0 3px oklch(0.16 0.01 80), 0 18px 38px oklch(0 0 0 / 0.38);
  transform: rotate(3deg);
}
.case-shape::before { content: ""; position: absolute; top: 12px; left: 50%; width: 34%; height: 7px; border-radius: 999px; background: oklch(0.13 0.01 80); transform: translateX(-50%); z-index: 2; }
.case-shape img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.case-shape span { bottom: 12%; transform: translateX(-50%) rotate(-1deg); }
.tee-shape {
  position: relative; display: block; width: 52%; aspect-ratio: 7 / 8; background: oklch(0.97 0.003 90);
  clip-path: polygon(20% 0, 32% 6%, 50% 9%, 68% 6%, 80% 0, 100% 12%, 92% 26%, 84% 22%, 84% 100%, 16% 100%, 16% 22%, 8% 26%, 0 12%);
}
.tee-print { position: absolute; top: 27%; left: 30%; width: 40%; overflow: hidden; border-radius: 2px; }
.tee-print img { aspect-ratio: 4 / 5; object-fit: cover; }
.product-info { padding: 1.1rem 0.1rem 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.product-info h3 { font-size: 1.5rem; }
.product-info p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.5rem; font-weight: 500; }

.shop-catalog { list-style: none; display: grid; gap: var(--space-3); padding-top: var(--space-2); }
.catalog-item { display: grid; gap: 1.4rem 3rem; align-items: center; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.catalog-art { margin: 0; max-width: 26rem; width: 100%; }
.catalog-art img { aspect-ratio: 4 / 3; object-fit: cover; }
.catalog-copy h2 { margin-top: 0.3rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.catalog-copy p:not(.cat-tag) { margin: 0.8rem 0 1.2rem; color: var(--muted); font-weight: 500; max-width: 38rem; }
@media (min-width: 48rem) {
  .catalog-item { grid-template-columns: minmax(14rem, 0.8fr) 1fr; }
  .catalog-item:nth-child(even) .catalog-art { order: 2; }
}

/* ── Coloring book feature ───────────────────────────────────── */
.book-feature { display: grid; gap: var(--space-3); align-items: center; padding-block: var(--space-4) 0; }
.frame-book .art img { aspect-ratio: 16 / 10; object-fit: cover; }
.book-copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.book-copy > p { margin-top: 1rem; color: var(--muted); max-width: 36rem; font-weight: 500; }
.book-facts { margin: 1.3rem 0 0; list-style: none; display: grid; gap: 0.5rem; }
.book-facts li { padding-left: 1.6rem; position: relative; }
.book-facts li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.55rem; height: 0.55rem; background: var(--gold); transform: rotate(45deg); }
@media (min-width: 60rem) { .book-feature { grid-template-columns: 1fr 1fr; } }

/* ── Free coloring pages ─────────────────────────────────────── */
.coloring-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; padding-top: var(--space-2); }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.dl-card img { width: 100%; background: #fff; box-shadow: 0 8px 22px oklch(0.2 0.03 60 / 0.16); }
.dl-card h2 { font-size: 1.5rem; margin-top: 0.7rem; }
.dl-card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.5rem; }
.dl-card .btn { margin-top: auto; }
.coloring-upsell { margin-top: var(--space-4); text-align: center; max-width: 36rem; margin-inline: auto; }
.coloring-upsell h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.coloring-upsell p { margin: 0.8rem 0 1.3rem; color: var(--muted); }

/* ── About / 404 ─────────────────────────────────────────────── */
.about-art { margin: var(--space-2) 0 var(--space-3); }
.about-art img { aspect-ratio: 5 / 4; object-fit: cover; }
.notfound { text-align: center; padding-block: var(--space-3) var(--space-2); }
.nf-art { margin: 0 auto var(--space-3); max-width: 18rem; }
.frame-empty .art { aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface2) 12px 13px); }
.notfound h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.notfound > p { margin: 1rem auto 0; max-width: 34rem; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-foot { margin-top: var(--space-4); border-top: 1px solid var(--line); background: var(--surface); font-size: 0.93rem; color: var(--muted); }
.foot-inner {
  max-width: 82rem; margin-inline: auto; padding: var(--space-3) var(--gutter) var(--space-2);
  display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.foot-brand { grid-column: 1 / -1; display: grid; gap: 0.8rem; justify-items: start; max-width: 26rem; }
.foot-brand .wordmark { margin: 0; font-size: 1.9rem; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.foot-head { font: 400 1.1rem/1.2 var(--font-display); color: var(--ink); margin-bottom: 0.35rem; }
.foot-col a { color: var(--muted); text-decoration: none; font-weight: 600; padding-block: 0.3rem; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-top: 0.5rem; font-size: 0.84rem; }
.foot-base { max-width: 82rem; margin-inline: auto; padding: 1rem var(--gutter) 1.6rem; border-top: 1px solid var(--line); font-size: 0.84rem; }
@media (min-width: 52rem) {
  .foot-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .foot-brand { grid-column: auto; }
}

/* ── Reveal on scroll (enhance-only: visible by default; JS hides only
     below-the-fold elements via .pre, with a 1.8 s failsafe) ── */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; }

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .frieze-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: 1rem; }
  .frieze-track span:nth-of-type(n+5), .frieze-track i:nth-of-type(n+4) { display: none; }
  .js .reveal, .js .reveal.pre { opacity: 1; transform: none; }
  .btn:hover, .meme-link:hover .frame, .motd .frame, .motd .frame:hover { transform: none; }
}

/* section titles that sit directly above a grid */
.section > .section-title { margin-bottom: var(--space-2); }
