/* Reset, document defaults, type, buttons, accessibility basics. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--fs-body)/var(--lh-base) var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;            /* nothing may scroll the page sideways */
}
/* film grain over the whole page — mockup B */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p a, .prose li a, td a, .prose a { color: var(--color-gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, .prose a:hover { color: var(--color-text); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden, .sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.visually-hidden.visually-hidden { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
[hidden][hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-modal);
  padding: 10px 18px; background: var(--color-button); color: var(--color-on-button); border-radius: var(--radius-pill); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.icon { width: 18px; height: 18px; flex: none; }
.icon--missing { display: inline-block; width: 18px; height: 18px; background: #f0f; }

.wrap, .container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- buttons (mockup B) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font: 600 15px/1 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease-spring), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-gold, .btn--primary {
  background: var(--color-button); color: var(--color-on-button);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--color-gold) 70%, transparent), 0 1px 0 rgba(255,255,255,.35) inset;
}
.btn-gold::after, .btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-gold:hover, .btn--primary:hover { transform: translateY(-2px); }
.btn-gold:hover::after, .btn--primary:hover::after { transform: translateX(120%); }
.btn-ghost, .btn--ghost { border-color: var(--hair-gold); color: var(--color-text); background: color-mix(in srgb, var(--surface-0) 40%, transparent); }
.btn-ghost:hover, .btn--ghost:hover { border-color: var(--color-gold); background: var(--gold-tint); transform: translateY(-2px); }
.btn-sm, .btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn-text { min-height: 44px; padding: 0 14px; color: var(--color-text); font-weight: 500; }
.btn-text:hover { color: var(--color-gold); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; transform: none; }
.link-gold { display: inline-flex; align-items: center; gap: 8px; color: var(--color-gold); font-weight: 600; font-size: 14px; min-height: 44px; }
.link-gold .icon { transition: transform .25s var(--ease-spring); }
.link-gold:hover .icon { transform: translateX(4px); }

/* 18+ mark */
.rg { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-2); letter-spacing: .04em; }
.rg b { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--hair-gold); border-radius: 6px; color: var(--color-gold); font: 600 11px/1 var(--font-body); font-variant-numeric: tabular-nums; }
a.rg:hover { color: var(--color-text); }

/* Tap targets: 24×24 minimum (WCAG 2.2 AA, 2.5.8) by a pseudo-element, never padding. */
.tap-target { position: relative; }
.tap-target::after { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; z-index: 1; }
