/* Rubik, self-hosted.
   Previously loaded from fonts.googleapis.com, which cost a render-blocking
   third-party stylesheet before the font fetch could even start, and handed
   Google every visitor's IP address. unicode-range means a browser downloads
   only the subsets it actually needs - latin alone is 34 KB per weight. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/rubik-latin-ext.09472f217a.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/rubik-latin.691cd1d9b4.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;
}


/* ==========================================================================
   Pimp That Snack — design system

   The brand is black lettering on #ffff00, baked into a 2006 sticker logo.
   Pure yellow at full-bleed is punishing to read against, so the yellow is
   kept as a signature accent (rules, hovers, the wordmark) rather than a
   background wash, and warmed very slightly to #ffe500 so it sits on paper
   without vibrating. Everything else is quiet: the photographs are the
   content, and 4,157 of them do not need help competing.
   ========================================================================== */

:root {
  --yellow:      #ffe500;
  --yellow-deep: #f5c400;
  --ink:         #17150f;
  --ink-soft:    #423d31;
  --muted:       #6b6559;
  --bg:          #fbfaf7;
  --surface:     #ffffff;
  --line:        #e6e2d8;
  --line-strong: #d3cdbe;
  --accent:      #a4560a;
  --focus:       #17150f;   /* yellow is 1.22:1 on paper - unusable as a ring */
  --accent-hi:   #dd9933;
  --shadow:      0 1px 2px rgba(23,21,15,.05), 0 8px 24px -12px rgba(23,21,15,.18);
  --shadow-lift: 0 2px 4px rgba(23,21,15,.06), 0 18px 40px -16px rgba(23,21,15,.28);

  --font: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1220px;
  --gap: clamp(1rem, 2.2vw, 1.75rem);
  --radius: 14px;
  --radius-sm: 8px;
}

/* Three states, not two. Most visitors never touch a theme control, so the
   default has to follow the operating system — but a choice, once made, must beat
   the OS in both directions. Hence the :not() guard: an explicit light choice
   survives a dark OS, and an explicit dark choice survives a light one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:         #f3f0e7;
    --ink-soft:    #cdc7b8;
    --muted:       #9a9284;
    --bg:          #121109;
    --surface:     #1c1a14;
    --line:        #2f2c23;
    --line-strong: #423d31;
    --accent:      #f0b352;
    --focus:       #ffe500;   /* 14.8:1 on the dark ground */
    --accent-hi:   #ffd27a;
    --shadow:      0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.55), 0 18px 40px -16px rgba(0,0,0,.8);
  }
}

:root[data-theme="dark"] {
  --ink:         #f3f0e7;
  --ink-soft:    #cdc7b8;
  --muted:       #9a9284;
  --bg:          #121109;
  --surface:     #1c1a14;
  --line:        #2f2c23;
  --line-strong: #423d31;
  --accent:      #f0b352;
  --focus:       #ffe500;   /* 14.8:1 on the dark ground */
  --accent-hi:   #ffd27a;
  --shadow:      0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.55), 0 18px 40px -16px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr, .brand__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--yellow); color: #17150f; padding: .7rem 1.1rem;
  border-radius: var(--radius-sm); font-weight: 500; text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 8px; }

/* --------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.masthead::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--yellow) 0 60%, var(--yellow-deep) 60% 100%);
}

.masthead__bar {
  max-width: var(--wrap); margin: 0 auto;
  padding: .6rem clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem);
}

/* The logo PNG is an opaque yellow rectangle and cannot sit on any other
   colour, so the wordmark is set in type — same three staggered, rotated
   lines, but resolution-independent and themeable. */
.brand { text-decoration: none; flex: 0 0 auto; display: block; }
.brand__mark {
  display: flex; flex-direction: column; gap: 1px;
  font-weight: 700; line-height: .92; letter-spacing: -.02em;
  font-size: clamp(.92rem, 2.4vw, 1.1rem); text-transform: uppercase;
}
.brand__mark span {
  background: var(--yellow); color: #17150f;
  padding: .1em .38em; border-radius: 3px; width: fit-content;
}
.brand__mark span:nth-child(1) { transform: rotate(-2.5deg); }
.brand__mark span:nth-child(2) { transform: rotate(1.5deg) translateX(.45em); }
.brand__mark span:nth-child(3) { transform: rotate(-1deg) translateX(.15em); }
.brand__mark i { font-style: normal; color: var(--accent); }
.brand:hover .brand__mark span { background: var(--yellow-deep); }

/* nav */
.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.2rem, 1vw, .9rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .6rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .93rem; font-weight: 500; color: var(--ink);
  text-decoration: none; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav__link:hover { background: var(--yellow); color: #17150f; }
.nav__chev { width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }

.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + .4rem); left: 0; z-index: 60;
  min-width: 260px; margin: 0; padding: .45rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  display: none; max-height: min(70vh, 520px); overflow-y: auto;
}
.nav__item--has-menu[data-open="true"] .nav__menu { display: block; }
.nav__menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .5rem .65rem; border-radius: var(--radius-sm);
  text-decoration: none; font-size: .93rem;
}
.nav__menu a:hover { background: var(--yellow); color: #17150f; }
.nav__count { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.nav__menu a:hover .nav__count { color: #17150f; }

.navtoggle { display: none; }

/* search */
.search { position: relative; flex: 0 0 auto; display: flex; }
.search input {
  font: inherit; font-size: .9rem; width: clamp(9rem, 16vw, 15rem);
  padding: .5rem 2.2rem .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search button {
  position: absolute; right: 3px; top: 3px; bottom: 3px; width: 2rem;
  border: 0; border-radius: 999px; background: none; color: var(--muted);
  cursor: pointer; font-size: 1rem;
}
.search button:hover { background: var(--yellow); color: #17150f; }

/* ------------------------------------------------------------------ layout */

main { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 4rem; }

.pagehead { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pagehead__kicker { margin: 0 0 .2rem; font-size: .78rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.pagehead__title { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.pagehead__sub { margin: .7rem 0 0; color: var(--muted); max-width: 62ch; }
.pagehead__count, .pagehead__page {
  display: inline-block; margin-left: .5rem; padding: .12rem .55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; color: var(--ink-soft); white-space: nowrap;
}

.crumbs { margin-bottom: .9rem; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__title { margin: 0; font-size: clamp(2.3rem, 6.5vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.hero__title em { font-style: normal; position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .34em;
  background: var(--yellow); z-index: -1; transform: rotate(-1.2deg);
}
.hero__lede { margin: 1.2rem 0 0; font-size: clamp(1rem, 1.5vw, 1.13rem); color: var(--ink-soft); max-width: 46ch; }
.hero__actions { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }

.hero__art { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); text-decoration: none; }
.hero__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.hero__art:hover img { transform: scale(1.03); }
.hero__caption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(10,9,5,.88));
  color: #fff; display: flex; flex-direction: column; gap: .1rem;
}
.hero__caption strong { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.hero__caption span { font-size: .87rem; opacity: .82; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn--primary { background: var(--yellow); border-color: var(--yellow); color: #17150f; }
.btn--primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }

/* ------------------------------------------------------------------ strips */

.strip { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.strip__title {
  margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: -.015em;
  position: relative; padding-bottom: .45rem;
}
.strip__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.4rem; height: 4px; background: var(--yellow); border-radius: 2px; }
.strip__more { font-size: .9rem; font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.strip__more:hover { text-decoration: underline; }

/* ------------------------------------------------------------------- grids */

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); }

/* ------------------------------------------------------------------- cards */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__media { background: var(--bg); overflow: hidden; }
/* 3:2 rather than the old theme's 2:1 — these thumbnails run from 0.64:1 to
   6.06:1, and the shallower box throws away far less of the extreme ones. */
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__cat { margin: 0; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card__title { margin: 0; font-size: 1.02rem; font-weight: 500; line-height: 1.28; letter-spacing: -.01em; }
.card:hover .card__title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 2px; }
/* The old theme rendered this meta row and left it empty. It is the single
   biggest scannability win on every listing: who made it, and when. */
.card__meta { margin: auto 0 0; padding-top: .45rem; display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .8rem; color: var(--muted); }
.card__author { font-weight: 500; color: var(--ink-soft); }
.card__author::after { content: "·"; margin-left: .5rem; color: var(--line-strong); }

.card--lead { grid-column: span 2; }
@media (max-width: 640px) { .card--lead { grid-column: auto; } }

/* -------------------------------------------------------------- categories */

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: .8rem; list-style: none; margin: 0; padding: 0; }
.cats__item a {
  position: relative; display: flex; align-items: flex-end; gap: .4rem;
  min-height: 104px; padding: .8rem; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--ink);
}
.cats__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s ease, opacity .2s ease; }
.cats__item a:hover img { transform: scale(1.06); opacity: .38; }
.cats__item a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10,9,5,.85)); }
.cats__name { position: relative; z-index: 1; font-weight: 500; letter-spacing: -.01em; }
.cats__count { position: relative; z-index: 1; margin-left: auto; font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; background: var(--yellow); color: #17150f; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ people */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .8rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.people__item a { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem .5rem .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.people__item a:hover { border-color: var(--ink); }
.people__item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.people__name { font-size: .9rem; font-weight: 500; line-height: 1.25; }
.people__count { margin-left: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* ------------------------------------------------------------------ article */

.post { max-width: 760px; margin: 0 auto; }
.post--page { max-width: 700px; }
.post__title { margin: 0; font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.post__byline { margin: 1rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .92rem; color: var(--muted); }
.post__by a { color: var(--ink); font-weight: 500; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post__count { padding: .1rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }

.taglist { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.taglist a { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; text-decoration: none; color: var(--ink-soft); }
.taglist a:hover { background: var(--yellow); border-color: var(--yellow); color: #17150f; }

.post__head { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }

/* prose — the imported 2006-2015 body copy */
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); }
.prose > p { margin: 0 0 1.3rem; }
.prose strong, .prose b { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 2.2rem 0 .8rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.25rem; } .prose h4 { font-size: 1.08rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 4px solid var(--yellow); color: var(--ink); font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

/* Photographs are the whole point: give them room and let them break out of
   the measure on wide screens. */
.prose img {
  margin: 1.8rem auto; border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--surface);
}
@media (min-width: 900px) {
  .prose img { max-width: min(100%, 860px); width: auto; }
}
.prose p:has(> img:only-child) { margin: 0; text-align: center; }

.post__foot { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.post__share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; }
.post__share span { color: var(--muted); margin-right: .2rem; }
.post__share a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.post__share a:hover { background: var(--yellow); border-color: var(--yellow); color: #17150f; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2.5rem 0 0; }
.pager__item { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pager__item:hover { border-color: var(--ink); }
.pager__item--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.pager__name { font-weight: 500; line-height: 1.3; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager__item--next { grid-column: auto; text-align: left; } }

/* -------------------------------------------------------------- pagination */

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.pagination__pages { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.pagination__pages a, .pagination__pages span, .pagination__step {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); text-decoration: none; font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.pagination__pages a:hover, .pagination__step:hover { background: var(--yellow); border-color: var(--yellow); color: #17150f; }
.pagination__pages [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 500; }
.pagination__gap { border: 0 !important; background: none !important; color: var(--muted); min-width: 1.4rem !important; padding: 0 !important; }

/* ------------------------------------------------------------------ videos */

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.videos__player { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.videos__player img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s ease, transform .4s ease; }
.videos__player:hover img { opacity: 1; transform: scale(1.03); }
.videos__play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 58px; height: 40px; border-radius: 10px; background: rgba(23,21,15,.78); }
.videos__play::after { content: ""; position: absolute; inset: 50% auto auto 50%; translate: -40% -50%; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--yellow); }
.videos__player:hover .videos__play { background: var(--yellow); }
.videos__player:hover .videos__play::after { border-left-color: #17150f; }
.videos__time { position: absolute; right: .6rem; bottom: .6rem; padding: .1rem .4rem; border-radius: 4px; background: rgba(10,9,5,.82); color: #fff; font-size: .75rem; font-variant-numeric: tabular-nums; }
.videos__title { margin: .6rem 0 0; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }

/* --------------------------------------------------------------- 404 / stub */

.notfound { max-width: 620px; margin: clamp(2rem, 8vw, 5rem) auto; text-align: center; }
.notfound__code {
  margin: 0; font-size: clamp(4rem, 16vw, 8rem); font-weight: 700;
  line-height: 1; letter-spacing: -.05em;
  /* yellow measures 1.22:1 on paper; large text still needs 3:1, and
     WCAG has no exemption for text that is merely decorative */
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: .1em; text-underline-offset: .08em;
}
.notfound__title { margin: .3rem 0 0; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -.025em; }
.notfound__lede { margin: .9rem 0 0; color: var(--muted); }
.notfound__actions { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

.closed { margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius); }
.closed h2 { margin: 0 0 .6rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.closed p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 62ch; }
.closed p:last-child { margin: 0; }

.empty { color: var(--muted); padding: 3rem 0; text-align: center; }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem) 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__wordmark { margin: 0 0 .5rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.footer__wordmark::after { content: ""; display: block; width: 2.2rem; height: 4px; margin-top: .5rem; background: var(--yellow); border-radius: 2px; }
.footer__blurb { margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; max-width: 48ch; }
.footer__stat { margin: 0; font-size: .88rem; color: var(--muted); }
.footer__stat strong { color: var(--ink); font-weight: 500; }
.footer__nav h2 { margin: 0 0 .7rem; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer__nav a { font-size: .93rem; text-decoration: none; color: var(--ink-soft); }
.footer__nav a:hover { color: var(--accent); text-decoration: underline; }
.footer__legal { max-width: var(--wrap); margin: 0 auto; padding: 1.2rem clamp(1rem, 3vw, 2rem) 2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

@media (max-width: 860px) {
  .navtoggle {
    display: inline-flex; align-items: center; gap: .45rem; margin-inline-start: auto;
    padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  }
  .navtoggle__box { position: relative; width: 16px; height: 12px; }
  .navtoggle__box i, .navtoggle__box::before, .navtoggle__box::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: .2s ease;
  }
  .navtoggle__box::before { top: 0; } .navtoggle__box i { top: 5px; } .navtoggle__box::after { bottom: 0; }
  .navtoggle[aria-expanded="true"] .navtoggle__box i { opacity: 0; }
  .navtoggle[aria-expanded="true"] .navtoggle__box::before { top: 5px; transform: rotate(45deg); }
  .navtoggle[aria-expanded="true"] .navtoggle__box::after { bottom: 5px; transform: rotate(-45deg); }

  .nav {
    display: none; order: 10; flex-basis: 100%; margin: .6rem 0 .3rem;
    border-top: 1px solid var(--line); padding-top: .6rem;
    max-height: 70vh; overflow-y: auto;
  }
  .masthead__bar[data-nav-open="true"] .nav { display: block; }
  .masthead__bar { flex-wrap: wrap; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { width: 100%; justify-content: space-between; padding: .65rem .5rem; font-size: 1rem; }
  .nav__menu { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--yellow); border-radius: 0; margin: .1rem 0 .4rem .5rem; padding: .1rem 0 .1rem .4rem; max-height: none; }
  .nav__item--has-menu[data-open="true"] .nav__menu { display: block; }
  .search { order: 11; flex-basis: 100%; margin-bottom: .4rem; }
  .search input { width: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card__media img { aspect-ratio: 16 / 10; }
}

/* At 400% zoom (the SC 1.4.10 test size) the masthead wraps to 135px and
   sticky pins it there, leaving 121px of readable page. */
@media (max-height: 480px) { .masthead { position: static; } }

@media print {
  .masthead, .footer, .pager, .post__share, .strip, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .prose img { box-shadow: none; page-break-inside: avoid; }
}

/* ------------------------------------------------------------------ rating */
/* Archival: voting closed with the site in 2015. Shown as a record, never as
   an interactive control. */
.rating { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; }
.rating__bar { width: 54px; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.rating__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: var(--yellow); }
.rating__num { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.rating__votes { color: var(--muted); }

.card__rating { margin: .35rem 0 0; display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__rating span { flex: 0 0 auto; width: 40px; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.card__rating span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: var(--yellow-deep); }

/* ------------------------------------------------------------- big search */
.bigsearch { margin: 0 0 1.5rem; }
.bigsearch input {
  width: 100%; font: inherit; font-size: 1.15rem; padding: .9rem 1.2rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
}
.bigsearch input:focus { border-color: var(--ink); }
.searchstat { margin: 0 0 1.2rem; color: var(--muted); font-size: .9rem; min-height: 1.4em; }

/* ------------------------------------------------------------------- share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.share__label { color: var(--muted); font-size: .88rem; margin-right: .2rem; }
.share__btn {
  padding: .32rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font: inherit; font-size: .84rem; text-decoration: none; cursor: pointer;
}
.share__btn:hover { background: var(--yellow); border-color: var(--yellow); color: #17150f; }
.share__btn.is-done { background: var(--yellow); border-color: var(--yellow); color: #17150f; }
.share__native { font-weight: 500; }

/* --------------------------------------------------------------- lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(8,7,4,.94); padding: clamp(.5rem, 3vw, 2.5rem);
}
.lb.is-open { display: flex; }
.lb__img { max-width: 100%; max-height: 88vh; width: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb__close, .lb__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); border-radius: 999px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb__close { top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; font-size: 1.7rem; }
.lb__nav { top: 50%; translate: 0 -50%; width: 3rem; height: 3rem; font-size: 2rem; }
.lb__prev { left: .8rem; } .lb__next { right: .8rem; }
.lb__close:hover, .lb__nav:hover { background: var(--yellow); color: #17150f; }
.lb__count { position: absolute; bottom: 1rem; left: 50%; translate: -50% 0; margin: 0; color: rgba(255,255,255,.75); font-size: .85rem; font-variant-numeric: tabular-nums; }
.prose img { cursor: zoom-in; }
.prose img:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Top pagination sits tighter to the grid than the bottom one. */
.pagination--top { margin-top: 0; margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }


/* ------------------------------------------------------------ theme toggle */
/* A three-state control (system / light / dark) rather than a two-state switch,
   so "follow my system" stays reachable after the reader has picked something. */
.themetoggle {
  display: inline-flex; align-items: center; gap: .1rem; flex: 0 0 auto;
  padding: 2px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
}
.themetoggle button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: .82rem;
  line-height: 1;
}
.themetoggle button:hover { color: var(--ink); background: var(--bg); }
.themetoggle button[aria-pressed="true"] { background: var(--yellow); color: #17150f; }
.themetoggle svg { width: 1rem; height: 1rem; fill: none;
  stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .themetoggle { order: 9; } }

/* ---- forum archive: the 2006 phpBB forum, rebuilt from Wayback captures ---- */
.forum__list { display: grid; gap: .6rem; margin: 1.4rem 0; }
.forum__row { display: grid; grid-template-columns: 1fr auto; gap: .15rem .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); color: inherit; text-decoration: none; }
.forum__row:hover { border-color: var(--accent); }
.forum__name { font-weight: 600; color: var(--ink); }
.forum__desc { grid-column: 1; font-size: .85rem; color: var(--muted); }
.forum__counts { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.forum__topics { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.forum__topics th, .forum__topics td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.forum__topics th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.forum__topics .num { text-align: right; font-variant-numeric: tabular-nums; }
.forum__topics a { color: var(--ink); font-weight: 600; text-decoration: none; }
.forum__topics a:hover { color: var(--accent); }
.forum__date { display: block; font-size: .78rem; color: var(--muted); }
.forum__posts { margin: 1.2rem 0; padding: 0; list-style: none; }
.forum__post { padding: .9rem 0; border-top: 1px solid var(--line); }
.forum__post:target { background: var(--surface); box-shadow: 0 0 0 .6rem var(--surface); }
.forum__post-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; margin-bottom: .4rem; font-size: .85rem; color: var(--muted); }
.forum__author { color: var(--ink-soft); }
.forum__anchor { margin-left: auto; color: var(--muted); text-decoration: none; }
.forum__body { font-size: .95rem; overflow-wrap: anywhere; }
.forum__body blockquote { margin: .5rem 0; padding: .4rem .8rem; border-left: 3px solid var(--line-strong); color: var(--ink-soft); }
.forum__body pre { white-space: pre-wrap; }
.forum__note { font-size: .85rem; color: var(--muted); }
.forum__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: .9rem; }
@media (max-width: 640px) { .forum__topics .num, .forum__topics th:nth-child(4), .forum__topics td:nth-child(4) { display: none; } }
.forum__body blockquote { margin: .6rem 0; padding: .5rem .9rem; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink-soft); border-radius: 0 .3rem .3rem 0; }
.forum__body blockquote cite { display: block; margin-bottom: .25rem; font-style: normal; font-weight: 600; font-size: .8rem; color: var(--muted); }
.forum__body blockquote blockquote { border-left-color: var(--line-strong); }
