/* Cheapasaurus HC — beer league, pro look.
   Color tokens & typography aligned with brand.md (source of truth). */

:root {
  /* Primary */
  --cream:        #F4EBD0;
  --navy:         #1F3A4D;
  /* Secondary */
  --light-blue:   #6FA9C9;
  --dino-green:   #7FAF6B;
  /* Accent */
  --gold:         #C89B3C;
  --off-white:    #FFF8E7;
  /* Derived */
  --navy-2:       #11242F;   /* deeper navy for nav, footer, hero base */
  --gold-2:       #E0B656;   /* gold hover */
  --green-shadow: #3D5028;
  --red:          #B73B2C;   /* "no" / strikethrough */
  --belly:        #D7C77E;   /* warm secondary text on dark bg */

  --display: "Oswald", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Patrick Hand", "Comic Sans MS", cursive;

  --maxw: 1200px;
  --nav-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy-2);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.accent-gold { color: var(--gold); }
.accent-red  { color: var(--red); }
.hand        { font-family: var(--hand); font-weight: 500; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy-2);
  padding: 10px 14px; font-weight: 700; z-index: 1000;
  font-family: var(--display); letter-spacing: .05em;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 22px;
  background: var(--navy-2);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.brand {
  display: flex; flex-direction: column; line-height: 1; text-decoration: none;
  font-family: var(--display); letter-spacing: .06em;
}
.brand-mark { font-weight: 700; font-size: 22px; color: var(--cream); }
.brand-sub  { font-weight: 500; font-size: 11px; color: var(--gold); margin-top: 4px; letter-spacing: .22em; }
.nav-links  { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--display); font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; font-size: 13px;
  text-decoration: none; color: var(--cream);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background: var(--navy-2);
  padding: clamp(48px, 9vw, 110px) 22px clamp(56px, 10vw, 130px);
  text-align: center;
  border-bottom: 6px solid var(--gold);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(200,155,60,.18), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(31,58,77,.95), transparent 70%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.025) 0 2px,
      transparent 2px 9px),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--display); letter-spacing: .25em; font-size: 12px;
  color: var(--gold); text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(183,59,44,.25); }

.hero-logo {
  width: min(380px, 72vw);
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.55));
}
.hero-title {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 140px);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--cream);
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.hero-tag {
  margin: 0 auto;
  max-width: 640px;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--belly);
  letter-spacing: .01em;
}
.hero-tag-hand {
  display: block;
  margin-top: 8px;
  font-family: var(--hand);
  font-style: normal;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--off-white);
  transform: rotate(-2deg);
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px;
}
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-family: var(--display); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-2); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--navy-2); transform: translateY(-1px); }

/* ---------- Stat strip ---------- */
.stats {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.stats-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.stat {
  padding: 22px 10px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); line-height: 1;
  color: var(--cream); letter-spacing: .03em;
}
.stat-label {
  margin-top: 6px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--belly);
}
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .stat:nth-last-child(-n+1) { border-bottom: none; }
}

/* ---------- Section primitives ---------- */
.kicker {
  margin: 0 0 10px;
  font-family: var(--display);
  letter-spacing: .35em;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--navy);
  text-transform: uppercase;
}
.section-title.light { color: var(--cream); }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 6px solid var(--navy);
}
.manifesto-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  font-size: 17px;
  color: var(--navy-2);
}
.manifesto-grid p { margin: 0; }
.manifesto-sign {
  margin-top: 22px;
  font-family: var(--hand);
  font-size: 28px;
  color: var(--navy);
  transform: rotate(-1.5deg);
  display: inline-block;
}
@media (max-width: 720px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Rules ---------- */
.rules {
  background: var(--off-white);
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 6px solid var(--navy);
}
.rules-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  list-style: none;
  padding: 0;
  counter-reset: rule;
}
.rules-list li {
  position: relative;
  padding: 18px 18px 18px 70px;
  background: var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  font-size: 16px;
  color: var(--navy-2);
  box-shadow: 0 4px 12px rgba(31,58,77,.08);
}
.rules-list li::before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 700;
  font-size: 28px; color: var(--navy); letter-spacing: .04em;
}
@media (max-width: 720px) {
  .rules-list { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 6px solid var(--navy);
}
.gallery {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  margin: 0;
  background: var(--off-white);
  border: 3px solid var(--navy);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 36, 47, .15);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 36, 47, .28);
}
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--off-white);
  padding: 6px;
}

/* ---------- Find Us ---------- */
.findus {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0;
}
.findus-inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px;
  align-items: center;
}
.findus-copy {
  margin-top: 14px;
  color: var(--belly);
  max-width: 50ch;
}
.findus-card {
  background: var(--navy-2);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.findus-card-line {
  margin: 14px 0 2px;
  font-family: var(--display); font-weight: 500;
  letter-spacing: .26em; font-size: 11px; text-transform: uppercase;
  color: var(--gold);
}
.findus-card-line:first-child { margin-top: 0; }
.findus-card-val {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: 22px; color: var(--cream); letter-spacing: .03em;
}
.findus-card-note {
  margin: 14px 0 0;
  font-family: var(--hand); font-size: 22px;
  color: var(--belly); transform: rotate(-1.5deg);
  display: inline-block;
}
@media (max-width: 720px) {
  .findus-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-2);
  color: var(--cream);
  padding: 38px 0;
  text-align: center;
  border-top: 6px solid var(--gold);
}
.footer-mark {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  letter-spacing: .14em;
  font-size: clamp(28px, 4.5vw, 44px);
  color: var(--gold);
}
.footer-line {
  margin: 6px 0 0;
  color: var(--belly);
  font-style: italic;
}
.footer-meta {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(244, 235, 208, .55);
  text-transform: uppercase;
}

.strike {
  position: relative;
  color: var(--cream);
  font-weight: 700;
}
.strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: 50%;
  height: 3px;
  background: var(--red);
  transform: rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
}

/* ---------- Easter egg (corner stain) ---------- */
.stain {
  position: fixed;
  right: max(env(safe-area-inset-right, 0px), 14px);
  bottom: max(env(safe-area-inset-bottom, 0px), 14px);
  width: 72px; height: 58px;
  padding: 0; margin: 0;
  background: transparent; border: 0; cursor: pointer;
  z-index: 40;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.18));
  transition: transform .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.stain svg { width: 100%; height: 100%; display: block; }
.stain:hover, .stain:focus-visible {
  transform: rotate(-3deg) scale(1.05);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.28));
  outline: none;
}
.stain::after {
  content: attr(data-tip);
  position: absolute;
  right: 8px; bottom: calc(100% + 10px);
  background: var(--navy-2);
  color: var(--off-white);
  font-family: var(--hand);
  font-size: 18px; line-height: 1.1;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.stain::before {
  content: "";
  position: absolute;
  right: 18px; bottom: calc(100% + 4px);
  width: 0; height: 0;
  border: 6px solid transparent;
  border-top-color: var(--gold);
  opacity: 0;
  transition: opacity .15s ease;
}
.stain:hover::after,
.stain:focus-visible::after,
.stain:hover::before,
.stain:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .stain, .stain::after { transition: none; }
}
@media (max-width: 480px) {
  .stain { width: 58px; height: 46px; }
  .stain::after { font-size: 16px; }
}
