/* ============================================================
   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: 60px;
}

* {
  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: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-mark {
  display: block;
  width: auto;
  height: 54px;
  flex: none;
}

.nav-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 134px;
  line-height: 0.84;
}

.nav-brand-line {
  font-size: 0.96rem;
  letter-spacing: 0.075em;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-brand-line--second {
  font-size: 0.88rem;
}

.nav-brand-and {
  color: var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82em;
  letter-spacing: 0;
  text-transform: lowercase;
}

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

@media (max-width: 760px) {
  .site-nav {
    gap: 10px;
    padding-inline: 10px;
  }

  .nav-brand-copy {
    display: none;
  }

  .nav-brand-mark {
    height: 52px;
  }

  .nav-links a {
    padding-inline: 9px;
  }
}

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

/* ---- linked host credits ---- */

.host-credits {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(112px, 0.8fr);
  align-items: center;
}

.host-credit {
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.host-credit--presenter {
  padding-right: 18px;
}

.host-credit--venue {
  padding-left: 18px;
  border-left: 1px solid rgba(242, 193, 78, 0.38);
}

.host-credit-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 193, 78, 0.78);
}

.host-credit-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.host-credit-seal {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
}

.host-credit-name {
  max-width: 158px;
  font-family: var(--utility);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--paper);
}

.host-credit-artstart {
  display: block;
  width: min(126px, 100%);
  height: auto;
}

.host-credit:hover .host-credit-name,
.host-credit:focus-visible .host-credit-name {
  color: var(--gold-bright);
}

.host-credit:hover img,
.host-credit:focus-visible img {
  filter: drop-shadow(0 0 5px rgba(242, 193, 78, 0.45));
}

.host-credit:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
  border-radius: 2px;
}

.nav-hosts,
.mobile-host-dock {
  display: none;
}

@media (min-width: 1280px) {
  .site-nav {
    max-width: 1500px;
  }

  .nav-hosts {
    display: grid;
    flex: 0 0 286px;
    grid-template-columns: minmax(0, 1.35fr) minmax(92px, 0.8fr);
  }

  .nav-hosts .host-credit--presenter {
    padding-right: 12px;
  }

  .nav-hosts .host-credit--venue {
    padding-left: 12px;
  }

  .nav-hosts .host-credit-label {
    margin-bottom: 3px;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .nav-hosts .host-credit-brand {
    gap: 7px;
  }

  .nav-hosts .host-credit-seal {
    width: 31px;
    height: 31px;
  }

  .nav-hosts .host-credit-name {
    max-width: 108px;
    font-size: 0.65rem;
    line-height: 1.04;
  }

  .nav-hosts .host-credit-artstart {
    width: min(86px, 100%);
  }
}

@media (max-width: 1279px) {
  .mobile-host-dock {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 45;
    display: grid;
    width: min(100%, 520px);
    padding: 7px 14px calc(7px + env(safe-area-inset-bottom));
    background: rgba(12, 24, 48, 0.97);
    border-top: 1px solid rgba(242, 193, 78, 0.42);
    box-shadow: 0 -8px 24px rgba(5, 10, 22, 0.32);
    transform: translate(-50%, 0);
    transition: transform 180ms ease, opacity 140ms ease;
  }

  .mobile-host-dock.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 12px));
  }

  .mobile-host-dock .host-credit--presenter {
    padding-right: 11px;
  }

  .mobile-host-dock .host-credit--venue {
    padding-left: 11px;
  }

  .mobile-host-dock .host-credit-label {
    margin-bottom: 3px;
    font-size: 0.56rem;
    letter-spacing: 0.15em;
  }

  .mobile-host-dock .host-credit-brand {
    gap: 7px;
  }

  .mobile-host-dock .host-credit-seal {
    width: 28px;
    height: 28px;
  }

  .mobile-host-dock .host-credit-name {
    max-width: 118px;
    font-size: 0.65rem;
  }

  .mobile-host-dock .host-credit-artstart {
    width: min(90px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-host-dock {
    transition: none;
  }
}

/* ---- live-auction banner (renders only while FEATURED_LIVE=1) ---- */

.live-banner {
  display: block;
  padding: 11px 18px;
  text-align: center;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  letter-spacing: 0.09em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

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

.live-banner:focus-visible {
  outline: 3px solid var(--navy-deep);
  outline-offset: -4px;
}

.live-banner-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 0.08em;
}

@media (prefers-reduced-motion: no-preference) {
  .live-banner-dot {
    animation: live-pulse 1.6s ease-in-out infinite;
  }

  @keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
}

.live-banner-arrow {
  margin-left: 0.35em;
}

/* ---- 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;
}

/* ---- reserved space for JS-injected UI ----
   Modules inject their DOM lazily; without reservations, sections above an
   anchor target grow after the browser has already scrolled, landing hash
   navigation short (worst offender: the ~700px cornhole board). The .js
   class is set by an inline script in <head>, so no-JS visitors never see
   empty reserved boxes. Keep these in sync with what the modules build. */

.js .cornhole-game {
  min-height: calc(min(calc((100vw - 40px) * 1.05), 672px, 68vh) + 150px);
}

.section--countdown .wrap {
  position: relative;
}

.js .countdown-tiles {
  min-height: 97px;
}

.js .countdown-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* ---- 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;
}
