:root {
  --cream: #fef5eb;
  --cream-2: #f6ead8;
  --green: #1d4a2a;
  --green-deep: #143520;
  --navy: #1c2942;
  --gold: #d98a1e;
  --ink: #1b211c;
  --muted: #5f6a5f;
  --line: #e3d6ba;
  --display: "Fraunces", Georgia, serif;
  --slab: "Zilla Slab", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 800; line-height: 1; margin: 0; letter-spacing: -0.02em; color: var(--green); text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow { font-family: var(--slab); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; color: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--green); font-family: var(--slab); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; text-decoration: none; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); }
.btn-primary:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--green); border-color: var(--cream); }
.btn-block { width: 100%; }

/* Announcement + header */
.announce { background: var(--green); color: var(--cream); text-align: center; font-family: var(--slab); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; padding: 9px var(--pad); min-height: 36px; }
.announce span { display: inline-block; transition: opacity .35s; }
.header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px var(--pad); background: var(--cream); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav a, .cart-btn { font-family: var(--slab); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; text-decoration: none; color: var(--green); padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.brand img { height: 72px; width: auto; }
.header-right { display: flex; justify-content: flex-end; }
.cart-btn { background: none; border: 0; display: inline-flex; align-items: center; gap: 8px; }
.cart-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--cream); font-family: var(--body); font-size: 0.8rem; letter-spacing: 0; }
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); background: var(--gold); } }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--pad); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.2vw, 7rem); line-height: 0.92; margin: 16px 0 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; justify-self: center; width: min(100%, 420px); }
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--cream-2); border: 3px solid var(--green); box-shadow: 10px 10px 0 var(--green); }
.arch video { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: -34px; bottom: 28px; width: 124px; height: 124px; }
.stamp text:first-of-type { transform-origin: 60px 60px; animation: spin 22s linear infinite; }
.stamp circle { fill: var(--navy); }
.stamp text { fill: var(--cream); font-family: var(--slab); font-weight: 700; font-size: 10.4px; letter-spacing: 1.6px; }
.stamp .stamp-p { font-family: var(--display); font-style: italic; font-size: 46px; letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee: the club bandana */
.marquee { background-color: var(--green); background-image: radial-gradient(circle, rgba(252,244,229,.2) 3px, transparent 3.5px); background-size: 34px 34px; color: var(--cream); overflow: hidden; padding: 16px 0; border-block: 3px solid var(--green-deep); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: slide 28s linear infinite; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.8rem); white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: 0.6em; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--pad); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(22px, 3vw, 40px); }
.section-head p { color: var(--muted); max-width: 30em; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 26px); }
.card { background: none; border: 0; padding: 0; text-align: left; display: block; width: 100%; }
.card-img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--cream-2); border: 2px solid var(--green); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--cream); color: var(--green); border: 2px solid var(--green); border-radius: 999px; padding: 3px 11px; font-family: var(--slab); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.quick { position: absolute; inset: auto 10px 10px 10px; background: var(--green); color: var(--cream); border-radius: 999px; text-align: center; padding: 11px; font-family: var(--slab); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .2s; }
.card:hover .quick, .card:focus-visible .quick { opacity: 1; transform: none; }
.card-name { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--green); margin-top: 12px; line-height: 1.15; }
.card-price { display: block; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Feature banner */
.feature { position: relative; min-height: clamp(420px, 56vw, 640px); display: grid; align-items: end; overflow: hidden; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,25,17,.78), rgba(15,25,17,.15) 62%, transparent); }
.feature-copy { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--pad); }
.feature-copy h2 { color: var(--cream); font-size: clamp(2.4rem, 6.5vw, 5rem); margin: 12px 0 26px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 26px); }
.cat { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--green); display: grid; align-content: end; padding: 20px; text-decoration: none; color: var(--cream); }
.cat img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,25,17,.7), transparent 55%); }
.cat > * { position: relative; z-index: 1; }
.cat b { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; }
.cat small { font-family: var(--slab); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; margin-top: 6px; }
.cat.soon { background-color: var(--navy); background-image: radial-gradient(circle, rgba(252,244,229,.16) 3px, transparent 3.5px); background-size: 30px 30px; }
.cat.soon:nth-child(odd) { background-color: var(--green); }
.cat.soon::after { display: none; }
.cat.soon em { position: absolute; top: 16px; left: 16px; font-style: normal; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 3px 11px; font-family: var(--slab); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Club */
.club { background: var(--navy); color: var(--cream); }
.club-inner { max-width: 860px; margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--pad); text-align: center; }
.club h2 { color: var(--cream); font-size: clamp(2.6rem, 7vw, 5rem); margin: 14px 0 18px; }
.club .lede { color: #cdd3de; margin: 0 auto; }
.join { display: flex; gap: 10px; max-width: 520px; margin: 30px auto 0; }
.join input { flex: 1; min-width: 0; min-height: 52px; border-radius: 999px; border: 2px solid var(--cream); background: transparent; color: var(--cream); padding: 0 22px; font: inherit; }
.join input::placeholder { color: #9aa3b5; }
.join-note { min-height: 1.6em; margin-top: 12px; color: #f0c988; font-size: 0.95rem; }
.perks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.perks li { border-top: 2px solid rgba(252,244,229,.3); padding-top: 14px; color: #cdd3de; font-size: 0.95rem; }
.perks b { display: block; font-family: var(--slab); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: var(--cream); margin-bottom: 4px; }

/* Size table */
.table-wrap { overflow-x: auto; border: 2px solid var(--green); border-radius: 14px; }
.sizes { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
.sizes th, .sizes td { padding: 14px 18px; text-align: left; }
.sizes thead { background: var(--green); color: var(--cream); font-family: var(--slab); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.sizes tbody tr + tr { border-top: 1px solid var(--line); }
.sizes td:first-child { font-family: var(--display); font-weight: 800; color: var(--green); font-size: 1.15rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px var(--pad) 48px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.footer img { width: 200px; height: auto; margin: 0 auto 10px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.footer nav a { font-family: var(--slab); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--green); text-decoration: none; padding: 8px 0; }
.footer nav span { display: contents; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--cream); }
dialog::backdrop { background: rgba(15, 25, 17, .55); backdrop-filter: blur(3px); }
.x { background: none; border: 0; font-size: 2rem; line-height: 1; width: 44px; height: 44px; color: var(--green); }
.modal { width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 18px; border: 2px solid var(--green); overflow: auto; }
.modal .x { position: absolute; top: 6px; right: 6px; z-index: 2; background: var(--cream); border-radius: 999px; }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm-img { background: var(--cream-2); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.pm-body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.pm-body h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-details { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }
.size-pick { border: 0; padding: 0; margin: 6px 0 0; }
.size-pick legend { display: flex; justify-content: space-between; width: 100%; font-family: var(--slab); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 8px; padding: 0; }
.size-pick legend a { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-family: var(--body); font-weight: 500; }
.size-pick div { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pick label { position: relative; }
.size-pick input { position: absolute; opacity: 0; inset: 0; }
.size-pick span { display: grid; place-items: center; min-width: 52px; height: 48px; padding: 0 10px; border: 2px solid var(--green); border-radius: 12px; font-weight: 700; color: var(--green); cursor: pointer; }
.size-pick input:checked + span { background: var(--green); color: var(--cream); }
.size-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pm-body .btn { margin-top: auto; }

.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border-left: 2px solid var(--green); }
.drawer[open] { display: flex; flex-direction: column; animation: in .25s cubic-bezier(.2,.7,.2,1); }
@keyframes in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.7rem; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.empty { text-align: center; color: var(--muted); padding: 56px 0; }
.empty b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--green); margin-bottom: 6px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; border: 2px solid var(--green); }
.line b { display: block; font-family: var(--display); color: var(--green); font-size: 1.1rem; line-height: 1.15; }
.line small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--green); border-radius: 999px; margin-top: 8px; }
.qty button { background: none; border: 0; width: 36px; height: 34px; font-size: 1.1rem; color: var(--green); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.line-price { white-space: nowrap; font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-foot { padding: 18px 22px 22px; border-top: 2px solid var(--green); display: grid; gap: 10px; }
.subtotal { display: flex; justify-content: space-between; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fine { font-size: 0.85rem; color: var(--muted); }
.fine.warn { color: #8a4b00; }
.fine.warn:empty { display: none; }

/* Smaller screens */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .quick { opacity: 1; transform: none; position: static; margin-top: 10px; display: block; }
  .card-img { overflow: visible; border: 0; background: none; aspect-ratio: auto; }
  .card-img img { aspect-ratio: 4 / 5; border-radius: 14px; border: 2px solid var(--green); }
}
@media (max-width: 760px) {
  .header { grid-template-columns: auto 1fr; grid-template-areas: "brand cart" "nav nav"; padding-bottom: 0; }
  .brand { grid-area: brand; }
  .brand img { height: 58px; }
  .header-right { grid-area: cart; }
  .nav { grid-area: nav; justify-content: center; gap: 26px; border-top: 1px solid var(--line); margin: 4px calc(var(--pad) * -1) 0; }
  .nav a { padding: 10px 0; font-size: 0.78rem; }
  html { scroll-padding-top: 130px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-media { width: min(78%, 340px); margin-top: 8px; }
  .stamp { left: -30px; width: 100px; height: 100px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .join { flex-direction: column; }
  .perks { grid-template-columns: 1fr; text-align: center; }
  .pm { grid-template-columns: 1fr; }
  .pm-img img { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
