:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --muted: #5d6066;
  --line: #e6e6e8;
  --green: #12b76a;
  --red: #e5484d;
  --soft: #f5f5f6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.ticker { background: var(--ink); color: #fff; overflow: hidden; font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.ticker-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ticker-set { display: flex; }
.ticker span { padding: 10px 22px; white-space: nowrap; }
.ticker span:nth-child(odd)::before { content: "\25B2 "; color: var(--green); }
.ticker span:nth-child(even)::before { content: "\25BC "; color: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
.nav-cta { font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.nav-cta:hover { background: var(--ink); color: #fff; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px); align-items: start; }
.gallery #main-img { width: 100%; aspect-ratio: 700/590; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 80px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--ink); }

.eyebrow { font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 8px 0 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 800; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.price { font-size: 28px; font-weight: 800; margin: 0 0 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ship { font-size: 14px; font-weight: 600; color: var(--green); }

.qty { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }
.stepper { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 42px; border: 0; background: var(--soft); font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper input { width: 52px; text-align: center; border: 0; font: 600 16px Inter, sans-serif; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cta { display: inline-block; width: 100%; text-align: center; background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 18px 24px; font: 800 18px Inter, sans-serif; letter-spacing: -.01em; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.cta:hover { background: #222; }
.cta:active { transform: scale(.99); }
.cta[disabled] { opacity: .6; cursor: progress; }
.form-error { color: var(--red); min-height: 1.2em; font-size: 14px; margin: 8px 0 0; }

.points { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.points li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.points li::before { content: "\25B2"; position: absolute; left: 0; color: var(--green); font-size: 12px; top: 15px; }

.band { background: var(--ink); color: #fff; }
.band-inner { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); text-align: center; }
.band h2 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; }
.band p { color: #b9bcc2; font-size: 18px; margin: 0; }

.features { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px); }
.faq h2, .final h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; padding: 0 16px clamp(56px, 8vw, 96px); }
.final .cta { width: auto; padding: 18px 40px; }

footer { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.order { max-width: 560px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) 16px; }
.order h1 { font-size: clamp(32px, 6vw, 44px); }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--muted); }
.row span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .hero, .features { grid-template-columns: 1fr; }
}

/* Keep price and buy button above the fold */
.gallery #main-img { max-height: min(560px, 62vh); }
.sticky-buy { display: none; }
@media (max-width: 820px) {
  .hero { gap: 16px; padding-top: 16px; }
  .gallery #main-img { max-height: 34vh; border-radius: 12px; }
  .thumbs { margin-top: 8px; }
  .thumb { width: 52px; height: 52px; }
  .eyebrow { margin: 0 0 8px; }
  h1 { font-size: 30px; margin-bottom: 8px; }
  .lede { font-size: 16px; margin-bottom: 12px; }
  .price { font-size: 24px; margin-bottom: 12px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .2s; }
  .sticky-buy.show { transform: none; }
  .sticky-buy .cta { padding: 14px 18px; font-size: 16px; }
  .sticky-buy strong { white-space: nowrap; font-size: 18px; }
  footer { padding-bottom: 96px; }
}

/* Accent color (ticker arrows keep their own green/red) */
:root { --accent: #d92d20; }
.eyebrow { color: var(--accent); }


/* Price row: tight gap, shipping as a small pill */
.price { align-items: center; gap: 10px; }
.ship { font-size: 14px; font-weight: 500; line-height: 1; color: var(--muted); }

/* Bullet list: plain black dots */
.points li { padding-left: 20px; }
.points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); top: 21px; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a:not(.nav-cta) { text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-links a:not(.nav-cta):hover { text-decoration: underline; }

/* Shop */
.shop { max-width: 1180px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); }
.shop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.shop-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0; }
.shop-head p { margin: 0; color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item { text-decoration: none; display: block; }
.item-img { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.item-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
a.item:hover .item-img img { transform: scale(1.03); }
.soon .item-img { background: var(--soft); }
.item-ph { font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.02em; color: #c4c6cb; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.item-info { display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px 0; font-size: 15px; }
.item-name { font-weight: 600; }
.item-price { color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .item-info { flex-direction: column; gap: 2px; font-size: 14px; }
}
.shop-page { border-top: 0; min-height: 60vh; }
.shop-head h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.035em; margin: 0; }

/* Square product photos */
.gallery #main-img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 820px) {
  .gallery #main-img { width: auto; height: 34vh; max-height: none; margin: 0 auto; }
  .thumbs { justify-content: center; }
}

/* Pre-launch "Coming soon" state */
.cta.soon[disabled] { opacity: 1; cursor: default; background: var(--ink); }
.drop-note { margin: 12px 0 0; font-weight: 600; text-align: center; }
.notify-link { display: block; margin-top: 6px; text-align: center; color: var(--muted); font-size: 15px; text-underline-offset: 3px; }
.notify-link:hover { color: var(--ink); }

/* Desktop: keep the title from leaving "Hat" alone on its own line */
h1 { text-wrap: balance; }
@media (min-width: 821px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; }
  .buy h1 { font-size: clamp(36px, 3.6vw, 50px); }
}
