@font-face {
  font-family: 'GOATGene';
  src: url('fonts/GOATGENE4.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-soft: #151412;
  --bone: #f3ede2;
  --line: rgba(243, 237, 226, 0.14);

  /* one accent color per category */
  --rtd-red: #ec2027; --rtd-green: #78c263; --rtd-blue: #29abe2;   /* Run The Date */
  --pickle: #c8f04a;    /* Pickleball: ball lime on court green #0d2a18 */
  --spike: #d8e4f0;     /* Spikeball / LA Goats: pale blue on navy #244854 */
  --essential: #9a9086; /* Essentials */
  --leagues: #fad000;   /* GOATGENE Leagues: gold on black */
  --herd: #e3262d;      /* The Herd: red on black */

  /* default page accent (overridden per category page) */
  --accent: var(--bone);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'GOATGene', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The GOATGene font must never be bolded or outlined: it becomes unreadable.
   Browsers fake-bold headings by default, so turn that off everywhere. */
*, *::before, *::after {
  font-family: 'GOATGene', sans-serif;
  font-weight: 400 !important;
  font-synthesis: none;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
button, input, select, textarea { font: inherit; }

h1, h2, h3, .wordmark, .nav-logo {
  margin: 0;
}

a { color: inherit; }

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.9), transparent);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
  color: var(--bone);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--bone);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links a.current { opacity: 1; color: var(--accent); }
@media (max-width: 720px) {
  /* phones: logo on top, all six links in one row you can swipe */
  .site-nav { flex-wrap: wrap; padding: 0.8rem 1rem 0.5rem; row-gap: 0.4rem; background: linear-gradient(to bottom, rgba(11,11,11,0.95) 70%, transparent); }
  .nav-links { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0.9rem; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.66rem; white-space: nowrap; flex: 0 0 auto; }
  .page-hero { padding-top: 7.5rem; }
}

/* ---------- SHARED PAGE HERO (category pages) ---------- */
.page-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 2.5rem;
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--ink);
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.02;
}
.page-hero .lede {
  max-width: 620px;
  margin: 1.4rem auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(243, 237, 226, 0.82);
}

/* ---------- CONTENT SECTIONS ---------- */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}
.content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(243, 237, 226, 0.85);
  margin-bottom: 1.4rem;
}
.content h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.2rem;
  color: var(--accent);
}
.stat-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-row .stat { text-align: left; }
.stat-row .stat .num {
  font-family: 'GOATGene', sans-serif;
  font-size: 2.4rem;
  color: var(--accent);
  display: block;
}
.stat-row .stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  opacity: 0.65;
}

.cta {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.cta:hover { background: var(--accent); color: var(--ink); }

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem 5rem;
}

/* ---------- PRODUCTS ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0 1rem;
}
.product-card {
  padding: 0;
  text-align: left;
  background: none;
}
.product-card .product-name {
  font-family: 'GOATGene', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.product-card .product-price {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.product-card button.cta {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- CHECKOUT MODAL ---------- */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.checkout-overlay.open { display: flex; }
.checkout-box {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
}
.checkout-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}
.checkout-close:hover { opacity: 1; }
#checkout-product-name { font-family: 'GOATGene', sans-serif; font-size: 1.3rem; margin-bottom: 0.2rem; }
#checkout-product-price { color: var(--accent); margin-bottom: 1.4rem; }
#sq-card-container { min-height: 90px; margin-bottom: 1.2rem; }
#checkout-pay-btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
}
#checkout-pay-btn:disabled { opacity: 0.6; cursor: default; }
#checkout-status { margin-top: 0.9rem; font-size: 0.85rem; min-height: 1.2em; }

/* ---------- FOOTER ---------- */
footer {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
footer .tagline { margin: 0;
  font-size: clamp(0.75rem, 1.6vw, 1.05rem);
  color: var(--accent);
  text-transform: uppercase;
}
footer .foot-links {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
footer .foot-links a {
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.7;
}
footer .foot-links a:hover { opacity: 1; color: var(--accent); }
footer small {
  display: block;
  margin-top: 1rem;
  opacity: 0.4;
  font-size: 0.7rem;
}

.nav-logo { gap: 0.6rem; line-height: 0; }
.nav-logo .nav-mark { height: 34px; width: 34px; display: block; flex: 0 0 auto; }
.nav-logo .nav-word { height: 22px; width: auto; display: block; }
@media (max-width: 720px) { .nav-logo .nav-mark { height: 30px; width: 30px; } .nav-logo .nav-word { height: 19px; } }

/* product + brand imagery on the section pages */
.product-card .product-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.4));
}
.page-hero .hero-art { display: block; margin: 0 auto 1.4rem; max-height: 120px; width: auto; max-width: 80vw; }
.art-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2rem 0 0; }
.art-row img { height: 92px; width: auto; }
.feature-img { display: block; margin: 2rem auto; max-width: min(100%, 420px); height: auto; border-radius: 12px; }

.swatches { display: flex; gap: 0.5rem; margin: 0.2rem 0 0.7rem; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sw); border: 2px solid rgba(243,237,226,0.25);
  cursor: pointer; padding: 0;
}
.swatch.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0,0,0,0.6); }

/* Run The Date */
.rtd-eyebrow span:nth-child(1) { color: var(--rtd-red); }
.rtd-eyebrow span:nth-child(2) { color: var(--rtd-green); }
.rtd-eyebrow span:nth-child(3) { color: var(--rtd-blue); }
.rtd-block { max-width: 460px; margin: 2.5rem auto; text-align: center; }
.rtd-block .rtd-chart svg { width: 100%; height: auto; display: block; }
.rtd-stats { display: flex; justify-content: space-around; margin-top: 0.4rem; color: #fff; }
.rtd-stats .n { display: block; font-size: 2.2rem; line-height: 1; }
.rtd-stats .l { font-size: 0.85rem; text-transform: uppercase; opacity: 0.8; }
.herd-title { display: block; line-height: 0.95; margin-bottom: 1rem; }
.herd-title .a { display: block; font-size: clamp(2.8rem, 8vw, 6rem); color: var(--bone); }
.herd-title .b { display: block; font-size: clamp(1.4rem, 3.4vw, 2.6rem); color: var(--herd); }
.herd-date { margin: 2rem 0; font-size: 1.5rem; line-height: 1.3; text-transform: uppercase; text-align: center; }
.herd-date b { color: var(--herd); }

/* The Herd lineup: the five DJs */
.dj-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.4rem, 2vw, 1.4rem); margin: 2rem 0 3rem; text-align: center; }
.dj-grid img, .dj-grid svg { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin: 0 auto 0.7rem; }
.dj-grid .dj-name { font-size: clamp(0.62rem, 2.2vw, 1.15rem); white-space: nowrap; text-transform: uppercase; color: var(--herd); }
.crowd-row { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin: 1rem 0 0; }
.crowd-row img { height: 80px; width: auto; opacity: 0.85; }

.herd-pack { margin: 3rem 0; padding: 2.4rem 1.5rem; text-align: center; border: 2px solid var(--herd); border-radius: 18px;
  background: radial-gradient(ellipse at 50% 100%, rgba(227,38,45,0.35), transparent 70%), #0b0000; }
.herd-pack .pack-eyebrow { display: block; text-transform: uppercase; color: var(--herd); font-size: 0.9rem; }
.herd-pack .pack-big { font-size: clamp(3.4rem, 12vw, 6.5rem); line-height: 1; margin: 0.4rem 0 0.8rem; color: var(--bone); }
.herd-pack p { max-width: 460px; margin: 0 auto clamp(2.4rem, 6vh, 4rem); }
.herd-handle { display: inline-block; margin-bottom: 1rem; text-transform: uppercase; color: var(--herd); }

.herd-pack .pack-goats { display: flex; justify-content: center; gap: clamp(0.3rem, 2vw, 1rem); margin: 1.2rem 0 0.4rem; }
.herd-pack .pack-goats img, .herd-pack .pack-goats svg { flex: 0 0 auto; width: clamp(56px, 16vw, 110px); height: auto; aspect-ratio: 1 / 1; }
.herd-pack .pack-big { font-size: clamp(2.8rem, 10vw, 5.4rem); }
.herd-pack .pack-price { font-size: 1.15rem; line-height: 1.5; margin-bottom: 1.2rem; text-transform: uppercase; }
.herd-pack .pack-price b { color: var(--herd); font-size: 2rem; }
.herd-pack .pack-price s { opacity: 0.6; }

@media (max-width: 520px) {
  .dj-grid .dj-name { white-space: normal; line-height: 1.1; }
  .follow .herd-handle { display: block; margin: 0 0 0.8rem; }
}

.rtd-title span:nth-child(1) { color: var(--rtd-red); }
.rtd-title span:nth-child(2) { color: var(--rtd-green); }
.rtd-title span:nth-child(3) { color: var(--rtd-blue); }

/* ---------- Section page headers: big logo and title, then straight into the page ---------- */
.page-hero { min-height: 0; padding: 6.5rem 1.5rem 1rem; justify-content: center; }
.page-hero .hero-art { max-height: min(40vh, 70vw); max-width: 86vw; margin: 0 auto clamp(2.4rem, 6vh, 4rem); }
.page-hero h1 { font-size: clamp(4rem, min(17vw, 22vh), 14rem); line-height: 1.12; padding-top: 0.08em; }
.page-hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.6rem); margin-top: 0.4rem; }

/* sticker quantity picker */
.sticker-opts { display: flex; gap: 0.5rem; margin: 0.2rem 0 0.8rem; }
.sticker-opt { font: inherit; text-transform: uppercase; font-size: 0.85rem; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; opacity: 0.7; }
.sticker-opt.active { background: var(--accent); color: var(--ink); opacity: 1; }

/* ---------- BAG ---------- */
.bag-btn { font: inherit; font-size: 0.75rem; text-transform: uppercase; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 0.35rem 0.8rem; margin-left: 1.4rem; cursor: pointer; color: var(--bone); opacity: 0.85; }
.bag-btn:hover { opacity: 1; color: var(--accent); }
@media (max-width: 720px) { .bag-btn { position: absolute; top: 0.75rem; right: 1rem; margin: 0; font-size: 0.7rem; } }
.bag-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.bag-overlay.open { opacity: 1; pointer-events: auto; }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #121110; color: #f3ede2; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.bag-overlay.open .bag-panel { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.bag-title { font-weight: 400 !important; font-size: 1.6rem; text-transform: uppercase; }
.bag-close, .bag-back, .bl-rm { font: inherit; background: none; border: 0; color: rgba(243,237,226,0.6); text-transform: uppercase; font-size: 0.72rem; cursor: pointer; padding: 0.3rem 0; }
.bag-close:hover, .bag-back:hover, .bl-rm:hover { color: #f3ede2; }
.bag-pay-step { display: none; }
.bag-overlay.paying .bag-list-step { display: none; }
.bag-overlay.paying .bag-pay-step { display: block; }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-lines li { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "main qty price" "main rm rm"; gap: 0.2rem 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid rgba(243,237,226,0.12); }
.bl-main { grid-area: main; display: flex; flex-direction: column; gap: 0.2rem; }
.bl-main b { font-weight: 400 !important; font-size: 1rem; }
.bl-main span { font-size: 0.75rem; color: rgba(243,237,226,0.6); text-transform: uppercase; }
.bl-qty { grid-area: qty; display: flex; align-items: center; gap: 0.5rem; }
.bl-qty button { font: inherit; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid rgba(243,237,226,0.35); background: none; color: #f3ede2; cursor: pointer; line-height: 1; }
.bl-price { grid-area: price; font-weight: 400 !important; min-width: 3.2rem; text-align: right; }
.bl-rm { grid-area: rm; justify-self: end; }
.bag-empty { color: rgba(243,237,226,0.6); text-transform: uppercase; font-size: 0.85rem; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.2rem 0 0.4rem; text-transform: uppercase; }
.bag-total b { font-weight: 400 !important; font-size: 1.5rem; }
.bag-fine { font-size: 0.72rem; color: rgba(243,237,226,0.5); text-transform: uppercase; margin: 0 0 1rem; }
.bag-go, .bag-pay { width: 100%; font: inherit; padding: 0.9rem; border: 0; border-radius: 999px; background: #f3ede2; color: #121110; text-transform: uppercase; font-size: 0.85rem; cursor: pointer; }
.bag-pay:disabled { opacity: 0.6; cursor: default; }
.bag-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.8rem; margin: 1rem 0 1.2rem; }
.bag-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.7rem; text-transform: uppercase; color: rgba(243,237,226,0.65); }
.bag-form label.full { grid-column: 1 / -1; }
.bag-form input { font-size: 1rem; padding: 0.6rem 0.7rem; border-radius: 8px; border: 1px solid rgba(243,237,226,0.25); background: #1c1a18; color: #f3ede2; font-family: system-ui, sans-serif; }
.bag-form label.half { grid-column: span 1; }
#sq-card-container { min-height: 90px; margin-bottom: 1rem; }
.bag-status { margin: 0.9rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
/* size picker on product cards */
.sizes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0.8rem; }
.sizes button { font: inherit; font-size: 0.75rem; min-width: 2.2rem; padding: 0.35rem 0.5rem; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; opacity: 0.75; }
.sizes button.active { background: var(--accent); color: var(--ink); opacity: 1; }
.pick-error { min-height: 1.1em; margin: 0 0 0.5rem; font-size: 0.8rem; color: #e0645a; }
.buy-pair { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.buy-pair .cta { cursor: pointer; font-family: inherit; background: transparent; }
.buy-pair .cta.solid { background: var(--accent); color: var(--ink); }

/* ---------- Running The Date: tap a month, tap a run ---------- */
.months path { transform-box: view-box; transform-origin: 320px 320px; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.15s linear; }
.months path.sel { transform: scale(1.08); opacity: 1 !important; }
.months path.dim { opacity: 0.3 !important; }
.petal-pct { fill: #fff; font-family: 'GOATGene', sans-serif; paint-order: stroke; stroke: rgba(0,0,0,0.45); stroke-width: 2px; pointer-events: none; transform-box: view-box; transform-origin: 320px 320px; transform: scale(1.08); }
.stairs.picking { width: min(760px, 96vw); }
.rtd-pick { min-height: calc(clamp(1.8rem, 4.4vw, 3rem) + clamp(1.2rem, 2.6vw, 1.8rem) + 0.6rem); text-align: center; text-transform: uppercase; margin-top: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.rtd-pick b { font-weight: 400 !important; font-size: clamp(1.8rem, 4.4vw, 3rem); color: #fff; line-height: 1; }
.rtd-pick .mi { font-size: clamp(1.2rem, 2.6vw, 1.8rem); color: var(--rtd-green); }
.runs-grid { max-width: 1400px; margin: 0 auto; }
.run-tiles { display: grid; grid-template-columns: repeat(31, 1fr); width: 100%; margin: 4.5% 0; cursor: pointer; touch-action: manipulation; }
.run-tile { grid-row: var(--r); grid-column: var(--c); aspect-ratio: 1; background-repeat: no-repeat; background-size: 3100% 800%; background-color: #000; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); position: relative; z-index: 1; }
.run-tile i { position: absolute; inset: 0; background: #000 center / 100% 100% no-repeat; opacity: 0; }
.run-tile.big { z-index: 3; }
.run-tile.big.crisp i { opacity: 1; }
.run-tile.empty { cursor: default; }
@media (max-width: 700px) {
  .runs-grid { padding: 0 1.5rem; }
  .run-tiles { grid-template-columns: repeat(8, 1fr); margin: 17% 0; }
  .run-tile { grid-row: var(--c); grid-column: var(--r); }
  .runs-cap { position: sticky; bottom: 0; z-index: 5; background: #000; padding: 0.9rem 1rem; margin: 0 !important; }
}
.runs-cap { min-height: 1.6em; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.runs-cap .d { color: var(--rtd-green); } .runs-cap .n { color: #fff; } .runs-cap .m { color: rgba(255,255,255,0.8); } .runs-cap .p { color: var(--rtd-blue); }
