/* ============================================================
   base.css — Comic build. Reset, typography, layout, comic buttons.
   .reveal is NOT pre-hidden: entrance animation is driven by GSAP
   (deco.js); without JS the page stays fully visible.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-tight); margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--yellow); color: var(--btn-on); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-space); position: relative; }
.section--surface-low { background: var(--bg-2); }
.section--surface { background: var(--bg-2); }

/* ---- Shared section heading ---- */
.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--yellow); font-weight: 700; margin: 0 0 1rem;
}
.section__heading {
  font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--tracking-display);
  text-transform: uppercase; text-align: center; color: var(--ink); margin: 0;
  text-shadow: 3px 3px 0 var(--outline);
}
.section__head { text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

/* ---- Comic buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 1rem 2.4rem; font-family: var(--font-display); font-size: var(--fs-label);
  font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase;
  text-decoration: none; color: var(--btn-on); background: var(--btn-bg);
  border: var(--ink-w) solid var(--outline); border-radius: 10px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background 0.25s ease;
}
.btn:hover { background: var(--btn-hover); transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--outline); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--outline); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { background: var(--panel); color: var(--panel-ink); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---- Reveal targets (animated by GSAP; visible without JS) ---- */
.reveal { opacity: 1; transform: none; }

/* ---- Utilities ---- */
.is-hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
