/* ==========================================================================
   The Victory Project — site styles
   Palette pulled from the comic: gold & white armor, silver plate,
   magenta/gold energy bursts on the cover, neon alley magenta/cyan.
   ========================================================================== */
:root {
  --ink: #0a0a0f;
  --ink-2: #13121a;
  --ink-3: #1d1b26;
  --line: #2c2936;
  --paper: #f6f1e7;
  --text: #ece7dc;
  --muted: #a69fb2;

  --gold-1: #fff1b8;
  --gold-2: #f2c94c;
  --gold-3: #c9932e;
  --gold-4: #7a5418;
  --gold: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 62%, var(--gold-4) 100%);
  --silver: linear-gradient(180deg, #ffffff 0%, #d9dce3 45%, #8f95a3 70%, #e8ebf0 100%);
  --magenta: #e0338f;
  --magenta-deep: #8e1458;
  --cyan: #42d6f5;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: "Bangers", "Impact", system-ui, sans-serif;
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-1); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--paper); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin: .25em 0; }
.stack > * + * { margin-top: 1.25rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 1000; background: var(--gold-2); color: var(--ink); padding: .5rem 1rem; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .02em;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.gold, .silver {
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(60, 35, 5, .55);
  filter: drop-shadow(0 3px 0 #2a1a05) drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}
.silver { background-image: var(--silver); -webkit-text-stroke-color: rgba(30, 30, 40, .5); }
.eyebrow {
  font: 700 .78rem/1.2 var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-2);
  margin-bottom: .6em;
}
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- comic energy-burst background ---------- */
.burst { position: relative; isolation: isolate; overflow: hidden; }
.burst::before {
  content: "";
  position: absolute; inset: -50%;
  z-index: -2;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(242, 201, 76, .16) 0deg 4deg, transparent 4deg 11deg,
      rgba(224, 51, 143, .14) 11deg 14deg, transparent 14deg 22deg);
}
.burst::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 220, 120, .22), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, var(--ink) 85%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 .95rem/1 var(--font-head);
  text-transform: uppercase; letter-spacing: .08em;
  padding: .85em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold);
  color: #2a1a05;
  border-color: #5c3e10;
  box-shadow: 0 4px 0 #3d2908, 0 8px 20px rgba(242, 201, 76, .25);
}
.btn--gold:hover { color: #000; box-shadow: 0 6px 0 #3d2908, 0 12px 26px rgba(242, 201, 76, .35); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--paper); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { color: var(--paper); border-color: var(--gold-2); }
.btn--sm { padding: .6em 1em; font-size: .8rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }

.tag {
  display: inline-block;
  font: 700 .7rem/1 var(--font-head);
  text-transform: uppercase; letter-spacing: .1em;
  padding: .45em .7em;
  border-radius: 3px;
  background: var(--ink-3); color: var(--muted);
  border: 1px solid var(--line);
  margin: 0 .35em .35em 0;
}
.tag--magenta { background: var(--magenta); color: #fff; border-color: var(--magenta-deep); }
.warnings { margin-bottom: .75rem; }

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  padding: var(--gutter);
  background: rgba(5, 5, 8, .82);
  backdrop-filter: blur(6px);
}
.gate-on .age-gate, .gate-pending .age-gate { display: flex; }
.gate-on .site, .gate-pending .site { filter: blur(28px) brightness(.5); pointer-events: none; user-select: none; }
.gate-on body, .gate-pending body { overflow: hidden; }
.age-gate__panel {
  max-width: 560px; width: 100%;
  text-align: center;
  padding: clamp(24px, 5vw, 48px);
  background: var(--ink-2);
  border: 2px solid var(--gold-3);
  border-radius: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.age-gate__panel .display { font-size: clamp(2rem, 7vw, 3rem); }
.age-gate__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-3), var(--magenta), var(--gold-3), transparent);
  opacity: .7;
}
.masthead__row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: .4rem; text-decoration: none; margin-right: auto; }
.brand img { max-height: 48px; width: auto; }
.brand__the { font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.brand__name {
  font: 400 1.9rem/1 var(--font-display); letter-spacing: .03em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1a05);
}
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a:not(.btn) {
  font: 500 .9rem var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); text-decoration: none; padding: .5rem .6rem; border-radius: 4px;
}
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--gold-2); background: rgba(242, 201, 76, .08); }
.nav .btn { margin-left: .5rem; }
.nav-toggle {
  display: none;
  font: 700 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  background: none; color: var(--gold-2); border: 1px solid var(--gold-3); border-radius: 4px; padding: .5rem .8rem;
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: .75rem 0 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: .9; margin-bottom: .2em; }
.hero__the { display: block; font-size: .35em; letter-spacing: .3em; color: var(--paper); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; }
.hero__tagline { font: 700 clamp(1.1rem, 2.4vw, 1.5rem) var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--magenta); text-shadow: 0 0 18px rgba(224, 51, 143, .5); }
.hero__lede { font-size: 1.15rem; max-width: 34em; color: var(--paper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__art img {
  border-radius: var(--radius);
  border: 3px solid var(--gold-3);
  box-shadow: var(--shadow), 0 0 60px rgba(242, 201, 76, .25);
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.hero__art a:hover img { transform: rotate(0) scale(1.02); }
@media (max-width: 800px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 0 auto; }
}

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section__head .display { margin: 0; }
.link-more { font: 700 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head p { max-width: 42em; font-size: 1.1rem; color: var(--paper); }
.page-404 { text-align: center; padding: 120px 0; }
.page-404 p { margin-inline: auto; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--issues { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--events, .grid--shop { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--chars { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-4px); border-color: var(--gold-3); box-shadow: 0 12px 28px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold-3); color: inherit; }
.card__media { position: relative; background: var(--ink-3); aspect-ratio: 16 / 10; overflow: hidden; }
.card__media--cover, .card__media--square { aspect-ratio: 1 / 1; }
.card__media--tall { aspect-ratio: 9 / 16; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__media .tag { position: absolute; top: .6rem; left: .6rem; }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card__title { font: 700 1.25rem/1.2 var(--font-head); letter-spacing: .02em; margin-bottom: .35em; color: var(--paper); }
.card__body .btn { align-self: flex-start; margin-top: auto; }
.placeholder {
  display: grid; place-items: center; height: 100%;
  font: 400 1.4rem var(--font-display); letter-spacing: .05em; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--ink-3) 0 12px, var(--ink-2) 12px 24px);
}

/* locked (subscriber) */
.locked img { filter: blur(18px) saturate(1.3); transform: scale(1.15); }
.locked__veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background:
    radial-gradient(circle, rgba(224, 51, 143, .25), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .45) 0 14px, rgba(0, 0, 0, .3) 14px 28px);
  font: 700 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--paper);
}
.lock-icon { width: 44px; height: 44px; fill: var(--gold-2); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }

/* ---------- issue page / reader ---------- */
.issue-head { padding: clamp(36px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.issue-head__grid { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.issue-head__cover img { border: 3px solid var(--gold-3); border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.issue-meta { margin-top: 1rem; }
@media (max-width: 760px) { .issue-head__grid { grid-template-columns: 1fr; } .issue-head__cover { max-width: 420px; } }

.reader__pages { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(12px, 2vw, 24px); }
.reader__pages img { width: 100%; border-radius: 3px; box-shadow: var(--shadow); cursor: zoom-in; background: var(--paper); }
.reader__locked {
  margin-top: clamp(24px, 4vw, 40px);
  text-align: center;
  padding: clamp(32px, 6vw, 64px) var(--gutter);
  border: 2px solid var(--gold-3);
  border-radius: 10px;
  background: var(--ink-2);
}
.reader__locked .lock-icon { margin: 0 auto 1rem; width: 56px; height: 56px; }
.reader__locked p { font-size: 1.1rem; }

/* ---------- posts & prose ---------- */
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { font-family: var(--font-head); color: var(--paper); margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.25em; border-left: 4px solid var(--magenta); background: var(--ink-2); font-style: italic; }
.post__lead-img { width: 100%; border-radius: var(--radius); margin: 1rem 0 2rem; box-shadow: var(--shadow); cursor: zoom-in; }
.stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }

/* ---------- characters ---------- */
.char { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.char__gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.char__gallery img { border-radius: var(--radius); background: var(--ink-3); cursor: zoom-in; }
@media (max-width: 800px) { .char { grid-template-columns: 1fr; } }

/* ---------- subscribe banner ---------- */
.subscribe { padding: clamp(48px, 7vw, 88px) 0; border-block: 2px solid var(--gold-3); background: var(--ink-2); }
.subscribe__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.subscribe__inner > div { max-width: 640px; }
.subscribe p { font-size: 1.1rem; color: var(--paper); }

/* ---------- shop ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  padding: .55em 1em; border-radius: 999px; cursor: pointer;
  background: var(--ink-2); color: var(--text); border: 1px solid var(--line);
}
.chip[aria-pressed="true"] { background: var(--gold); color: #2a1a05; border-color: var(--gold-4); }
.product__buy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .5rem; }
.product__buy .btn { margin: 0; }
.price { font: 700 1.25rem var(--font-head); color: var(--gold-2); }
.shop-note { margin-top: 2rem; }
.card--product[hidden] { display: none; }

/* ---------- footer ---------- */
.footer { background: #050508; border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__brand { font-size: 2rem; margin-bottom: .25rem; }
.footer__legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; }
.footer__legal p { margin: .25em 0; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .94);
  padding: 48px 56px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--shadow); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .08); color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: var(--gold-3); color: #000; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
