/* ============================================================
   Clambake Cookout & Cornhole Clash — base styles and tokens.
   The page runs a day → dusk → showtime arc top to bottom:
   bright navy/gold poster energy up top, near-black around the
   band, warm ember tones through food/auction, back to navy.
   Per-section styles live in css/sections/<id>.css.
   ============================================================ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* day (poster) */
  --navy-deep: #0c1830;
  --navy: #16294f;
  --navy-mid: #1d3563;
  --gold: #f2c14e;
  --gold-bright: #ffd977;
  --gold-dim: rgba(242, 193, 78, 0.4);
  --paper: #f4efe6;
  --paper-dim: rgba(244, 239, 230, 0.72);
  --red: #d8442e;
  /* showtime (band sub-palette) */
  --coal: #0b0b0d;
  --coal-soft: #17171b;
  --bone: #e8e4da;
  --blood: #c22b1d;
  /* dusk / cookout */
  --ember: #e0762e;
  /* type */
  --display: 'Bebas Neue', 'Arial Narrow', 'Franklin Gothic Medium', Impact, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --utility: 'Segoe UI', system-ui, sans-serif;
  /* layout */
  --wrap: 1060px;
  --nav-h: 54px;
}

* {
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--navy);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- utilities ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- skip link ---- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--utility);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}

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

/* ---- sticky nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 24, 48, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(242, 193, 78, 0.25);
}

.site-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-amp {
  color: var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  display: block;
  padding: 16px 10px;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
}

.nav-cta {
  flex-shrink: 0;
  padding: 7px 18px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--navy-deep);
  background: var(--gold);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.nav-cta:hover {
  background: var(--gold-bright);
}

/* ---- shared section chrome ---- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
}

.eyebrow {
  font-family: var(--display);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(242, 193, 78, 0.85);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.5vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-shadow: 0.045em 0.045em 0 rgba(0, 0, 0, 0.3);
  margin: 10px 0 20px;
}

.section-lede {
  max-width: 620px;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--paper-dim);
}

/* ---- buttons ---- */

.btn {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.11em;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--gold {
  color: var(--navy-deep);
  background: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-bright);
}

.btn--ghost {
  color: var(--gold);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--gold-dim);
}

.btn--ghost:hover {
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.btn:focus-visible,
.nav-cta:focus-visible,
.nav-brand:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

/* ---- draft sections (dev / ?preview=drafts only) ---- */

.draft-wrap {
  position: relative;
  outline: 2px dashed rgba(216, 68, 46, 0.55);
  outline-offset: -2px;
}

.draft-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 4px 12px;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(216, 68, 46, 0.85);
  border-radius: 3px;
}

/* ---- error page ---- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
}

.error-status {
  font-family: var(--display);
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
}

.error-message {
  color: var(--paper-dim);
  margin-bottom: 18px;
}
