/* ============================================================
   PRESIDENTIAL — Maison Digitale
   A quiet, editorial design system for the world's strongest cannabis.
   ============================================================ */

:root {
  /* Palette — obsidian, ivory, authentic Presidential teal, champagne */
  --obsidian: #0a0a0a;
  --onyx: #161616;
  --graphite: #2a2a2a;
  --smoke: #6a6a68;
  --bone: #f4efe6;
  --ivory: #faf7f1;
  --paper: #ffffff;
  --teal: #58c9c5;        /* the brand's authentic banner teal */
  --teal-deep: #2f8f8b;
  --teal-shade: #e7f5f4;
  --champagne: #c7a25a;
  --champagne-deep: #8c6a2e;
  --rule: rgba(10, 10, 10, 0.12);
  --rule-light: rgba(244, 239, 230, 0.16);

  /* Type — Bodoni Moda for display, Inter for body, EB Garamond for editorial */
  --font-display: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
  --font-editorial: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 10vw, 160px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--obsidian);
  background: var(--ivory);
  line-height: 1.55;
  font-size: 15px;
  letter-spacing: 0.01em;
}

::selection { background: var(--obsidian); color: var(--ivory); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.display--xl { font-size: clamp(52px, 9vw, 156px); }
.display--lg { font-size: clamp(44px, 7vw, 104px); }
.display--md { font-size: clamp(34px, 5vw, 72px); }
.display--sm { font-size: clamp(26px, 3.4vw, 44px); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--smoke);
}
.eyebrow--teal { color: var(--teal-deep); }
.eyebrow--champagne { color: var(--champagne-deep); }

.lede {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--graphite);
  max-width: 52ch;
}

.serif-caption {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--smoke);
}

/* ---------- Layout ---------- */
.shell { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--light { background: var(--rule-light); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 56px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 40px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 72px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header / Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav--dark {
  background: rgba(10, 10, 10, 0.58);
  border-bottom-color: var(--rule-light);
  color: var(--bone);
}
.nav__links {
  display: none; gap: 36px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
}
.nav__links a { position: relative; padding: 6px 0; opacity: 0.82; transition: opacity 0.3s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1000px) { .nav__links { display: flex; } }

.nav__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__utility {
  display: flex; gap: 22px; align-items: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
@media (max-width: 1180px) {
  .nav__brand { font-size: 17px; letter-spacing: 0.34em; }
}
@media (max-width: 1080px) and (min-width: 1000px) {
  .nav__links { gap: 22px; font-size: 10px; letter-spacing: 0.22em; }
}
.nav__burger {
  width: 32px; height: 18px; position: relative; display: none;
}
.nav__burger span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 9px; }
.nav__burger span:nth-child(3) { top: 16px; }
@media (max-width: 999px) { .nav__burger { display: block; } .nav__utility__text { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--obsidian); color: var(--bone);
  transform: translateY(-100%); transition: transform 0.7s var(--ease);
  padding: 120px var(--gutter) var(--gutter);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer a { display: block; font-family: var(--font-display); font-size: 40px; letter-spacing: -0.01em; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.drawer__close { position: absolute; top: 24px; right: var(--gutter); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid currentColor; background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { background: var(--obsidian); color: var(--ivory); }
.btn--filled { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.btn--filled:hover { background: var(--graphite); }
.btn--ghost-light { color: var(--bone); border-color: var(--bone); }
.btn--ghost-light:hover { background: var(--bone); color: var(--obsidian); }
.btn--gold { color: var(--champagne); border-color: var(--champagne); }
.btn--gold:hover { background: var(--champagne); color: var(--obsidian); }
.btn__arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;        /* fallback for old browsers */
  min-height: 100svh;       /* small-viewport-height: stable across iOS Safari/Chrome address-bar changes */
  display: grid; place-items: center;
  background: var(--obsidian); color: var(--bone);
  overflow: hidden;
  padding-top: 88px;        /* clear the fixed nav so the crest never tucks under it */
  padding-bottom: 60px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.7) saturate(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.85) 100%);
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  padding: var(--gutter); max-width: 1100px;
}
.hero__eyebrow {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 180px);
  font-weight: 300; line-height: 0.96; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
@media (max-width: 820px) {
  .hero__content { padding-top: 40px; padding-bottom: 40px; }
  .hero--brand .hero__crest { margin-bottom: 28px; }
  .hero__sub { margin-bottom: 28px; }
  .hero__cta .btn { padding: 14px 22px; font-size: 10.5px; }
}
.hero__title em { font-style: italic; color: var(--teal); font-weight: 300; }
.hero__sub {
  font-family: var(--font-editorial);
  font-size: clamp(17px, 1.5vw, 22px);
  font-style: italic; color: rgba(244, 239, 230, 0.78);
  max-width: 48ch; margin: 0 auto 44px;
}
.hero__cta { display: inline-flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(244, 239, 230, 0.7);
  display: inline-flex; align-items: center; gap: 12px;
}
@media (max-width: 820px) {
  .hero__scroll { display: none; }
}
.hero__scroll::after {
  content: ""; width: 1px; height: 44px; background: currentColor;
  animation: trickle 2.4s var(--ease) infinite;
}
@keyframes trickle {
  0% { transform: scaleY(0); transform-origin: top; }
  40% { transform: scaleY(1); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Brand-teal Hero (homepage) ---------- */
.hero--brand {
  background: var(--teal);
  color: var(--obsidian);
}
.hero--brand .hero__brand-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(10,10,10,0.25) 0%, transparent 60%),
    linear-gradient(180deg, var(--teal) 0%, #47b4b0 100%);
}
.hero--brand .hero__content { position: relative; z-index: 2; }
.hero__crest {
  display: block;
  width: min(560px, 82%);
  height: auto;
  margin: 0 auto 36px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 48px rgba(10, 10, 10, 0.18));
  animation: crest-in 1.2s var(--ease) both;
}
@keyframes crest-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.hero__eyebrow--on-teal { color: rgba(10, 10, 10, 0.62); }
.hero__title--on-teal { color: var(--obsidian); }
.hero__title--on-teal em { color: var(--ivory); font-style: italic; }
.hero__sub--on-teal { color: rgba(10, 10, 10, 0.72); }
.hero__scroll--on-teal { color: rgba(10, 10, 10, 0.6); }

/* Buttons tuned for teal background */
.btn--brand-dark {
  background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian);
}
.btn--brand-dark:hover { background: var(--graphite); }
.btn--brand-outline {
  background: transparent; color: var(--obsidian); border-color: var(--obsidian);
}
.btn--brand-outline:hover { background: var(--obsidian); color: var(--teal); }

/* Nav tuned for teal hero */
.nav--brand {
  background: rgba(88, 201, 197, 0.6);
  border-bottom-color: rgba(10, 10, 10, 0.14);
  color: var(--obsidian);
}

/* ---------- Editorial blocks ---------- */
.editorial { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .editorial { grid-template-columns: 1fr 1fr; gap: 10vw; } }
.editorial--reverse > :first-child { order: 2; }
@media (max-width: 899px) { .editorial--reverse > :first-child { order: 0; } }
.editorial__media { position: relative; overflow: hidden; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.editorial__media:hover img { transform: scale(1.03); }

/* ---------- Marquee ticker ---------- */
.marquee {
  background: var(--obsidian); color: var(--bone);
  overflow: hidden; padding: 18px 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.marquee__track {
  display: flex; gap: 80px; width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--font-display); font-size: 28px; font-weight: 300; letter-spacing: 0.04em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee__track i { color: var(--teal); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Product tile ---------- */
.tile { background: var(--paper); overflow: hidden; position: relative; transition: transform 0.6s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile__media {
  aspect-ratio: 4 / 5; background: var(--bone); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.tile__media img { width: 86%; height: 86%; object-fit: contain; transition: transform 1s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__body { padding: 24px 8px 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile__name { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.005em; margin: 0; }
.tile__meta { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--smoke); }
.tile__price { font-family: var(--font-editorial); font-size: 18px; letter-spacing: 0.02em; }

/* Flavor chip grid */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  padding: 8px 14px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.chip[data-tone="berry"] { border-color: #b84f6f; color: #87354e; }
.chip[data-tone="classic"] { border-color: var(--teal-deep); color: var(--teal-deep); }
.chip[data-tone="grape"] { border-color: #7a4a8e; color: #5a345f; }
.chip[data-tone="peach"] { border-color: #d98652; color: #a05923; }
.chip[data-tone="pineapple"] { border-color: #d7b13b; color: #8a6d16; }
.chip[data-tone="strawberry"] { border-color: #d25264; color: #8d2936; }
.chip[data-tone="tropical"] { border-color: #4aa88e; color: #2a6e5a; }
.chip[data-tone="watermelon"] { border-color: #cf4b6a; color: #932036; }

/* ---------- Dark sections ---------- */
.dark { background: var(--obsidian); color: var(--bone); }
.dark .eyebrow { color: rgba(244, 239, 230, 0.6); }
.dark .lede { color: rgba(244, 239, 230, 0.78); }
.dark .rule { background: var(--rule-light); }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200;
  height: 100vh;            /* fallback */
  height: 100dvh;           /* full dynamic viewport on mobile */
  background: var(--obsidian) url("../assets/img/california-mono.jpg") center/cover no-repeat;
  display: grid; place-items: center; color: var(--bone);
  overflow: hidden;
}
.gate::before { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, 0.78); }
.gate__inner { position: relative; z-index: 2; text-align: center; padding: var(--gutter); max-width: 640px; }
.gate__crest { width: 140px; margin: 0 auto 32px; }
.gate__kicker { font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--teal); }
.gate__title { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1; margin: 24px 0 20px; }
.gate__sub { font-family: var(--font-editorial); font-style: italic; font-size: 18px; color: rgba(244,239,230,0.76); margin: 0 0 40px; }
.gate__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gate__fine { margin-top: 36px; font-size: 10px; letter-spacing: 0.18em; color: rgba(244,239,230,0.45); }
.gate[hidden] { display: none; }

/* ---------- Footer ---------- */
.foot { background: var(--obsidian); color: var(--bone); padding-top: 96px; }
.foot__grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 64px; } }
.foot h4 { font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; margin: 0 0 18px; color: rgba(244,239,230,0.6); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.02em; opacity: 0.85; }
.foot li a:hover { opacity: 1; color: var(--teal); }
.foot__brand { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.08em; margin-bottom: 20px; }
.foot__lede { font-family: var(--font-editorial); font-style: italic; font-size: 17px; color: rgba(244,239,230,0.7); max-width: 36ch; }
.foot__bar { margin-top: 96px; padding: 28px 0; border-top: 1px solid var(--rule-light); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,239,230,0.5); }

/* Newsletter */
.news {
  display: flex; gap: 0; border-bottom: 1px solid rgba(244,239,230,0.3);
  max-width: 420px;
}
.news input {
  flex: 1; background: transparent; border: 0; padding: 14px 0;
  color: var(--bone); font-family: var(--font-sans); font-size: 14px; outline: none;
}
.news input::placeholder { color: rgba(244,239,230,0.45); letter-spacing: 0.06em; }
.news button {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--teal); padding: 0 6px;
}

/* ---------- Pull quote ---------- */
.pullquote {
  text-align: center; padding: 0 var(--gutter); max-width: 1100px; margin: 0 auto;
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(30px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.01em;
}
.pullquote::before, .pullquote::after { color: var(--teal); }
.pullquote cite {
  display: block; margin-top: 32px;
  font-family: var(--font-sans); font-style: normal; font-size: 11px;
  letter-spacing: 0.38em; text-transform: uppercase; color: var(--smoke);
}

/* ---------- Atelier cinematic ---------- */
.cinema { position: relative; min-height: 90vh; color: var(--bone); display: grid; place-items: center; overflow: hidden; }
.cinema__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cinema__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.5), rgba(10,10,10,0.85)); }
.cinema__content { position: relative; z-index: 2; text-align: center; padding: var(--section) var(--gutter); max-width: 880px; }

/* ---------- Numbered markers ---------- */
.marker { display: inline-flex; gap: 14px; align-items: baseline; }
.marker__n { font-family: var(--font-display); font-size: 12px; font-style: italic; color: var(--champagne); }
.marker__t { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; }

/* ---------- Fade-in scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.no-break { white-space: nowrap; }
.mt-sm { margin-top: 24px; } .mt-md { margin-top: 40px; } .mt-lg { margin-top: 72px; }
.mb-sm { margin-bottom: 24px; } .mb-md { margin-bottom: 40px; } .mb-lg { margin-bottom: 72px; }
.max-prose { max-width: 64ch; }
.cols-2 { column-count: 1; column-gap: 48px; }
@media (min-width: 820px) { .cols-2 { column-count: 2; } }

/* Cursor divider */
.sep {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  margin: 64px auto; max-width: 1200px;
}
.sep::before, .sep::after { content: ""; height: 1px; background: currentColor; opacity: 0.18; }
.sep__dot { width: 6px; height: 6px; background: var(--teal); transform: rotate(45deg); }
