/* ── Body with grain overlay ─────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--clr-base);
  color: var(--clr-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Grain overlay across the whole page — fanzine texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

/* ── Headings ──────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-stencil);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}

/* ── Links ────────────────────────────────── */
a {
  color: var(--clr-amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--clr-paper); }

a:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 3px;
}

/* ── Skip link ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--clr-amber);
  color: var(--clr-base);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 10000;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ── Container ────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  position: relative;
}

/* ── Sections ─────────────────────────────── */
.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section--alt { background-color: var(--clr-base-deep); }

/* Section label — magazine-style "01 / About" */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-amber);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--clr-amber);
}

/* Section heading */
.section-heading {
  font-family: var(--font-stencil);
  font-size: var(--fs-h2);
  color: var(--clr-text);
  margin-bottom: var(--space-md);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.section-heading em {
  font-style: normal;
  color: var(--clr-amber);
}

.section-intro {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 52ch;
  font-style: italic;
  font-size: 1.05rem;
}

/* ── Utilities ────────────────────────────── */
.text-amber { color: var(--clr-amber); }
.text-red   { color: var(--clr-red); }
.text-paper { color: var(--clr-paper); }

.hand { font-family: var(--font-hand); font-weight: 400; }

.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;
}

/* Rubber-stamp utility — used in hero, on tickets, in the rules notice */
.stamp {
  display: inline-block;
  border: 3px solid currentColor;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-red);
  transform: rotate(-6deg);
  opacity: 0.88;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.stamp--blue  { color: var(--clr-rule-blue); }
.stamp--amber { color: var(--clr-amber); }
.stamp--ink   { color: var(--clr-ink); }
/* ── Body ────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--clr-base);
  color: var(--clr-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}

/* ── Links ───────────────────────────────────── */
a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--clr-accent-light); }

a:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip link ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--clr-accent);
  color: var(--clr-base);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 999;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ── Container ───────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ── Sections ────────────────────────────────── */
.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background-color: var(--clr-surface);
}

/* ── Section label ───────────────────────────── */
.section-label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.section-label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

/* ── Section heading ─────────────────────────── */
.section-heading {
  font-size: var(--fs-h2);
  color: var(--clr-text);
  margin-bottom: var(--space-md);
}

/* ── Section intro ───────────────────────────── */
.section-intro {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 48ch;
}

/* ── Utilities ───────────────────────────────── */
.text-accent { color: var(--clr-accent); }

.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;
}
