/* Greenhouse Vapes — design tokens */
:root {
  --bg: oklch(0.16 0.018 150);
  --bg-2: oklch(0.21 0.022 150);
  --bg-3: oklch(0.26 0.025 150);
  --line: oklch(0.32 0.02 150);
  --line-soft: oklch(0.28 0.018 150);
  --fg: oklch(0.96 0.015 95);
  --fg-2: oklch(0.82 0.018 95);
  --fg-3: oklch(0.62 0.02 110);
  --leaf: oklch(0.78 0.14 135);
  --leaf-2: oklch(0.88 0.12 130);
  --leaf-deep: oklch(0.52 0.12 145);
  --amber: oklch(0.82 0.13 75);
  --danger: oklch(0.68 0.18 28);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* Themes */
[data-theme="earthy"] {
  --bg: oklch(0.94 0.012 80);
  --bg-2: oklch(0.90 0.015 80);
  --bg-3: oklch(0.86 0.02 80);
  --line: oklch(0.78 0.025 80);
  --line-soft: oklch(0.84 0.02 80);
  --fg: oklch(0.22 0.03 90);
  --fg-2: oklch(0.38 0.03 90);
  --fg-3: oklch(0.52 0.035 95);
  --leaf: oklch(0.42 0.12 145);
  --leaf-2: oklch(0.54 0.13 140);
  --leaf-deep: oklch(0.32 0.09 150);
  --amber: oklch(0.58 0.14 65);
}
[data-theme="light"] {
  --bg: oklch(0.99 0.003 150);
  --bg-2: oklch(0.97 0.006 150);
  --bg-3: oklch(0.94 0.008 150);
  --line: oklch(0.86 0.01 150);
  --line-soft: oklch(0.92 0.008 150);
  --fg: oklch(0.18 0.02 150);
  --fg-2: oklch(0.36 0.02 150);
  --fg-3: oklch(0.52 0.02 150);
  --leaf: oklch(0.48 0.14 140);
  --leaf-2: oklch(0.58 0.14 135);
  --leaf-deep: oklch(0.36 0.11 145);
  --amber: oklch(0.62 0.13 70);
}
[data-theme="neon"] {
  --bg: oklch(0.12 0.01 150);
  --bg-2: oklch(0.16 0.012 150);
  --bg-3: oklch(0.20 0.015 150);
  --line: oklch(0.28 0.02 150);
  --line-soft: oklch(0.24 0.018 150);
  --fg: oklch(0.98 0.01 150);
  --fg-2: oklch(0.82 0.015 150);
  --fg-3: oklch(0.62 0.02 150);
  --leaf: oklch(0.92 0.22 130);
  --leaf-2: oklch(0.95 0.18 125);
  --leaf-deep: oklch(0.70 0.20 140);
  --amber: oklch(0.88 0.18 80);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
noscript { display: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.5vw, 88px); font-variation-settings: "opsz" 144, "SOFT" 30; }
h2 { font-size: clamp(32px, 4.2vw, 54px); font-variation-settings: "opsz" 144, "SOFT" 20; }
h3 { font-size: clamp(22px, 2.4vw, 30px); font-variation-settings: "opsz" 72; }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--leaf); color: oklch(0.18 0.03 150); }
.btn-primary:hover { background: var(--leaf-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }
.btn-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 18px; }

/* Background texture — subtle botanical grid */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.35;
}

/* Card */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line); }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2);
}
.tag-leaf { border-color: color-mix(in oklch, var(--leaf) 50%, transparent); color: var(--leaf); }

/* Anchor scroll offset so the sticky nav never covers a same-page jump target */
#finder { scroll-margin-top: 90px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; max-width: 1240px; margin: 0 auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  color: var(--fg-2);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); background: var(--bg-2); }
.nav-link.active { color: var(--leaf); background: color-mix(in oklch, var(--leaf) 10%, transparent); }

/* Logo mark placeholder */
.logomark {
  display: inline-flex; align-items: center; gap: 10px;
}
.logomark-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklch, var(--leaf) 30%, transparent) 0 3px,
      transparent 3px 7px),
    var(--bg-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; color: var(--leaf);
  letter-spacing: 0;
}
.logomark-text {
  font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.logomark-text span { color: var(--leaf); }

/* Sections */
section { position: relative; padding: clamp(72px, 9vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { max-width: 720px; }
.section-head p { max-width: 440px; color: var(--fg-2); font-size: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line-soft); padding: 72px 0 40px; margin-top: 60px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; color: var(--fg-2); font-size: 14px; }
.footer-col a:hover { color: var(--leaf); }
.footer-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 28px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .nav-links .nav-link:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; min-width: 240px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.4);
}
.tweaks h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.theme-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch {
  height: 40px; border-radius: 8px; border: 2px solid var(--line);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.swatch:hover { transform: translateY(-1px); }
.swatch.active { border-color: var(--leaf); box-shadow: 0 0 0 2px color-mix(in oklch, var(--leaf) 30%, transparent); }
.swatch-label { font-family: var(--mono); font-size: 9px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; margin-top: 4px; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: oklch(0.08 0.015 150 / 0.96); backdrop-filter: blur(14px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.age-gate-card {
  max-width: 460px; width: 100%;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center;
}

/* Motion utility */
.fade-up { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================ */
/* MOBILE NAV — hamburger + slide-down sheet                    */
/* ============================================================ */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: transparent;
  cursor: pointer;
  position: relative; z-index: 70;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile-sheet {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 900;
  padding-top: 73px;
  background: #0f1a14;
  overflow-y: auto;
}
.nav-mobile-inner {
  display: flex; flex-direction: column;
  padding: 24px 28px 40px;
  max-width: 520px; margin: 0 auto;
}
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  color: var(--fg); letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-soft);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.nav-mobile-link span { color: var(--fg-3); font-size: 18px; font-family: var(--sans); }
.nav-mobile-link.active { color: var(--leaf); }
.nav-mobile-link.active span { color: var(--leaf); }

/* ============================================================ */
/* MOBILE LAYOUT — collapse grids + reduce paddings             */
/* ============================================================ */
@media (max-width: 760px) {
  /* Bring nav to a clean two-element bar */
  .nav-inner { padding: 14px 18px; }
  .nav-links { display: none !important; }
  .nav-burger { display: flex; }
  .logomark-text { font-size: 18px; }

  /* Containers */
  .container { padding: 0 18px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; gap: 24px; }

  /* Type — slightly tighter on tiny screens */
  h1 { font-size: clamp(36px, 10vw, 56px) !important; }
  h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  body { font-size: 15px; }

  /* Buttons */
  .btn { padding: 13px 18px; font-size: 13.5px; }

  /* Cards — softer padding */
  .card { border-radius: 18px; }

  /* HERO grid → stack */
  .hero-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .hero-grid > div:last-child { max-width: 360px; margin: 0 auto; width: 100%; }

  /* Locations preview cards (homepage) → stack */
  .locs-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Locations page detail cards → stack two-col → one-col */
  .loc-card-grid { grid-template-columns: 1fr !important; }
  .loc-card-grid > div:first-child { border-right: none !important; border-bottom: 1px solid var(--line-soft); padding: 28px 22px !important; }
  .loc-card-grid > div:last-child > div { padding: 22px 22px 0 !important; }
  .loc-card-grid > div:last-child > div:last-child { padding: 22px !important; }

  /* Contact page form + info cards → stack */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Rewards page punch-card visual → stack, card first */
  .rewards-visual-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Explorer filter chips — comfortable tap target on touch screens */
  .chip { padding: 11px 16px; min-height: 44px; display: inline-flex; align-items: center; }

  /* About page (already single column now) — keep chapters readable */
  .about-grid { grid-template-columns: 1fr !important; gap: 36px !important; }

  /* Inline-styled grids: brand wall, category cells, reward steps, reasons —
     these use grid-template-columns from inline style with auto-fit/auto-fill
     so they self-collapse, but enforce minmax floors that work on narrow screens */
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer-meta { flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 22px; }
  footer { padding: 56px 0 32px; }

  /* Tweaks panel — smaller, lower */
  .tweaks { right: 12px; bottom: 12px; left: 12px; min-width: 0; }

  /* Age gate — tighter */
  .age-gate { padding: 16px; }
  .age-gate-card { padding: 32px 22px; }
  .age-gate-card .btn { width: 100%; justify-content: center; }
  .age-gate-card div[style*="display: flex"] { flex-direction: column; }

  /* Inline padding cleanup via attribute selectors — soften aggressive padding values */
  [style*="padding: 36px"] { padding: 24px !important; }
  [style*="padding: 32px"] { padding: 22px !important; }
  [style*="padding: 44px 44px"] { padding: 28px 22px !important; }
  [style*="padding: 48px 40px"] { padding: 32px 22px !important; }
  [style*="padding: 40px"] { padding: 22px !important; }

  /* Stat numbers shouldn't dominate on narrow */
  [style*="fontSize: 72"] { font-size: 56px !important; }
  [style*="fontSize: 48"] { font-size: 36px !important; }
  [style*="fontSize: 42"] { font-size: 32px !important; }

  /* About chapter year column should be tighter */
  /* (uses inline 100px 1fr — keep, narrow OK) */
}

@media (max-width: 420px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 26px !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .nav-inner { padding: 12px 16px; }
}

/* Old 860px overrides (still useful for tablet) */
