/* TV Fanzines — "retro zine meets CRT". Near-black screen, electric magenta + cyan (complementary), off-white paper scraps. */

@font-face { font-family: "Bungee"; src: url("../fonts/bungee.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #111014;          /* screen black */
  --bg-2: #1b1920;        /* raised panel */
  --bg-3: #26232d;
  --deep: #0a090c;
  --ink: #F5F1E8;         /* off-white text: 16.8:1 on --bg */
  --ink-2: #c8c2b8;       /* muted text: 10.7:1 on --bg */
  --mag: #FF3C8E;         /* magenta: 5.7:1 on --bg (AA text) */
  --cyan: #2DE2E6;        /* cyan: 12:1 on --bg */
  --paper: #F5F1E8;
  --on-bright: #111014;   /* text on magenta / cyan / paper */
  --line: rgba(245, 241, 232, .16);
  --line-2: rgba(245, 241, 232, .32);
  --focus: #2DE2E6;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --scan: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .34) 0 1px, transparent 1px 3px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-color: var(--mag); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; }
p, ul, ol { margin: 0 0 1em; }
code { font-size: .9em; background: var(--bg-3); padding: .05em .35em; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 780px; }
.section { padding-top: 40px; padding-bottom: 40px; }
main { display: block; outline: none; min-height: 50vh; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--cyan); color: var(--on-bright); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header + channels */
.site-head { background: var(--deep); border-bottom: 3px solid var(--mag); position: relative; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo-set { color: var(--ink); flex: none; }
.logo-word { font-family: var(--display); font-size: 1.3rem; line-height: 1; display: inline-flex; align-items: center; gap: 6px; }
.lw-tv { background: var(--mag); color: var(--on-bright); padding: 4px 6px 2px; transform: rotate(-3deg); display: inline-block; }
.lw-f { letter-spacing: .02em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--cyan); color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.head-link:hover, .head-link[aria-current] { color: var(--cyan); }
@media (max-width: 760px) {
  .main-nav { order: 3; width: 100%; }
  .main-nav ul { gap: 2px 16px; }
  .logo-word { font-size: 1.1rem; }
}
@media (max-width: 440px) {
  .head-row { gap: 8px 12px; }
  .logo { gap: 7px; }
  .logo-set { width: 36px; height: 30px; }
  .logo-word { font-size: .98rem; gap: 4px; }
  .head-actions { gap: 10px; }
  .head-actions .btn-small { min-height: 40px; padding: .45em .7em .35em; font-size: .78rem; }
  .sm-hide { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.channels { background: var(--bg); border-top: 1px solid var(--line); }
.channels ul { list-style: none; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.channels li { flex: none; }
.channels a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 4px 10px 4px 4px; border: 1px solid transparent; white-space: nowrap; }
.ch-num { font-family: var(--display); font-size: .78rem; background: var(--bg-3); color: var(--cyan); padding: 3px 6px 1px; }
.channels a:hover { color: var(--ink); border-color: var(--line-2); }
.channels a[aria-current] { color: var(--ink); border-color: var(--mag); }
.channels a[aria-current] .ch-num { background: var(--mag); color: var(--on-bright); }

/* ---------------------------------------------------------------- textures */
.halftone-bg { position: relative; isolation: isolate; overflow: hidden; }
.halftone-bg::before, .halftone-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halftone-bg::before {
  background-image: radial-gradient(circle, rgba(255, 60, 142, .5) 1.3px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 48%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 48%);
}
.halftone-bg::after {
  background-image: var(--noise-light), radial-gradient(circle, rgba(45, 226, 230, .45) 1.6px, transparent 2px);
  background-size: 180px 180px, 14px 14px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 30%);
  mask-image: linear-gradient(to top, #000 0%, transparent 30%);
}
.scan { position: relative; }
.scan::after { content: ""; position: absolute; inset: 0; background: var(--scan); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 2; }
.scan::before { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(to bottom, transparent, rgba(45, 226, 230, .14), transparent); opacity: 0; pointer-events: none; z-index: 3; }

/* ---------------------------------------------------------------- cut-out headlines */
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .7em; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.cutout { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6.2vw, 3.7rem); line-height: 1.3; margin: 0 0 .45em; letter-spacing: .01em; }
h2.cutout { font-size: clamp(1.45rem, 3.8vw, 2.2rem); margin: 0; }
.cut {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: .1em .32em .02em; margin: .06em .02em;
  background-color: var(--paper); color: var(--on-bright);
  background-image: var(--noise-dark); background-size: 180px 180px;
  clip-path: polygon(0 6%, 9% 0, 37% 4%, 64% 0, 100% 5%, 98% 47%, 100% 94%, 71% 100%, 40% 96%, 12% 100%, 0 93%, 2% 52%);
}
.cut.c0 { background-color: var(--mag); transform: rotate(-1.6deg); }
.cut.c1 { background-color: var(--paper); transform: rotate(1.2deg); clip-path: polygon(2% 0, 30% 5%, 58% 0, 97% 3%, 100% 52%, 97% 100%, 60% 95%, 26% 100%, 0 96%, 3% 48%); }
.cut.c2 { background-color: var(--cyan); transform: rotate(-.6deg) translateY(.04em); }
.cut.c3 { background-color: var(--bg-3); color: var(--ink); background-image: var(--noise-light); transform: rotate(1.8deg); box-shadow: inset 0 0 0 2px var(--cyan); clip-path: none; }
.cut.c4 { background-color: var(--paper); transform: rotate(-2.2deg); clip-path: polygon(0 3%, 45% 0, 100% 6%, 99% 60%, 100% 100%, 52% 95%, 0 100%, 1% 40%); }

/* Masthead: ransom-note letters */
.masthead { padding: 34px 0 46px; border-bottom: 1px solid var(--line); }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.ransom { margin: 0 0 .35em; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 8.8vw, 4.1rem); line-height: 1.12; }
@media (min-width: 861px) { .ransom { font-size: clamp(2.4rem, 4.6vw, 4.1rem); } }
.r-word { display: inline-block; white-space: nowrap; margin-right: .18em; }
.r { display: inline-block; padding: .04em .14em 0; margin: .03em .01em; background-image: var(--noise-dark); background-size: 180px 180px; }
.r0 { background-color: var(--mag); color: var(--on-bright); transform: rotate(-4deg); }
.r1 { background-color: var(--paper); color: var(--on-bright); transform: rotate(3deg) translateY(.05em); }
.r2 { background-color: var(--cyan); color: var(--on-bright); transform: rotate(-2deg); }
.r3 { background-color: var(--bg-3); color: var(--cyan); box-shadow: inset 0 0 0 3px var(--cyan); transform: rotate(4deg); background-image: none; }
.r4 { background-color: var(--paper); color: var(--on-bright); transform: rotate(-3deg) translateY(-.04em); }
.r5 { background-color: var(--mag); color: var(--on-bright); transform: rotate(2deg); }
.mast-lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink); max-width: 36em; }
.mast-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.4em; }
@media (max-width: 860px) { .mast-grid { grid-template-columns: 1fr; } }

/* CRT television */
.crt { margin: 0; }
.crt-bezel {
  background: linear-gradient(160deg, #2c2833, #17151b 60%); border-radius: 36px; padding: 20px 20px 16px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 -6px 18px rgba(0, 0, 0, .6), 0 28px 70px -30px rgba(255, 60, 142, .55), 0 0 0 1px var(--line);
}
.crt-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 26px / 32px; overflow: hidden; background: #000; box-shadow: inset 0 0 50px rgba(0, 0, 0, .95); }
.crt-screen img, .crt-screen a { display: block; width: 100%; height: 100%; object-fit: cover; }
.crt-screen::after { opacity: .55; background: var(--scan), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .65) 100%); }
.crt-knobs { display: flex; justify-content: flex-end; gap: 12px; padding-top: 10px; }
.crt-knobs span { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5a5563, #1a181e); box-shadow: 0 0 0 2px #0b0a0d; }
.crt figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.bars { position: absolute; inset: 0 0 26% 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.bars span:nth-child(1) { background: var(--paper); }
.bars span:nth-child(2) { background: var(--cyan); }
.bars span:nth-child(3) { background: #8f8a96; }
.bars span:nth-child(4) { background: var(--mag); }
.bars span:nth-child(5) { background: #1c8f92; }
.bars span:nth-child(6) { background: #9e1f58; }
.bars span:nth-child(7) { background: #26232d; }
.no-signal { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; margin: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(1rem, 3vw, 1.6rem); color: var(--ink); background: #000; letter-spacing: .06em; }
.crt-small { max-width: 260px; margin: 0 0 24px; }
.static { position: absolute; inset: 0; background-image: var(--noise-light), var(--noise-light); background-size: 120px 120px, 90px 90px; filter: contrast(2.5); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .static { animation: static .5s steps(4) infinite; }
  .no-signal { animation: flicker 4s infinite; }
}
@keyframes static { 0% { background-position: 0 0, 0 0; } 25% { background-position: 30px 50px, -20px 10px; } 50% { background-position: -40px 20px, 15px -30px; } 75% { background-position: 10px -35px, -45px 25px; } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: .9; } }

/* ---------------------------------------------------------------- buttons + links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: .55em 1.15em .45em;
  font-family: var(--display); font-size: 1rem; line-height: 1.1; letter-spacing: .02em; text-decoration: none; text-align: center;
  background: var(--mag); color: var(--on-bright); border: 2px solid var(--mag); border-radius: 2px; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--on-bright); text-decoration: none; transform: rotate(-1deg); }
.btn-small { min-height: 40px; font-size: .85rem; padding: .5em .9em .4em; }
.btn-ghost { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-ghost:hover { background: var(--cyan); color: var(--on-bright); }
.btn-danger { background: transparent; color: var(--mag); border-color: var(--mag); }
.btn-danger:hover { background: var(--mag); border-color: var(--mag); color: var(--on-bright); }
.text-link { color: var(--cyan); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--mag); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------------------------------------------------------------- sections */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.lede.prose p { color: var(--ink-2); }
.count-line { color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: .8em 0 0; }
.count-line a[aria-current] { color: var(--ink); font-weight: 700; text-decoration-color: var(--mag); }
.disclaimer { color: var(--ink-2); font-size: .9rem; margin-top: 32px; max-width: 70ch; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--mag); }
.crumbs a { color: var(--ink-2); }

/* Channel guide (home) */
.guide { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide li { border-bottom: 1px solid var(--line); }
.guide a { display: grid; grid-template-columns: 6.2rem minmax(0, 13rem) minmax(0, 1fr) auto; gap: 6px 22px; align-items: baseline; padding: 14px 10px; color: var(--ink); text-decoration: none; position: relative; }
.g-num { font-family: var(--display); color: var(--mag); }
.g-name { font-family: var(--display); font-size: 1.15rem; }
.g-blurb { color: var(--ink-2); }
.g-count { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.guide a:hover { background: var(--bg-2); color: var(--ink); }
.guide a:hover .g-name { text-shadow: -2px 0 var(--mag), 2px 0 var(--cyan); }
@media (max-width: 700px) {
  .guide a { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .g-blurb, .g-count { grid-column: 2; }
}

/* ---------------------------------------------------------------- work cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 34px 24px; }
.card { position: relative; background: var(--bg-2); padding: 10px 10px 14px; transform: rotate(-.5deg); transition: transform .2s; }
.card:nth-child(2n) { transform: rotate(.7deg); }
.card:nth-child(3n) { transform: rotate(-1deg); }
.card::before {
  content: ""; position: absolute; z-index: 4; top: -11px; left: 50%; width: 92px; height: 22px; margin-left: -46px;
  background: rgba(245, 241, 232, .5); transform: rotate(-4deg);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 18%);
}
.card:nth-child(2n)::before { transform: rotate(5deg); left: 30%; }
.card:hover, .card:focus-within { transform: rotate(0) translateY(-3px); }
.card-link { display: block; color: var(--ink); text-decoration: none; }
.card-link:hover { color: var(--ink); }
.card-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .scan::after, .card:focus-within .scan::after, .lightbox:hover::after, .lightbox:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .card:hover .scan::before, .card:focus-within .scan::before, .lightbox:hover::before { opacity: 1; animation: roll 1.6s linear infinite; }
}
@keyframes roll { from { top: -30%; } to { top: 100%; } }
.card-text { height: 100%; padding: 16px 18px; position: relative; background: radial-gradient(circle, rgba(255, 60, 142, .35) 1.2px, transparent 1.6px) 0 0 / 8px 8px, var(--bg-3); }
.card-text::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg-3) 45%, rgba(38, 35, 45, .6) 70%, transparent); }
.card-text > * { position: relative; }
.card-q { font-family: var(--display); font-size: 3.4rem; line-height: .8; color: var(--mag); display: block; height: .55em; }
.card-text p { margin: 0; font-size: .95rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.is-spoiler .card-media img { filter: blur(16px) brightness(.65); transform: scale(1.1); }
.badge { position: absolute; z-index: 3; left: 10px; top: 10px; font-family: var(--display); font-size: .78rem; padding: 4px 8px 2px; }
.badge-spoiler { background: var(--mag); color: var(--on-bright); }
.card-body { padding: 12px 4px 0; }
.card-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin: 0 0 4px; }
.card-title { font-size: 1.12rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.card:hover .card-title, .card:focus-within .card-title { text-shadow: -1.5px 0 var(--mag), 1.5px 0 rgba(45, 226, 230, .8); }
.card-meta { font-size: .9rem; color: var(--ink-2); margin: 0; padding-right: 3.6rem; }
.card-hearts { position: absolute; right: 12px; bottom: 12px; margin: 0; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .9rem; }
.i-heart { fill: var(--mag); flex: none; }
.card.is-big .card-media { aspect-ratio: 16 / 10; }
.card.is-big .card-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
.card.is-big .card-text p { -webkit-line-clamp: 9; font-size: 1.05rem; }
.card.is-text .card-media { aspect-ratio: auto; min-height: 210px; display: flex; flex-direction: column; }
.card.is-text .card-text { flex: 1 1 auto; height: auto; }
.card.is-big.is-text .card-media { min-height: 0; }
.card.is-big .card-text { padding: 22px 26px 26px; }
.card.is-big.is-text .card-text p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); -webkit-line-clamp: 5; }
@media (min-width: 900px) {
  .grid-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-feature .is-big { grid-column: span 2; }
  .grid-feature.count-3 .is-big { grid-row: span 2; }
  .grid-feature.count-1 { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .grid-feature.count-1 .is-big { grid-column: auto; }
}

/* Empty state */
.empty { text-align: left; padding: 28px; background: var(--bg-2); border: 1px dashed var(--line-2); max-width: 680px; }
.empty-signal { display: inline-block; font-family: var(--display); font-size: 1.4rem; color: var(--ink); background: #000; padding: 10px 16px 6px; position: relative; overflow: hidden; margin-bottom: 14px; }
.empty-signal::after { content: ""; position: absolute; inset: 0; background: var(--noise-light), var(--scan); opacity: .9; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin-top: 40px; font-weight: 600; }
.pager span { color: var(--ink-2); }

/* ---------------------------------------------------------------- teletext listings */
.teletext { background: #000; padding: 18px 20px 20px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(45, 226, 230, .5); position: relative; }
.teletext::after { content: ""; position: absolute; inset: 0; background: var(--scan); opacity: .35; pointer-events: none; }
.tt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-family: var(--display); font-size: .85rem; color: var(--ink); margin-bottom: 12px; }
.tt-head span:nth-child(2) { color: var(--cyan); }
.tt-head span:nth-child(3) { color: var(--mag); }
.tt-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 3.4vw, 2rem); color: var(--on-bright); background: var(--cyan); display: inline-block; padding: 6px 12px 2px; margin: 0 0 16px; }
.tt-list { list-style: none; margin: 0; padding: 0; columns: 3 15rem; column-gap: 28px; }
.tt-list li { break-inside: avoid; }
.tt-list a { display: flex; align-items: baseline; gap: 6px; padding: 5px 4px; color: var(--ink); text-decoration: none; }
.tt-list a:hover { background: var(--cyan); color: var(--on-bright); }
.tt-list a:hover .tt-n { color: var(--on-bright); }
.tt-name { flex: 0 1 auto; }
.tt-dots { flex: 1 1 auto; border-bottom: 2px dotted rgba(245, 241, 232, .3); transform: translateY(-.3em); min-width: 12px; }
.tt-n { font-family: var(--display); color: var(--mag); font-size: .9rem; }
.tt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 18px 0 0; position: relative; z-index: 1; }
.tt-foot a { font-family: var(--display); color: var(--on-bright); background: var(--mag); padding: 6px 10px 3px; text-decoration: none; }
.tt-foot a:hover { background: var(--cyan); color: var(--on-bright); }
.tt-foot span { color: var(--ink-2); }
.tt-wide .tt-list { columns: 3 14rem; }
.tt-group { margin-bottom: 18px; position: relative; z-index: 1; }
.tt-letter { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--mag); margin: 6px 0 6px; border-bottom: 2px solid var(--mag); scroll-margin-top: 16px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.az a { font-family: var(--display); min-width: 2.2em; min-height: 2.2em; display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line-2); }
.az a:hover { color: var(--on-bright); background: var(--cyan); border-color: var(--cyan); }

/* ---------------------------------------------------------------- how to take part */
.take-part { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.take-copy .cutout { margin-bottom: 22px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 26px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 14px 4.2rem; min-height: 3.6rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.15rem; color: var(--on-bright); background: var(--cyan); transform: rotate(-4deg);
}
.steps li:nth-child(2n)::before { background: var(--mag); transform: rotate(3deg); }
.photo-frame { margin: 0; background: var(--bg-2); padding: 12px 12px 10px; position: relative; transform: rotate(1.4deg); }
.photo-frame::before { content: ""; position: absolute; top: -12px; left: 18%; width: 110px; height: 24px; background: rgba(245, 241, 232, .5); transform: rotate(-5deg); z-index: 1; }
.photo-frame figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.photo-frame .photo-credit { opacity: 1; font-size: inherit; }
.photo-frame.tilt { transform: rotate(-1.6deg); align-self: start; }
@media (max-width: 860px) { .take-part { grid-template-columns: 1fr; } .photo-frame { max-width: 520px; } }

/* ---------------------------------------------------------------- work page */
.work-head { padding: 26px 0 26px; border-bottom: 1px solid var(--line); }
.work-title { font-size: clamp(1.9rem, 5.6vw, 3.4rem); }
.vhs-label { list-style: none; margin: 8px 0 22px; padding: 10px 16px 8px; display: inline-flex; flex-wrap: wrap; gap: 6px 0; background-color: var(--paper); color: var(--on-bright); background-image: var(--noise-dark); background-size: 180px; transform: rotate(-.6deg); max-width: 100%; }
.vhs-label li { padding: 0 14px; border-left: 2px solid var(--on-bright); }
.vhs-label li:first-child { padding-left: 0; border-left: 0; }
.vhs-label a { color: var(--on-bright); font-weight: 700; }
.vhs-label a:hover { color: #6b0f37; }
.vl-k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
.vhs-label .vl-k { color: #5a1031; }
.vl-warn { color: var(--on-bright); }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.by-who { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
a.by-who:hover strong { color: var(--cyan); }
.avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg-3); display: inline-grid; place-items: center; flex: none; box-shadow: 0 0 0 2px var(--mag); font-family: var(--display); color: var(--cyan); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-team { background: var(--mag); color: var(--on-bright); font-size: .85rem; }
.avatar-mid { width: 96px; height: 96px; font-size: 2rem; }
.avatar-big { width: clamp(110px, 18vw, 170px); height: clamp(110px, 18vw, 170px); font-size: 3.4rem; box-shadow: 0 0 0 3px var(--mag), 0 0 0 9px var(--bg), 0 0 0 11px var(--cyan); }
.avatar.is-pending { box-shadow: 0 0 0 2px var(--cyan); opacity: .85; }
.heart-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; font: 600 1rem var(--body);
  color: var(--ink); background: transparent; border: 2px solid var(--mag); border-radius: 2px; cursor: pointer; text-decoration: none;
}
.heart-btn .i-heart { width: 20px; height: 19px; fill: none; stroke: var(--mag); stroke-width: 2.2; }
.heart-btn:hover { background: rgba(255, 60, 142, .14); color: var(--ink); }
.heart-btn[aria-pressed="true"] { background: var(--mag); color: var(--on-bright); }
.heart-btn[aria-pressed="true"] .i-heart { fill: var(--on-bright); stroke: var(--on-bright); }
.heart-count { font-family: var(--display); font-size: .95rem; padding-left: 10px; border-left: 1px solid currentColor; }
.heart-btn.is-static { cursor: default; }
.hearts form { margin: 0; }
.work-body { padding-top: 32px; padding-bottom: 20px; }
.gallery { display: grid; gap: 14px; margin-bottom: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-1 { grid-template-columns: 1fr; }
.shot { margin: 0; }
.shot.lead { grid-column: 1 / -1; }
.lightbox { display: block; background: #000; }
.lightbox::after { background: var(--scan); }
.shot.lead img { width: 100%; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.shot:not(.lead) img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--mag); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.2rem; color: var(--cyan); margin: 1.4em 0 .4em; }
.prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--cyan); font-style: italic; color: var(--ink); }
.prose hr { border: 0; text-align: center; margin: 2em 0; height: auto; }
.prose hr::before { content: "* * *"; font-family: var(--display); color: var(--mag); letter-spacing: .6em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--mag); font-weight: 700; }
.work-text { font-size: 1.1rem; line-height: 1.75; }
.work-text.is-story > p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.6em; line-height: .9; padding: .06em .12em 0 0; color: var(--mag); }
.spoiler-gate { padding: 16px 18px; border: 2px dashed var(--mag); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.spoiler-gate p { margin: 0; }
.js .spoiler-wrap:not(.revealed) .spoiler-content { filter: blur(20px) saturate(.5); pointer-events: none; user-select: none; max-height: 70vh; overflow: hidden; }
.js .spoiler-wrap:not(.revealed) .spoiler-content .scan::before { display: none; }
.work-foot { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; max-width: 68ch; }
.tags a { font-weight: 600; margin-right: .4em; }
.tags .vl-k { color: var(--ink-2); }
.credit-note { color: var(--ink-2); font-size: .92rem; }
.report-line { font-size: .9rem; }
.report-line a { color: var(--ink-2); }
.report-line a:hover { color: var(--mag); }
.status-banner { padding: 14px 18px; border: 2px solid var(--line-2); background: var(--bg-2); margin: 20px 0; }
.status-banner p { margin: 0 0 .4em; }
.status-banner p:last-child { margin-bottom: 0; }
.status-pending { border-color: var(--paper); }
.status-rejected, .status-removed { border-color: var(--mag); }
.status-published { border-color: var(--cyan); }
.status-banner .btn { margin-right: 10px; }

/* Lightbox dialog */
.lb { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--ink); }
.lb::backdrop { background: rgba(5, 4, 7, .92); }
.lb-fig { margin: 0; }
.lb-fig img { max-width: 94vw; max-height: 80vh; width: auto; margin: 0 auto; box-shadow: 0 0 0 1px var(--line); }
.lb-fig figcaption { text-align: center; color: var(--ink-2); font-size: .9rem; margin: 8px auto 0; max-width: 70ch; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin-top: 12px; }
.lb-bar button { font: 600 .95rem var(--body); min-height: 44px; padding: 6px 14px; background: var(--bg-2); color: var(--ink); border: 2px solid var(--cyan); cursor: pointer; }
.lb-bar button:hover { background: var(--cyan); color: var(--on-bright); }
.lb-pos { color: var(--ink-2); }

/* ---------------------------------------------------------------- show + profile heads */
.filter-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.filter-line a { color: var(--ink-2); font-weight: 600; }
.filter-line a[aria-current] { color: var(--ink); text-decoration-color: var(--mag); text-decoration-thickness: 3px; }
.filter-line .n { font-weight: 400; }
.profile-grid { display: flex; flex-wrap: wrap; gap: 20px 34px; align-items: center; }
.profile-grid > div:last-child { flex: 1 1 320px; min-width: 0; }
.bio { max-width: 60ch; color: var(--ink); }
.tag-index { list-style: none; padding: 0; margin: 0; columns: 4 12rem; column-gap: 24px; }
.tag-index li { padding: 4px 0; break-inside: avoid; }
.tag-index .n { color: var(--ink-2); font-size: .9rem; }
.search-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-row { display: flex; gap: 10px; max-width: 620px; }
.search-row input { flex: 1 1 auto; min-width: 0; }
.show-hits { margin-bottom: 18px; }

/* ---------------------------------------------------------------- forms */
.form { max-width: 720px; }
.field { margin: 0 0 18px; }
.field label, .label-like { display: block; font-weight: 600; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--ink-2); }
.hint { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--deep); border: 2px solid #5b5664; border-radius: 3px;
}
textarea { min-height: 120px; line-height: 1.55; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: 2px solid var(--cyan); outline-offset: 1px; }
input[type=file] { font: inherit; font-size: .95rem; color: var(--ink-2); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 .9rem var(--body); margin-right: 12px; padding: 8px 14px; background: var(--bg-3); color: var(--ink); border: 2px solid var(--cyan); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--mag); width: 1.25rem; height: 1.25rem; margin: .15em 0 0; flex: none; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-weight: 400; cursor: pointer; }
.choice-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 18px; }
.checks { margin: 8px 0 20px; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.panel { border: 1px solid var(--line); background: var(--bg-2); padding: 18px 18px 8px; }
.panel legend { font-family: var(--display); font-weight: 400; font-size: 1.15rem; padding: 0 8px; margin-left: -8px; display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 16px; }
.panel legend + * { clear: both; }
.panel legend .opt { font-family: var(--body); font-size: .9rem; }
.step { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; background: var(--mag); color: var(--on-bright); font-size: .95rem; transform: rotate(-4deg); }
.form-page .form { max-width: 860px; }
.type-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-bottom: 12px; }
.type-opt { position: relative; display: block; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.to-box { display: block; height: 100%; padding: 12px 14px; border: 2px solid var(--line-2); background: var(--deep); }
.to-ch { display: block; font-family: var(--display); font-size: .78rem; color: var(--cyan); }
.to-name { display: block; font-weight: 700; margin: 2px 0 4px; }
.to-blurb { display: block; font-size: .88rem; color: var(--ink-2); }
.type-opt input:checked + .to-box { border-color: var(--mag); background: rgba(255, 60, 142, .12); box-shadow: inset 0 0 0 1px var(--mag); }
.type-opt input:focus-visible + .to-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.type-opt:hover .to-box { border-color: var(--cyan); }
.md-help { margin: -6px 0 18px; font-size: .92rem; color: var(--ink-2); }
.md-help summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
.md-help ul { margin: 10px 0; padding-left: 1.2em; }
.img-edit { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.img-edit li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.img-edit img { width: 120px; height: 120px; object-fit: cover; background: #000; }
.slot { border-top: 1px dashed var(--line); padding-top: 14px; }
.more-slots { margin: 6px 0 14px; }
.more-slots summary { cursor: pointer; color: var(--cyan); font-weight: 600; margin-bottom: 12px; }
.choice-row { margin-bottom: 8px; }
.panel-declare { border-color: var(--mag); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.form-errors { border-left: 6px solid var(--mag); background: rgba(255, 60, 142, .1); padding: 14px 18px; margin: 0 0 24px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-errors:focus { outline: 3px solid var(--focus); }
.form-danger { border-top: 2px solid var(--mag); padding-top: 18px; }
.pass-wrap { display: flex; gap: 8px; }
.pass-wrap input { flex: 1 1 auto; min-width: 0; }
.pass-toggle { flex: none; min-height: 48px; padding: 0 14px; font: 600 .9rem var(--body); color: var(--cyan); background: transparent; border: 2px solid #5b5664; border-radius: 3px; cursor: pointer; }
.pass-toggle:hover { border-color: var(--cyan); }
.aside-line { margin-top: 18px; color: var(--ink-2); }
.flash { margin: 18px 0 0; padding: 12px 16px; border-left: 6px solid var(--cyan); background: rgba(45, 226, 230, .08); }
.flash-error { border-left-color: var(--mag); background: rgba(255, 60, 142, .1); }
.flash-info { border-left-color: var(--paper); background: var(--bg-2); }
.message .prose { margin-top: 10px; }
.auth .form { max-width: 520px; }

/* Account */
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.h-plain { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 0 0 16px; }
.my-works { list-style: none; margin: 0 0 14px; padding: 0; }
.my-work { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mw-thumb { width: 96px; height: 96px; background: var(--bg-3); display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-size: 2.4rem; color: var(--mag); }
.mw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mw-info h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.mw-status { margin: 0; font-size: .88rem; color: var(--ink-2); }
.status-pill { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; margin-right: 6px; border: 2px solid var(--paper); color: var(--ink); }
.status-published .status-pill { border-color: var(--cyan); color: var(--cyan); }
.status-rejected .status-pill, .status-removed .status-pill { border-color: var(--mag); color: var(--mag); }
.mw-reason { margin: 6px 0; font-size: .95rem; }
.mw-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .95rem; }
.mw-actions form { margin: 0; }
.account-side { background: var(--bg-2); padding: 20px; }
.profile-card { margin-bottom: 14px; }
.profile-card .avatar { margin-bottom: 10px; }
.bio-small { font-size: .92rem; color: var(--ink-2); }
.pending-note { font-size: .9rem; color: var(--cyan); }
.side-links { list-style: none; padding: 0; margin: 0 0 16px; }
.side-links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.avatar-row { display: flex; gap: 14px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- info pages */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .photo-frame { max-width: 360px; } }
.info-page .prose h2, .message .prose h2 { font-size: 1.3rem; }
.rule-list { list-style: none; counter-reset: rule; padding: 0; margin: 0 0 30px; max-width: 76ch; }
.rule-list > li { counter-increment: rule; position: relative; padding: 0 0 22px 4.4rem; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.rule-list > li::before { content: counter(rule); position: absolute; left: 0; top: -.1em; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--mag); }
.rule-list > li:nth-child(2n)::before { color: var(--cyan); }
.rule-list h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0 0 .4em; }
.rule-list ul { padding-left: 1.2em; }
.rule-list li li { margin-bottom: .35em; }
.rules-after { margin-bottom: 30px; }
.help-box { border: 2px solid var(--cyan); background: rgba(45, 226, 230, .06); padding: 18px 20px 6px; max-width: 76ch; margin-top: 30px; }
.help-box h2 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin: 0 0 12px; color: var(--cyan); }
.help-box ul { padding-left: 1.2em; }
.help-box li { margin-bottom: .45em; }

/* Photo credits (kit list restyled) */
.kit-credits-list img { background: #000; }
.photo-credit a { color: var(--cyan); }

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: 60px; background: var(--deep); border-top: 3px solid var(--cyan); position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 12px; background: radial-gradient(circle, var(--mag) 1.4px, transparent 1.8px) 0 0 / 9px 9px; opacity: .7; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px 40px; padding-top: 38px; padding-bottom: 20px; }
.foot-logo { font-family: var(--display); font-size: 1.5rem; margin: 0 0 8px; }
.foot-brand p { color: var(--ink-2); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-h { font-family: var(--display); color: var(--mag); margin: 0 0 10px; font-size: .95rem; }
.foot-nav ul { list-style: none; padding: 0; margin: 0; }
.foot-nav li { padding: 3px 0; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--cyan); text-decoration: underline; }
.foot-small { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; font-size: .88rem; color: var(--ink-2); }
.foot-small p { max-width: 90ch; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot-nav { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media print {
  .site-head, .channels, .site-foot, .hearts, .report-line { display: none; }
  body { background: #fff; color: #000; }
}
