/* Cannabee Extracts
   Palette from the studio photography: comb-black backdrops,
   resin amber, and the neon ring the products are shot under. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap;
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --comb:  #14100a;   /* page */
  --glass: #201910;   /* raised surfaces */
  --line:  #3b2f1d;   /* hairlines */
  --wax:   #f4ecdc;   /* text */
  --smoke: #b9aa8c;   /* secondary text */
  --resin: #f0a81c;   /* brand amber */
  --neon:  #f5e11a;   /* focus + the ring */
  --ink:   #1a1206;   /* text on amber */

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 1240px;
  --measure: 66ch;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--comb);
  color: var(--wax);
  font: 400 1.125rem/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--resin); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--neon); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: .95; margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(3.1rem, 8vw, 6.75rem); }
h2 { font-weight: 900; font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h3 { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.05; color: var(--resin); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--wax); max-width: 36ch; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--neon); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.3em;
  font: 600 1rem/1.1 var(--body); text-decoration: none;
  color: var(--wax); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover { border-color: var(--resin); color: var(--wax); }
.btn--solid { background: var(--resin); border-color: var(--resin); color: var(--ink); }
.btn--solid:hover { background: var(--neon); border-color: var(--neon); color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.masthead { position: sticky; top: 0; z-index: 20; background: rgb(20 16 10 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead__inner { max-width: var(--wide); margin: 0 auto; padding: .6rem var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--wax); margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand__name { font: 900 1.6rem/1 var(--display); letter-spacing: .01em; }
.brand:hover { color: var(--wax); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  font: 600 1rem/1 var(--body); color: var(--wax); text-decoration: none;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--neon); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--resin); }
.nav__menu-btn::after { content: ""; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15em) rotate(45deg); transition: transform .15s; }
.nav__menu-btn[aria-expanded="true"]::after { transform: translateY(.1em) rotate(-135deg); }

.nav__products { position: relative; }
.nav__menu { list-style: none; margin: 0; padding: .5rem; display: none; }
.nav__menu a { display: block; padding: .6rem .9rem; border-radius: 8px; color: var(--wax); text-decoration: none; font-weight: 600; }
.nav__menu a:hover { background: var(--glass); color: var(--neon); }
.nav__menu a[aria-current="page"] { color: var(--resin); }
.nav__menu-btn[aria-expanded="true"] + .nav__menu { display: block; }

.nav-toggle { display: none; }

@media (min-width: 821px) {
  .nav__menu { position: absolute; top: calc(100% + .5rem); left: -.5rem; min-width: 15rem; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgb(0 0 0 / .45); }
}

@media (max-width: 820px) {
  .js .nav-toggle {
    display: inline-flex; min-height: 44px; align-items: center; padding: 0 1.1rem;
    font: 600 1rem/1 var(--body); color: var(--wax); background: none;
    border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .js .nav { display: none; }
  .js .nav-toggle[aria-expanded="true"] + .nav { display: block; }
  .nav { position: absolute; inset: 100% 0 auto; background: var(--comb); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; max-height: calc(100dvh - 70px); overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; font-size: 1.2rem; padding: 0 .25rem; }
  .nav__menu { padding: 0 0 .5rem .5rem; }
  .brand__name { font-size: 1.35rem; }
}

/* ------------------------------------------------------------------ */
/* Home                                                               */
/* ------------------------------------------------------------------ */
.hero {
  max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 8vw, 7rem);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 { max-width: 9ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The jar: a top-down macro of the resin, held inside the studio's neon ring. */
.hero__jar { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.hero__jar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero__jar::before {
  content: ""; position: absolute; inset: -5.5%; border-radius: 50%;
  border: 3px solid var(--neon);
  box-shadow: 0 0 22px rgb(245 225 26 / .55), inset 0 0 22px rgb(245 225 26 / .35);
  -webkit-mask: conic-gradient(#000 var(--ring, 360deg), transparent 0);
          mask: conic-gradient(#000 var(--ring, 360deg), transparent 0);
}
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@media (prefers-reduced-motion: no-preference) {
  .hero__jar::before { animation: ring-on 1.4s cubic-bezier(.6, 0, .2, 1) .25s both; }
  @keyframes ring-on { from { --ring: 0deg; } to { --ring: 360deg; } }
}

.lineup, .story { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.tile a { display: block; text-decoration: none; color: var(--wax); }
.tile__photo { display: block; aspect-ratio: 4 / 3; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.tile__photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.tile__name { display: block; font: 900 clamp(1.7rem, 2.6vw, 2.1rem)/1 var(--display); margin-bottom: .3rem; }
.tile__line { display: block; color: var(--smoke); font-size: 1rem; }
.tile a:hover .tile__name { color: var(--neon); }
@media (prefers-reduced-motion: no-preference) { .tile a:hover img { transform: scale(1.04); } }

.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__text p { max-width: var(--measure); }
.story__video, .feature-video { margin: 0; }
.story__video figcaption, .feature-video figcaption { margin-top: .75rem; color: var(--smoke); font-size: 1rem; }

/* ------------------------------------------------------------------ */
/* Product pages                                                      */
/* ------------------------------------------------------------------ */
.product-hero {
  max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.product-hero__photo { margin: 0; background: #000; border-radius: var(--radius); overflow: hidden; }
.product-hero__photo img { width: 100%; max-height: 72vh; object-fit: contain; }

.prose { max-width: var(--measure); }
.prose--product { margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem); box-sizing: content-box; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--resin); }
.prose strong { color: var(--wax); font-weight: 600; }

/* Gallery */
.gallery { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.gallery__head h2 { margin: 0; }
.gallery__count { margin: 0; color: var(--smoke); }
.gallery__empty { color: var(--smoke); }
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(42vw, 230px), 1fr)); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.gallery__item { display: block; text-decoration: none; color: var(--wax); }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; border-radius: 10px; }
.gallery__caption { display: block; margin-top: .45rem; font-size: .95rem; line-height: 1.3; color: var(--smoke); }
.gallery__item:hover .gallery__caption { color: var(--neon); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 6 3 / .97); color: var(--wax); }
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem var(--gutter); gap: 1rem; }
.lightbox__count { color: var(--smoke); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 0 clamp(3.5rem, 7vw, 6rem); }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 9.5rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { text-align: center; padding: 1rem var(--gutter) 1.5rem; font: 800 1.6rem/1.1 var(--display); min-height: 3.6rem; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: rgb(20 16 10 / .8); color: var(--wax); cursor: pointer; display: grid; place-items: center; }
.lightbox__nav:hover { border-color: var(--neon); color: var(--neon); }
.lightbox__nav--prev { left: clamp(.4rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.4rem, 2vw, 1.5rem); }
.lightbox__nav svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .lightbox__stage { padding: 0 .5rem; overflow: visible; }
  .lightbox__stage img { max-height: calc(100dvh - 13rem); }
  .lightbox__nav { top: auto; bottom: -4.25rem; translate: none; }
}

/* ------------------------------------------------------------------ */
/* Plain pages                                                        */
/* ------------------------------------------------------------------ */
.page { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(4rem, 9vw, 7rem); }
.page--narrow { max-width: 860px; }
.page__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page__head .lede { max-width: 48ch; }
.page__split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.page__split .prose h2 { margin-top: 2.5rem; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.page__badge { margin: 0; position: sticky; top: 7rem; }

/* Video facades: a thumbnail until clicked, then the YouTube player */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; translate: -50% -50%;
  border-radius: 50%; background: var(--resin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%231a1206'/%3E%3C/svg%3E") 56% 50% / 30px no-repeat;
  box-shadow: 0 4px 20px rgb(0 0 0 / .5); transition: background-color .15s;
}
.yt:hover img { opacity: 1; }
.yt:hover::after { background-color: var(--neon); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing::after { display: none; }

.feature-video { max-width: 900px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem clamp(1rem, 2.5vw, 2rem); }
.videos__title { margin: .7rem 0 0; font-weight: 600; line-height: 1.35; }

/* Instagram */
.ig { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 326px), 1fr)); gap: 1.5rem; align-items: start; }
.ig .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }

/* Embedded Google Form */
.form-embed { background: #fff; border-radius: var(--radius); overflow: hidden; }
.form-embed iframe { display: block; width: 100%; height: 1500px; border: 0; }
.form-embed__alt { margin-top: 1rem; color: var(--smoke); }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); background: #100c07; }
.footer__inner { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand img { margin-bottom: 1rem; }
.footer__brand p { color: var(--smoke); max-width: 34ch; }
.footer__nav h2 { font: 800 1.35rem/1 var(--display); color: var(--resin); margin-bottom: 1rem; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: .55rem; }
.footer__nav a { color: var(--wax); text-decoration: none; }
.footer__nav a:hover { color: var(--neon); text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.6; color: var(--smoke); max-width: 90ch; }

/* ------------------------------------------------------------------ */
/* Age check                                                          */
/* ------------------------------------------------------------------ */
.age-gate { max-width: min(92vw, 440px); padding: 2.5rem 2rem 2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); color: var(--wax); text-align: center; }
.age-gate::backdrop { background: rgb(10 8 4 / .94); backdrop-filter: blur(14px); }
.age-gate img { width: 160px; height: 160px; margin: 0 auto 1.25rem; }
.age-gate h2 { font-size: 2.6rem; margin-bottom: .3em; }
.age-gate p { color: var(--smoke); }
.age-gate__actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.age-gate__denied { color: var(--wax) !important; margin: 1.25rem 0 0; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Narrow screens                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero, .product-hero, .story, .page__split { grid-template-columns: 1fr; }
  .hero__jar { width: min(78vw, 420px); order: -1; margin-top: .5rem; }
  .hero h1 { max-width: 12ch; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .page__badge { position: static; max-width: 260px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 1.25rem .9rem; }
  .tile__line { font-size: .9rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}
