/* ==========================================================================
   Satori Kensho — site stylesheet
   Colour + type tokens come straight from the three brand kits.
   Satori is the house identity; Kensho and Nirvana keep their own accents.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */
:root {
  /* Satori — house */
  --cream:      #FBF4EC;
  --cream-deep: #F4E9DA;
  --plum:       #4A2E4D;
  --plum-soft:  #6B4A6E;
  --gold:       #D9A05B;
  --tan:        #C08A63;
  --reverse:    #F6EFE4;

  /* Satori sunset bands, top to bottom */
  --sun-1: #FFD9A0;
  --sun-2: #F9BC80;
  --sun-3: #F2A06C;
  --sun-4: #EB8A6E;
  --sun-5: #E27A80;

  /* Kensho */
  --kensho-ink:    #17231D;
  --kensho-paper:  #F7F3EA;
  --kensho-matcha: #6F8A5E;

  /* Nirvana */
  --nirvana-ink:      #1B1A2E;
  --nirvana-paper:    #F8F5F2;
  --nirvana-lavender: #8F8AB8;

  /* Shared house thread */
  --vermilion: #B8412E;

  /* Neutrals derived from plum so nothing reads as cold grey */
  --ink:      #2E1F30;
  --muted:    #6E5C6F;
  --hairline: #E4D6C4;
  --white:    #FFFFFF;

  /* Type */
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gut:      clamp(1.25rem, 4vw, 2rem);
  --section:  clamp(3.5rem, 9vw, 6.5rem);
  --maxw:     1160px;
  --radius:   14px;
  --shadow:   0 1px 2px rgba(74, 46, 77, .05), 0 8px 28px rgba(74, 46, 77, .07);
  --shadow-lg:0 2px 4px rgba(74, 46, 77, .06), 0 18px 48px rgba(74, 46, 77, .11);
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vermilion); }
button { font: inherit; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.008em;
  color: var(--plum);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.5rem + 3.1vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ---------- Utilities --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; transform: translate(-50%, -120%);
  background: var(--plum); color: var(--reverse); padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 200; text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--reverse); }

:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--tan); margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.06rem, 1rem + .45vw, 1.3rem); color: var(--muted); line-height: 1.62; }

/* The Satori sunset, used as a hairline signature */
.sunset-rule {
  height: 3px; border: 0; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--sun-1) 0%, var(--sun-2) 25%, var(--sun-3) 50%, var(--sun-4) 75%, var(--sun-5) 100%);
}
.sunset-rule--short { width: 68px; }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: .93rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); color: var(--reverse); }
.btn--primary:hover { background: var(--vermilion); color: var(--reverse); }
.btn--ghost { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--ghost:hover { background: var(--plum); color: var(--reverse); }
.btn--light { background: var(--reverse); color: var(--plum); }
.btn--light:hover { background: var(--white); color: var(--vermilion); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--full { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ------------------------------------------------------ */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 236, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 74px;
}
.brandmark {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; flex-shrink: 0; color: var(--plum);
}
.brandmark img { height: 44px; width: auto; }
.brandmark__name {
  font-family: var(--serif); font-size: 1.02rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.brandmark:hover .brandmark__name { color: var(--vermilion); }
@media (max-width: 480px) {
  .brandmark img { height: 38px; }
  .brandmark__name { font-size: .86rem; letter-spacing: .13em; }
}
@media (max-width: 340px) { .brandmark__name { display: none; } }

.brandmark--footer { color: var(--reverse); margin-bottom: 1.35rem; }
.brandmark--footer .brandmark__name { font-size: 1.05rem; color: var(--reverse); }
.brandmark--footer:hover .brandmark__name { color: var(--sun-1); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  display: inline-block; padding: .5rem .78rem; border-radius: 999px;
  font-size: .92rem; font-weight: 400; color: var(--ink); text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: var(--cream-deep); color: var(--plum); }
.nav a[aria-current="page"] { color: var(--plum); font-weight: 500; background: var(--cream-deep); }
/* .nav a sets its own colour, so the CTA has to restate the button's.
   Shop sits first in the bar, so the gap goes on its right. */
.nav a.nav__cta { margin-right: .5rem; background: var(--plum); color: var(--reverse); }
.nav a.nav__cta:hover { background: var(--vermilion); color: var(--reverse); }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--hairline);
  border-radius: 999px; padding: .5rem .9rem; color: var(--plum); cursor: pointer;
  align-items: center; gap: .5rem; font-size: .88rem;
}
.nav-toggle__bars { display: inline-block; width: 16px; height: 10px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after,
.nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span    { top: 4.25px; }
.nav-toggle__bars::after  { top: 8.5px; }
[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars span    { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--hairline);
    padding: .5rem var(--gut) 1.5rem; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: .85rem .25rem; border-radius: 0; border-bottom: 1px solid var(--hairline); font-size: 1.02rem; }
  /* The Shop CTA keeps its pill and its light-on-plum colour inside the menu.
     It leads the menu, so the breathing room goes underneath it. */
  .nav a.nav__cta {
    margin: .35rem 0 1.35rem; align-self: center; padding: .85rem 2.4rem;
    font-size: .98rem; border-radius: 999px;
    background: var(--plum); color: var(--reverse); border: 1.5px solid var(--plum);
  }
  .nav a.nav__cta:hover { background: var(--vermilion); border-color: var(--vermilion); color: var(--reverse); }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.25rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 217, 160, .55) 0%, rgba(251, 244, 236, 0) 62%),
    var(--cream);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--sun-1) 0%, var(--sun-2) 25%, var(--sun-3) 50%, var(--sun-4) 75%, var(--sun-5) 100%);
  opacity: .8;
}
.hero__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr .85fr; } }
.hero__mark { justify-self: center; max-width: 330px; width: 100%; }
.hero h1 { margin-bottom: .55em; }
.hero .lede { max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero--page { padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.hero--page .hero__inner { grid-template-columns: 1fr; text-align: left; }

/* ---------- Cards / grids ---------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; }
.card__foot { margin-top: auto; padding-top: 1.25rem; }

.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); color: inherit; }

/* Brand cards carry their own accent along the top edge */
.card--brand { position: relative; overflow: hidden; padding-top: clamp(1.7rem, 3.4vw, 2.3rem); }
.card--brand::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--gold)); }
.card--brand .card__logo { height: 74px; margin-bottom: 1.25rem; }
.card--brand .card__logo img { height: 100%; width: auto; }
.card--satori  { --accent: linear-gradient(90deg, var(--sun-1), var(--sun-3), var(--sun-5)); }
.card--kensho  { --accent: linear-gradient(90deg, #2F6DB5, #E4AE33, #CB3F33, #4B9A57, #DE7F2C); }
.card--nirvana { --accent: linear-gradient(90deg, var(--nirvana-ink), var(--nirvana-lavender)); }

.pill-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.pill-list li {
  font-size: .82rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--plum-soft); border: 1px solid var(--hairline);
}

/* ---------- Pillars ----------------------------------------------------- */
.pillar { text-align: left; }
.pillar__icon {
  width: 46px; height: 46px; margin-bottom: 1.1rem; color: var(--gold);
}
.pillar__icon svg { width: 100%; height: 100%; }

/* ---------- Product listing -------------------------------------------- */
.product {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: .35rem;
  box-shadow: var(--shadow);
}
.product__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.product h3 { margin: 0; }
.product p { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }
.product__meta { margin-top: 1rem; font-size: .84rem; color: var(--muted); }
/* auto keeps every Notify-me button on the same baseline across a row */
.product__foot { margin-top: auto; padding-top: 1.35rem; }
.product h3 { font-size: 1.15rem; }

.badge {
  flex-shrink: 0; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; padding: .32rem .7rem; border-radius: 999px;
  background: var(--cream-deep); color: var(--tan); border: 1px solid var(--hairline);
  white-space: nowrap;
}
.badge--soon { background: #FDF3E4; color: #9C6B33; border-color: #EFD9B4; }

/* Slot the Shopify embed drops into once the store is live */
.buy-slot { margin-top: 1.35rem; }
.buy-slot:empty { display: none; }

/* ---------- Panels ------------------------------------------------------ */
.panel {
  border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--hairline); background: var(--white);
}
.panel--cream { background: var(--cream-deep); border-color: transparent; }
.panel--plum  { background: var(--plum); border-color: transparent; color: var(--reverse); }
.panel--plum h2, .panel--plum h3 { color: var(--reverse); }
.panel--plum p { color: rgba(246, 239, 228, .82); }
.panel--plum a { color: var(--sun-1); }

/* ---------- Sound strip ------------------------------------------------- */
.soundstrip { background: var(--plum); color: var(--reverse); }
.soundstrip h2 { color: var(--reverse); }
.soundstrip p { color: rgba(246, 239, 228, .8); }
.soundstrip__inner { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 820px) { .soundstrip__inner { grid-template-columns: 1.2fr .8fr; } }
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.social-row a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 1.5px solid rgba(246, 239, 228, .35); color: var(--reverse);
  text-decoration: none; font-size: .9rem;
  transition: background-color .18s ease, border-color .18s ease;
}
.social-row a:hover { background: rgba(246, 239, 228, .12); border-color: var(--sun-1); color: var(--reverse); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Notify form ------------------------------------------------- */
.notify { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.notify__field { flex: 1 1 240px; min-width: 0; }
.notify input[type="email"] {
  width: 100%; padding: .78rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--hairline); background: var(--white);
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.notify input[type="email"]::placeholder { color: #A695A7; }
.notify input[type="email"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 160, 91, .2); }
.notify__note { font-size: .82rem; color: var(--muted); margin: .85rem 0 0; }
.panel--plum .notify__note { color: rgba(246, 239, 228, .65); }
.notify__status { font-size: .9rem; margin: .85rem 0 0; min-height: 1.4em; }
.notify__status[data-state="ok"] { color: var(--kensho-matcha); }
.panel--plum .notify__status[data-state="ok"] { color: var(--sun-1); }
.notify__status[data-state="err"] { color: var(--vermilion); }

/* ---------- Prose (legal + long copy) ----------------------------------- */
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.9em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.15em; max-width: 68ch; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-weight: 500; color: var(--plum); background: var(--cream-deep); }
.prose__meta { font-size: .87rem; color: var(--muted); }

/* Compliance / small print */
.smallprint {
  font-size: .82rem; line-height: 1.6; color: var(--muted);
  border-left: 3px solid var(--hairline); padding-left: 1rem; margin-top: 2.5rem;
  max-width: 72ch;
}

/* ---------- FAQ --------------------------------------------------------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; color: var(--plum);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.4rem; color: var(--gold); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.35rem; }
.faq details > div p { color: var(--muted); }

/* ---------- Footer ------------------------------------------------------ */
.footer { background: var(--plum); color: rgba(246, 239, 228, .78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer a { color: rgba(246, 239, 228, .78); text-decoration: none; }
.footer a:hover { color: var(--sun-1); }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__logo { max-width: 210px; margin-bottom: 1.25rem; }
.footer h4 {
  color: var(--reverse); font-family: var(--sans); font-size: .75rem;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; font-size: .93rem; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(246, 239, 228, .16);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(246, 239, 228, .58);
}
.footer__bottom p { margin: 0; max-width: none; }

/* ---------- Cart affordances (dormant until Shopify is live) ------------ */
.cart-launcher {
  position: fixed; right: clamp(.9rem, 2.5vw, 1.6rem); bottom: clamp(.9rem, 2.5vw, 1.6rem);
  z-index: 90; display: none; align-items: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 0;
  background: var(--plum); color: var(--reverse); cursor: pointer;
  box-shadow: var(--shadow-lg); font-size: .9rem;
}
.cart-launcher[data-enabled="true"] { display: inline-flex; }
.cart-launcher:hover { background: var(--vermilion); }
.cart-launcher__count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--sun-1); color: var(--plum); font-size: .78rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Shopify's Buy Button drawer is injected at runtime; these keep it on-brand. */
.shopify-buy__cart-wrapper { font-family: var(--sans) !important; }
.shopify-buy__cart { background: var(--cream) !important; }

/* ---------- Print ------------------------------------------------------- */
@media print {
  .masthead, .footer, .cart-launcher, .notify, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- Watch page -------------------------------------------------- */
/* Two across, like cloudtopstudios.com/watch/free — four tiles read as a
   block rather than a 3+1 orphan row. One across below 560px. */
.channel-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .channel-grid { grid-template-columns: 1fr; } }
.channel {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.5rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--white);
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
  text-decoration: none; color: var(--brand, var(--plum));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand, var(--gold)); }
.channel svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.channel--youtube   { --brand: #FF0000; }
.channel--instagram { --brand: #E4405F; }
.channel--tiktok    { --brand: #111111; }
.channel--facebook  { --brand: #1877F2; }
