/* WhatIsPaintball.com - since 2002
   Palette: aluminum + graphite (a nod to the 2002 grey site), paint-fill magenta, boundary-tape yellow. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff") format("woff");
  font-weight: 400 850;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/sourceserif4-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/sourceserif4-italic-var.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #D8DBDE;
  --surface: #F3F4F5;
  --surface-2: #E4E7E9;
  --ink: #1C2024;
  --ink-2: #4A5259;
  --line: #B3B9BF;
  --fill: #C4005F;
  --splat: #D6006F;
  --on-splat: #FFFFFF;
  --tape: #FFC400;
  --retro-bg: #999999;
  --retro-panel: #C0C0C0;
  --retro-ink: #111111;
  --footer-bg: #1C2024;
  --footer-ink: #D9DDE0;
  --footer-ink-2: #A3ACB4;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141719;
    --surface: #1D2124;
    --surface-2: #252A2E;
    --ink: #E7EAEC;
    --ink-2: #A6AFB7;
    --line: #3A4248;
    --fill: #FF5AAE;
    --splat: #E8007A;
    --on-splat: #FFFFFF;
    --tape: #FFCE3A;
    --retro-bg: #3B3B3B;
    --retro-panel: #4A4A4A;
    --retro-ink: #EDEDED;
    --footer-bg: #0E1012;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141719;
  --surface: #1D2124;
  --surface-2: #252A2E;
  --ink: #E7EAEC;
  --ink-2: #A6AFB7;
  --line: #3A4248;
  --fill: #FF5AAE;
  --splat: #E8007A;
  --on-splat: #FFFFFF;
  --tape: #FFCE3A;
  --retro-bg: #3B3B3B;
  --retro-panel: #4A4A4A;
  --retro-ink: #EDEDED;
  --footer-bg: #0E1012;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--fill); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--fill); }
:focus-visible { outline: 3px solid var(--fill); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.1; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 650;
  font-stretch: 110%;
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  line-height: 1.2;
}
.btn:hover { background: var(--ink); color: var(--surface); }
.btn--fill { background: var(--fill); border-color: var(--fill); color: #fff; }
.btn--fill:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
:root[data-theme="dark"] .btn--fill { color: #1A0010; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--fill { color: #1A0010; } }

.section-title {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  letter-spacing: -0.01em;
}
.section-intro { color: var(--ink-2); max-width: 40rem; margin-top: -0.25rem; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.masthead__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__splat { width: 2.1rem; height: 2.1rem; fill: var(--splat); flex: none; }
.brand__name {
  font-weight: 850; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(0.92rem, 0.8rem + 0.6vw, 1.2rem); letter-spacing: 0.01em; line-height: 1;
}
.brand__tld { color: var(--ink-2); }
.brand__text { display: flex; align-items: center; gap: 0.6rem; }
.brand__since {
  font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--fill);
  font-size: 1rem; white-space: nowrap; padding-left: 0.6rem; border-left: 1px solid var(--line); line-height: 1.2;
}
@media (max-width: 36em) {
  .brand__text { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .brand__since { border-left: 0; padding-left: 0; font-size: 0.92rem; line-height: 1; }
}
.menu-btn {
  display: none; align-items: center; gap: 0.5rem; background: none; border: 2px solid var(--ink); color: var(--ink);
  border-radius: var(--radius); padding: 0.45rem 0.7rem; font: 600 0.95rem var(--sans); cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-btn__bars::before { position: absolute; top: -6px; }
.menu-btn__bars::after { position: absolute; top: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.3rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--fill); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

@media (max-width: 56em) {
  .menu-btn { display: inline-flex; }
  .nav { flex-basis: 100%; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 0.25rem; }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 0.75rem 0; font-size: 1.05rem; }
  .brand__since { font-size: 0.9rem; }
}
@media (max-width: 26em) {
  .brand__name { font-size: 0.84rem; }
  .brand__splat { width: 1.8rem; height: 1.8rem; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.no-js .nav { display: block; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 60em) { .hero { grid-template-columns: 1.25fr 0.75fr; } }
.hero__title {
  font-weight: 850; font-stretch: 125%; letter-spacing: -0.025em; line-height: 0.92;
  font-size: clamp(2.6rem, 0.6rem + 9.6vw, 6.6rem); margin: 0 0 0.45em;
  position: relative; z-index: 0; isolation: isolate;
}
@media (min-width: 60em) { .hero__title { font-size: clamp(4rem, 0.6rem + 5.6vw, 6.6rem); } }
.hero__word { white-space: nowrap; }
.hero__q { position: relative; display: inline-block; margin-left: 0.08em; }
.hero__qmark { position: relative; z-index: 1; color: var(--on-splat); }
.hero__splat {
  position: absolute; z-index: -1; fill: var(--splat);
  width: 1.75em; height: 1.75em; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__splat { animation: splat 520ms cubic-bezier(.2,.9,.3,1.25) 250ms both; }
  .hero__qmark { animation: qmark 300ms ease-out 420ms both; }
  @keyframes splat {
    0% { transform: translate(-50%, -50%) rotate(-30deg) scale(0.05); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; }
  }
  @keyframes qmark { from { color: var(--ink); } to { color: var(--on-splat); } }
}
.hero__lede { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; max-width: 36rem; margin-bottom: 0.8rem; }
.hero__since { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.1rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 50%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.hero__photo figcaption { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.5rem; }
@media (max-width: 59.99em) { .hero__photo img { aspect-ratio: 16 / 10; } }

/* ---------- home sections ---------- */
.facts { padding-block: clamp(1.5rem, 4vw, 3rem); }
.facts__list { margin: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.facts__list > div { border-top: 3px solid var(--ink); padding-top: 0.7rem; }
.facts__list dt { font-weight: 750; font-stretch: 112%; font-size: 1.05rem; margin-bottom: 0.3rem; }
.facts__list dd { margin: 0; color: var(--ink-2); }

.start { padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem); }
.start__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 48em) { .start__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.start__list li { border-bottom: 1px solid var(--line); }
.start__link { display: block; padding: 1.1rem 0; text-decoration: none; }
.start__title { display: block; font-weight: 750; font-stretch: 115%; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); line-height: 1.15; margin-bottom: 0.3rem; }
.start__summary { display: block; color: var(--ink-2); }
.start__link:hover { color: var(--ink); }
.start__link:hover .start__title { color: var(--fill); }

.ways { background: var(--surface-2); padding-block: clamp(2rem, 5vw, 3.5rem); border-block: 1px solid var(--line); }
.ways__grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.ways__grid a {
  display: block; height: 100%; text-decoration: none; background: var(--surface); padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--radius); border-left: 6px solid var(--splat);
}
.ways__grid a:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ways__grid strong { display: block; font-stretch: 118%; font-weight: 800; font-size: 1.2rem; margin-bottom: 0.2rem; }
.ways__grid span { color: var(--ink-2); font-size: 0.98rem; }

.archive { padding-block: clamp(2rem, 5vw, 3.5rem); }
.archive__cols { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.25rem; }
.archive__col h3 { font-size: 1.05rem; font-weight: 750; font-stretch: 112%; border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; margin-bottom: 0.5rem; }
.archive__col h3 a { text-decoration: none; }
.archive__col ul { list-style: none; margin: 0; padding: 0; }
.archive__col li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.archive__col li a { text-decoration: none; font-family: var(--serif); font-size: 1.05rem; }
.archive__col li a:hover { text-decoration: underline; text-decoration-color: var(--fill); }
.archive__more { font-size: 0.92rem; margin-top: 0.5rem; }
.strip { list-style: none; margin: 2rem 0 1rem; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(4, 1fr); }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 40em) { .strip { grid-template-columns: repeat(2, 1fr); } }

.since { background: var(--retro-bg); color: var(--retro-ink); padding-block: clamp(2rem, 5vw, 3.5rem); }
.since__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52em) { .since__inner { grid-template-columns: 0.9fr 1.1fr; } }
.since__art { background: var(--retro-panel); padding: 1rem; border: 2px outset #d8d8d8; display: grid; gap: 1rem; justify-items: center; }
.since__sphere { width: 9rem; border-radius: 50%; }
.since h2 { font-stretch: 125%; font-weight: 850; font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem); letter-spacing: -0.02em; }
.since p { font-family: var(--serif); font-size: 1.1rem; max-width: 34rem; }
.since a { color: inherit; font-family: var(--sans); font-weight: 700; }

/* ---------- article ---------- */
.article-layout, .page-layout {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 3rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem;
}
@media (min-width: 64em) { .article-layout { grid-template-columns: minmax(0, 44rem) 18rem; justify-content: space-between; } }
.page-layout .article { max-width: 44rem; }
.crumbs { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }
.article__title { font-weight: 850; font-stretch: 118%; letter-spacing: -0.02em; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.02; }
.article__summary { font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 38rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 0.8rem; border-block: 1px solid var(--line); margin: 1.25rem 0 1.75rem; font-size: 0.95rem; }
.article__meta p { margin: 0; }
.article__by { font-weight: 650; }
.article__time { color: var(--ink-2); }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 650; padding: 0.15rem 0.5rem; border-radius: 3px; line-height: 1.4; }
.tag--archive { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tag--new { background: var(--fill); color: #fff; }
:root[data-theme="dark"] .tag--new { color: #1A0010; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--new { color: #1A0010; } }
.article__hero { margin: 0 0 1.75rem; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

.note {
  background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem 0.2rem 1.6rem; margin: 0 0 2rem;
  position: relative; box-shadow: inset 0 0 0 1px var(--line);
}
.note::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; border-radius: var(--radius) 0 0 var(--radius);
  background: repeating-linear-gradient(-45deg, var(--tape) 0 8px, var(--ink) 8px 16px);
}
.note__label { font-weight: 750; font-stretch: 112%; font-size: 0.95rem; margin-bottom: 0.3rem; }
.note p { font-size: 1rem; }

.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.prose > * { max-width: 40rem; }
.prose h2 { font-family: var(--sans); font-stretch: 112%; font-weight: 780; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); margin: 2.2rem 0 0.7rem; line-height: 1.15; }
.prose h3 { font-family: var(--sans); font-weight: 720; font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--fill); }
.prose strong { font-weight: 650; }
.prose a { text-decoration-color: var(--fill); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 4px solid var(--line); color: var(--ink-2); }
.prose .fig { margin: 1.75rem 0; }
.prose .fig img { border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); max-height: 28rem; width: auto; }
.prose .fig figcaption, .about__banner figcaption, .about__relics figcaption { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-2); margin-top: 0.5rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; max-width: 100%; }
.prose table { border-collapse: collapse; font-family: var(--sans); font-size: 0.95rem; line-height: 1.4; min-width: 36rem; width: 100%; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.prose--dict dl { margin: 0; }
.prose--dict dt { font-family: var(--sans); font-weight: 750; font-size: 1.05rem; margin-top: 1rem; }
.prose--dict dd { margin: 0.15rem 0 0; padding-left: 0.9rem; border-left: 3px solid var(--line); }

.related { margin-top: 3rem; border-top: 3px solid var(--ink); padding-top: 1rem; }
.related h2 { font-stretch: 112%; font-size: 1.3rem; }
.related ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.related li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.related li a { font-weight: 650; display: block; }
.related li span { color: var(--ink-2); font-size: 0.95rem; }

.rail { display: none; }
@media (min-width: 64em) {
  .rail { display: block; }
  .rail__box { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 1.5rem; }
  .rail__title { font-weight: 750; font-stretch: 112%; margin-bottom: 0.4rem; }
  .rail__box ul { list-style: none; margin: 0; padding: 0; }
  .rail__box li { padding: 0.35rem 0; border-top: 1px solid var(--line); }
  .rail__box a { text-decoration: none; }
  .rail__box a:hover { text-decoration: underline; }
  .ad--rail { position: sticky; top: 1.5rem; }
}

.about__banner { margin: 0 0 2rem; }
.about__banner img { width: 100%; border-radius: var(--radius); }
.about__relics { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2rem; }
.about__relics figure { margin: 0; }
.about__relics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- index ---------- */
.index { padding-block: clamp(1.5rem, 4vw, 3rem); }
.index__head h1 { font-weight: 850; font-stretch: 125%; letter-spacing: -0.02em; font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem); }
.index__head > p { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); max-width: 42rem; }
.index__jump ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.index__jump a { display: inline-block; text-decoration: none; padding: 0.35rem 0.75rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.92rem; font-weight: 600; }
.index__jump a:hover { background: var(--ink); color: var(--surface); }
.index__cat { margin-top: 2.75rem; display: grid; gap: 0.5rem 3rem; grid-template-columns: 1fr; scroll-margin-top: 1rem; }
@media (min-width: 56em) { .index__cat { grid-template-columns: 15rem 1fr; } }
.index__cathead h2 { font-stretch: 118%; font-weight: 800; font-size: 1.5rem; border-top: 3px solid var(--ink); padding-top: 0.6rem; }
.index__cathead p { color: var(--ink-2); }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.index__list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.index__list a { font-weight: 700; font-stretch: 108%; font-size: 1.15rem; text-decoration: none; }
.index__list a:hover { text-decoration: underline; text-decoration-color: var(--fill); color: var(--ink); }
.index__summary { font-family: var(--serif); margin: 0.2rem 0 0.25rem; }
.index__by { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
.index__time::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); vertical-align: middle; margin: 0 0.5rem 0 0.3rem; }
.index__cat .ad { grid-column: 1 / -1; }

/* ---------- gallery ---------- */
.gallery { padding-block: clamp(1.5rem, 4vw, 3rem); }
.gallery__grid { list-style: none; margin: 2rem 0; padding: 0; columns: 3 18rem; column-gap: 1rem; }
.gallery__grid > li { break-inside: avoid; margin-bottom: 1rem; }
.gallery__grid figure { margin: 0; }
.gallery__grid img { width: 100%; border-radius: var(--radius); }
.gallery__grid figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.35rem; }
.gallery__note { color: var(--ink-2); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; color: #fff; }
.lightbox::backdrop { background: rgba(10, 12, 14, 0.88); }
.lightbox__img { max-width: 100%; max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox__cap { text-align: center; margin: 0.6rem 0 0; }
.lightbox__close { display: block; margin: 0 0 0.5rem auto; background: #fff; color: #111; border: 0; border-radius: var(--radius); font: 650 0.95rem var(--sans); padding: 0.45rem 0.9rem; cursor: pointer; }

/* ---------- 404 ---------- */
.notfound__inner { padding-block: 3rem 4rem; max-width: 46rem; }
.notfound__splat { width: 7rem; fill: var(--splat); margin-bottom: 1rem; }
.notfound h1 { font-stretch: 120%; font-weight: 850; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.notfound ul { padding-left: 1.2rem; margin-bottom: 2rem; }
.notfound li { margin-bottom: 0.4rem; }

/* ---------- ads ---------- */
.ad { display: none; }
.ad--live { display: block; margin: 2rem 0; min-height: 250px; }
.ad--rail.ad--live { min-height: 600px; margin: 0; }
.ad--placeholder {
  display: grid; place-items: center; margin: 2rem 0; min-height: 120px; border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-2); font: 600 0.85rem var(--sans); background: repeating-linear-gradient(135deg, transparent 0 12px, var(--surface-2) 12px 14px);
}
.ad--rail.ad--placeholder { min-height: 600px; margin: 0; }
.ad--placeholder::after { content: "Ad space (" attr(data-ad) ")"; }
.prose .ad--placeholder, .prose .ad--live { max-width: 40rem; }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 0; }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 2.5rem var(--gutter) 2rem;
  display: grid; gap: 2rem; grid-template-columns: 1fr;
}
@media (min-width: 52em) { .footer__inner { grid-template-columns: 1.2fr 1fr; } .footer__meta { grid-column: 1 / -1; } }
.footer a { color: var(--footer-ink); }
.footer a:hover { color: #fff; }
.footer__splat { width: 3rem; fill: #E8007A; margin-bottom: 0.5rem; }
.footer__name { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: 1.15rem; margin-bottom: 0.2rem; }
.footer__since { font-family: var(--serif); font-style: italic; color: var(--footer-ink-2); }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { padding: 0.25rem 0; }
.footer__meta { border-top: 1px solid #3A4248; padding-top: 1.25rem; font-size: 0.88rem; color: var(--footer-ink-2); }
.footer__meta p { margin-bottom: 0.5rem; }
.theme-btn { background: none; border: 1px solid #5A636B; color: var(--footer-ink); border-radius: var(--radius); padding: 0.4rem 0.8rem; font: 600 0.85rem var(--sans); cursor: pointer; margin-top: 0.5rem; }
.theme-btn:hover { border-color: var(--footer-ink); }

@media print {
  .masthead, .footer, .rail, .ad, .related { display: none !important; }
  body { background: #fff; color: #000; }
}
