:root {
  --bg: #faf7f2;
  --ink: #22382a;
  --sage: #b5c8a6;
  --honey: #e9a23b;
  --blush: #f4dcd2;
  --white: #ffffff;
  --max: 1440px;
  --gutter: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.wordmark {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--blush);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  transform: rotate(-2deg);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 8px; }

.site-nav a {
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: border-color 150ms ease;
}
.site-nav a:hover { border-color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--white); border-color: var(--ink); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 34px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.button:hover { transform: translate(-2px, -2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--honey); }
.button-primary:hover { box-shadow: 7px 7px 0 var(--honey); }

/* ---------- Home hero ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; flex: 1; }

.hero h1 {
  font-weight: 800;
  font-size: clamp(64px, 10.4vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.lede { font-size: 22px; line-height: 30px; max-width: 420px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.pack-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border-radius: 48px;
  background: var(--sage);
}

.hero .pack-card { width: min(600px, 44vw); aspect-ratio: 600 / 640; }

.pack-card img {
  width: 73%;
  border-radius: 24px;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-5deg);
}

/* ---------- Ticker ---------- */

.ticker {
  width: 110vw;
  margin-left: -5vw;
  padding: 22px 0;
  background: var(--ink);
  transform: rotate(-2deg);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-track span {
  padding-right: 36px;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--blush);
  white-space: nowrap;
}
.ticker-track span.star { color: var(--honey); }

@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cards (home + about) ---------- */

.cards {
  display: flex;
  gap: 20px;
  padding-top: 96px;
  padding-bottom: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 32px;
  border: 2px solid var(--ink);
  background: var(--white);
}
.card-sage { background: var(--sage); }
.card-ink { background: var(--ink); color: var(--blush); }

.tilt-card {
  justify-content: space-between;
  gap: 32px;
  min-height: 300px;
  padding: 32px;
}
.tilt-card:nth-child(1) { transform: rotate(-1.5deg); }
.tilt-card:nth-child(2) { transform: rotate(1deg); }
.tilt-card:nth-child(3) { transform: rotate(-1deg); }

.tilt-card h2 {
  font-weight: 800;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.card p { font-size: 18px; line-height: 26px; }

.step-card { gap: 20px; padding: 36px; }

.step-card h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--honey);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
}
.card-sage .step-num { background: var(--white); }
.card-ink .step-num { background: var(--blush); border-color: var(--blush); }

/* ---------- About hero ---------- */

.about-hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 48px;
  padding-bottom: 96px;
}

.naan-circle {
  flex-shrink: 0;
  width: min(500px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  background: url('/assets/naan-pack-2.webp') 48.8% 73.7% / 300% auto no-repeat;
}

.about-copy { display: flex; flex-direction: column; gap: 28px; flex: 1; }

.about-copy h1 {
  font-weight: 800;
  font-size: clamp(48px, 6.1vw, 88px);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

/* ---------- Shop ---------- */

.product {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  padding-top: 32px;
  padding-bottom: 88px;
}

.product .pack-card {
  width: min(680px, 48vw);
  aspect-ratio: 680 / 720;
  border: 2px solid var(--ink);
}
.product .pack-card img { width: 70%; transform: rotate(4deg); }

.sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 36px;
  left: 36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--honey);
  font-weight: 800;
  font-size: 20px;
  line-height: 21px;
  text-align: center;
  transform: rotate(-12deg);
}

.buy-box { display: flex; flex-direction: column; gap: 28px; flex: 1; padding-top: 16px; }

.buy-box h1 {
  font-weight: 800;
  font-size: clamp(56px, 6.7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.buy-box .lede { max-width: none; font-size: 20px; line-height: 29px; }

.pack-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  margin: 0;
  border: 0;
  padding-left: 0;
  padding-right: 0;
}

.pack-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  border-radius: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 22px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 150ms ease;
}
.pack-option[aria-checked="true"] {
  background: var(--ink);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--honey);
}

.pack-name { display: flex; align-items: center; gap: 12px; }

.save {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink);
  font-size: 14px;
}
.pack-option[aria-checked="true"] .save { background: var(--honey); }

.cart-note { font-weight: 700; font-size: 18px; line-height: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-mark { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }

.footer-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 16px; }

/* ---------- Tablet & phone ---------- */

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .site-header { flex-wrap: wrap; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 10px 14px; font-size: 15px; }

  .hero, .about-hero, .product { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero { padding-bottom: 56px; }
  .hero .pack-card, .product .pack-card { width: 100%; }
  .naan-circle { width: min(420px, 100%); align-self: center; }
  .about-hero { padding-bottom: 64px; }

  .cards { flex-direction: column; padding-top: 72px; }
  .tilt-card { min-height: 0; }
  .tilt-card h2 { font-size: 48px; }

  .ticker-track span { font-size: 26px; }

  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-nav .nav-page { padding: 10px 10px; }
  .pack-card img { box-shadow: 8px 8px 0 var(--ink); }
  .sticker { width: 96px; height: 96px; font-size: 15px; line-height: 16px; top: 16px; left: 16px; }
  .pack-option { padding: 16px 18px; font-size: 18px; }
}
