/* ============================================================
   P77PLAY — GLOBAL RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { border: 0; }

a { color: var(--color-accent-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-gold-dim); }

ul, ol { list-style: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); }   /* 36 → 72 */
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }  /* 28 → 40 */
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; } /* 22 → 28 */
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }

p { color: var(--color-text-secondary); }

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
  display: inline-block;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-xl); }
.section-head p { margin-top: var(--space-sm); font-size: 1.0625rem; }

main { display: block; }

/* ---- Text gradient / accents ---- */
.text-gold { color: var(--color-accent-gold); }
.text-gradient {
  background: linear-gradient(100deg, var(--color-accent-gold), #FFE08A 55%, var(--color-accent-gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--color-accent-gold);
  color: #000;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Utility ---- */
.grid { display: grid; gap: var(--space-lg); }
.flex { display: flex; }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
