/* ==========================================================================
   Love2Live — organic minimalism
   Palette from the 2026 strategy document (Brand Book §04, proposed palette):
   white and soft cream grounds, bamboo and wood tones, muted olive, capsule
   purple as the one saturated accent. Type: an elegant serif for titles, a
   clean sans for reading (Brand Book §05, 2026 direction).
   Component rules (Brand Book §08): radius 100px or 10px, nothing between.
   Focus visible on every interactive element. Body copy is always Ink.
   ========================================================================== */

:root {
  /* grounds */
  --white:   #FFFFFF;
  --cream:   #F3EDE3;
  --sand:    #E8DFCF;
  --linen:   #FAF7F1;
  /* woods */
  --bamboo:  #B08A5A;
  --bark:    #5C4632;
  --walnut:  #3E2F22;
  /* greens */
  --olive:   #7D8B5F;
  --moss:    #4F5A3A;
  --sage:    #C9CFB6;
  /* accent */
  --purple:  #6B4E9E;
  --purple-soft: #EDE7F4;
  /* type */
  --ink:     #1F1A16;      /* warm near-black, never pure #000 */
  --ink-2:   #4A4038;
  --muted:   #6B6056;      /* 5.2:1 on cream, 4.6:1 on sand */
  --hair:    #E1D8C8;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --r-card: 10px;
  --r-pill: 100px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--walnut); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
p { margin: 0 0 1.1em; max-width: 68ch; }
strong, b { font-weight: 500; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--ink); color: var(--white); padding: 10px 20px;
  border-radius: var(--r-pill); font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; }
.display { font-size: clamp(48px, 8vw, 96px); }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
  margin: 0 0 14px;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);          /* olive is only 3.2:1 on cream at this size */
  margin: 0 0 18px;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 34em;
}
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* --------------------------------------------------------------------------
   Buttons — pills, saying what happens
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 30px; border-radius: var(--r-pill);
  border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-olive { background: var(--moss); border-color: var(--moss); }
.btn-olive:hover { background: var(--olive); border-color: var(--olive); }
.btn-purple { background: var(--purple); border-color: var(--purple); }
.btn-purple:hover { background: #57408A; border-color: #57408A; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.arrow-link::after { content: "\2192"; transition: transform .2s; }
.arrow-link:hover { border-color: var(--moss); }
.arrow-link:hover::after { transform: translateX(4px); }

.tag {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--bark);
}
.tag-olive { background: var(--sage); color: var(--moss); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
/* The header alone gets a wider container than the 1180px reading measure:
   a 170px lockup, eight nav items and the account/cart pair do not fit in it. */
.site-header .wrap { width: min(1400px, 100% - 2 * var(--gutter)); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 1.6vw, 28px); min-height: 190px;
  transition: min-height .28s ease;
}

/* The vertical lockup carries the wordmark and the tagline already, so the
   header gives it room instead of repeating the text beside it. The file is
   pre-cropped (img/logos/logo-lockup.png) so the 170px is 170px of artwork
   rather than 170px of mostly transparent margin. */
.brand { display: flex; align-items: center; flex: 0 0 auto; color: var(--ink); }
.brand img {
  width: auto; height: 170px; max-width: 210px; object-fit: contain;
  transition: height .28s ease;
}

/* Scrolled state — set by js/main.js past 120px. The header collapses to 90px
   with a 70px lockup so the page gets its screen back. */
.site-header.is-compact .header-inner { min-height: 90px; }
.site-header.is-compact .brand img { height: 70px; max-width: 110px; }
@media (prefers-reduced-motion: reduce) {
  .header-inner, .brand img { transition: none; }
}

/* Account + cart. Always visible, never inside the hamburger, so the cart is
   one tap away at every width. */
.header-util { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.util-link {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  min-height: 44px; min-width: 44px; justify-content: center;
  padding: 10px 12px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
}
.util-link:hover, .util-link[aria-current="page"] { color: var(--ink); background: var(--cream); }
.util-icon { flex: 0 0 auto; }
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--purple); color: var(--white);
  font-size: 11px; font-weight: 500; letter-spacing: 0; line-height: 1;
}
.cart-badge.is-empty { background: var(--sand); color: var(--bark); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.site-nav a {
  font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--bamboo); }
.nav-lang a { border: 1px solid var(--hair); border-radius: var(--r-pill); padding: 7px 16px; }
.nav-lang a:hover, .nav-lang a[aria-current] { border-color: var(--bamboo); border-bottom-color: var(--bamboo); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s, opacity .25s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -8px; left: 0; }
.nav-toggle-bar::after  { top: 8px;  left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

/* Below a true wide desktop the account and cart words drop away and the pair
   becomes two icons, which is what buys the nav its last hundred pixels. */
@media (max-width: 1400px) {
  .site-nav ul { gap: 15px; }
  .site-nav a { font-size: 12px; letter-spacing: .05em; }
  .util-text { display: none; }
  .util-link { padding: 10px; }
}
/* The Spanish labels are the longest set, so the last stretch before the
   hamburger tightens the nav gap rather than letting it run into the cart. */
@media (max-width: 1320px) { .site-nav ul { gap: 12px; } }
/* The logo must never push the nav into a second line: below this width the
   nav leaves the row entirely and lives behind the hamburger. */
@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--hair); padding: 12px var(--gutter) 24px; max-height: calc(100vh - 100%); overflow-y: auto; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
  .site-nav li { border-top: 1px solid var(--hair); }
  .site-nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 0; font-size: 15px; border-bottom: 0; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom: 0; color: var(--moss); }
  .nav-lang { padding-top: 14px; }
  .nav-lang a { display: inline-flex; align-items: center; padding: 8px 18px; min-height: 44px; }
}
/* Tablet and phone: the lockup stays big, the header stops being sticky so it
   never eats a third of a short screen, and the hamburger sits on the right. */
@media (max-width: 768px) {
  .site-header { position: static; }
  .header-inner { min-height: 130px; }
  .brand img { height: 106px; max-width: 130px; }
  .site-header.is-compact .header-inner { min-height: 130px; }
  .site-header.is-compact .brand img { height: 106px; max-width: 130px; }
  .site-nav { max-height: 70vh; }
}
@media (max-width: 420px) {
  .header-inner { min-height: 120px; gap: 4px; }
  .brand img { height: 96px; max-width: 118px; }
  .site-header.is-compact .header-inner { min-height: 120px; }
  .site-header.is-compact .brand img { height: 96px; max-width: 118px; }
  .header-util { gap: 0; }
  .util-link { padding: 10px 6px; }
}

/* --------------------------------------------------------------------------
   Announcement bar — settings site_announcement_en / site_announcement_es.
   Sits above the header, dismissed for the browser session (js/main.js).
   -------------------------------------------------------------------------- */
.announce { background: var(--moss); color: var(--white); }
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 0;
}
.announce-text {
  margin: 0; max-width: none; text-align: center;
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  line-height: 1.45; color: var(--white);
}
.announce-text a { color: var(--white); text-decoration: underline; }
.announce-close {
  flex: 0 0 auto; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: transparent; color: var(--white); font-size: 22px; line-height: 1;
  border-radius: var(--r-pill);
}
.announce-close:hover { background: rgba(255,255,255,.16); }
@media (max-width: 520px) {
  .announce-inner { justify-content: space-between; gap: 6px; }
  .announce-text { text-align: left; font-size: 14.5px; }
}

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.bg-cream { background: var(--cream); }
.bg-linen { background: var(--linen); }
.bg-sand  { background: var(--sand); }
.bg-moss  { background: var(--moss); color: var(--white); }
.bg-walnut{ background: var(--walnut); color: var(--white); }
.bg-moss h1, .bg-moss h2, .bg-moss h3, .bg-walnut h1, .bg-walnut h2, .bg-walnut h3 { color: var(--white); }
.bg-moss .eyebrow, .bg-walnut .eyebrow { color: var(--sage); }
.bg-moss .lead, .bg-walnut .lead { color: rgba(255,255,255,.85); }
.bg-moss a:not(.btn), .bg-walnut a:not(.btn) { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { gap: 40px; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.img-card { border-radius: var(--r-card); overflow: hidden; background: var(--cream); }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

.card {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 32px 28px;
}
.card h3 { margin-top: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-cream { background: var(--cream); border-color: transparent; }
.card-num {
  font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--bamboo); font-weight: 300;
}

.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { background: var(--cream); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: min(82vh, 760px); padding: clamp(48px, 7vw, 96px) 0;
}
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 20px; }
.hero-media { position: relative; }
.hero-media .img-card { aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -30px rgba(62,47,34,.35); }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--white);
  border-radius: var(--r-card); padding: 16px 20px; max-width: 250px;
  box-shadow: 0 20px 40px -24px rgba(62,47,34,.4);
}
.hero-badge .label { margin-bottom: 4px; color: var(--moss); }
.hero-badge p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: none; }
  .hero-badge { left: 16px; }
}

/* Page hero (interior) */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.pillar { padding: 36px 28px; border-left: 1px solid var(--hair); position: relative; }
.pillar:first-child { border-left: 0; }
.pillar-n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--bamboo); font-weight: 300; margin-bottom: 18px; }
.pillar h3 { font-size: 26px; margin-bottom: 10px; }
.pillar p { font-size: 15.5px; margin-bottom: 14px; }
.pillar .via { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); font-weight: 500; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; } .pillar:nth-child(n+3) { border-top: 1px solid var(--hair); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .pillar { border-left: 0; border-top: 1px solid var(--hair); } .pillar:first-child { border-top: 0; } }

/* Pillars — long form on method page */
.pillar-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--hair); align-items: start; }
.pillar-row:last-child { border-bottom: 1px solid var(--hair); }
.pillar-row .pillar-n { margin: 0; }
.pillar-row h2 { font-size: 34px; margin-bottom: 8px; }
@media (max-width: 800px) { .pillar-row { grid-template-columns: 60px 1fr; } .pillar-row > :last-child { grid-column: 2; } }

/* --------------------------------------------------------------------------
   Word field — Brand Book §01, the fixed vocabulary as a repeating band
   -------------------------------------------------------------------------- */
.wordfield {
  overflow: hidden; padding: 34px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: var(--linen);
}
.wordfield-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.wordfield span {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; font-style: italic;
  color: var(--bark); padding: 0 28px; white-space: nowrap;
}
.wordfield span:nth-child(3n) { color: var(--olive); }
.wordfield span:nth-child(5n) { color: #A6814F; }   /* bamboo is 2.96:1 on linen at this size */
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wordfield-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */
.product-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-tile { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--cream); min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; }
.product-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-tile .tile-body {
  position: relative; padding: 36px; background: linear-gradient(to top, rgba(31,26,22,.78), rgba(31,26,22,0)); color: var(--white);
}
.product-tile h3 { color: var(--white); font-family: var(--sans); font-weight: 400; letter-spacing: .2em; font-size: 22px; margin-bottom: 8px; }
.product-tile p { color: rgba(255,255,255,.9); margin-bottom: 18px; font-size: 16px; }
.product-tile .arrow-link { color: var(--white); }
.product-tile .arrow-link:hover { border-color: var(--white); }
.product-tile.tile-plain { background: var(--moss); }
.product-tile.tile-plain .tile-body { background: none; padding-top: 36px; }
@media (max-width: 700px) { .product-pair { grid-template-columns: 1fr; } .product-tile { min-height: 400px; } }

/* Shop */
.shop-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.price-block { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.price { border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px 22px; background: var(--white); }
.price .label { margin-bottom: 6px; }
.price .amount { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 300; }
.price .amount small { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.price .note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.price-featured { border-color: var(--bamboo); background: var(--linen); }
.shop-marks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 900px) { .shop-hero { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .price-block { grid-template-columns: 1fr; } }

.includes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.includes .card { padding: 0; overflow: hidden; }
.includes .img-card { border-radius: 0; aspect-ratio: 4/3; }
.includes .card-body { padding: 24px; }
.includes h3 { font-size: 22px; }
.includes p { font-size: 15px; }
@media (max-width: 900px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .includes { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { padding: 28px 0 0; border-top: 1px solid var(--bamboo); }
.step-n { font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--bark); margin-bottom: 12px; }
.step h3 { font-size: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Quote / callout
   -------------------------------------------------------------------------- */
.quote {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); font-weight: 300; font-style: italic;
  line-height: 1.2; color: var(--ink); max-width: 22ch; margin: 0;
}
.quote-mark { font-family: var(--serif); font-size: 90px; line-height: .5; color: var(--bamboo); display: block; margin-bottom: 20px; }
.callout {
  border-left: 3px solid var(--bamboo); padding: 6px 0 6px 24px; margin: 32px 0;
}
.callout h3 { font-size: 20px; margin-bottom: 6px; }
.callout p { font-size: 15.5px; margin: 0; }
.notice {
  background: var(--purple-soft); border-radius: var(--r-card); padding: 24px 28px; margin: 32px 0;
  border: 1px solid #DCD2EA;
}
.notice h3 { color: var(--purple); font-size: 20px; margin-bottom: 6px; }
.notice p { margin: 0; font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Ingredients catalogue
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 32px 0 20px; }
.filters .label { margin: 0 12px 0 0; }
.filter {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 18px; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--hair); background: var(--white);
  color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.filter:hover { border-color: var(--bamboo); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-count { font-size: 13px; color: var(--muted); margin: 0 0 24px; }

.ing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ing { border: 1px solid var(--hair); border-radius: var(--r-card); padding: 26px 26px 22px; background: var(--white); transition: border-color .2s; }
.ing:hover { border-color: var(--bamboo); }
.ing[hidden] { display: none; }
.ing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ing h3 { font-size: 25px; margin: 0; }
.ing .latin { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; margin: 2px 0 12px; }
.ing p { font-size: 15px; margin-bottom: 16px; }
.ing-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.ing-codes .tag { font-size: 10px; padding: 4px 10px; }
@media (max-width: 900px) { .ing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ing-grid { grid-template-columns: 1fr; } }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mosaic .img-card { aspect-ratio: 1; border-radius: 6px; }
.mosaic .img-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { max-width: 620px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--bark); margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--hair); border-radius: var(--r-card); padding: 14px 16px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bamboo); outline: 2px solid var(--purple); outline-offset: 2px; }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.field-check input { margin-top: 5px; accent-color: var(--moss); width: 18px; height: 18px; }
.field-check label { font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 300; color: var(--ink); margin: 0; }
.form-inline { display: flex; gap: 10px; max-width: 520px; }
.form-inline input { flex: 1; font: inherit; font-size: 16px; padding: 14px 18px; border-radius: var(--r-pill); border: 1px solid var(--hair); }
.form-inline input:focus { border-color: var(--bamboo); }
@media (max-width: 520px) { .form-inline { flex-direction: column; } }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: var(--r-card); padding: 16px 20px; margin-bottom: 24px; font-size: 15px; }
.alert-ok { background: #EAF0E2; color: var(--moss); border: 1px solid var(--sage); }
.alert-err { background: #F6E7E2; color: #7A3B2A; border: 1px solid #E8CFC5; }

/* --------------------------------------------------------------------------
   CTA band — one per screenful
   -------------------------------------------------------------------------- */
.cta-band { background: var(--moss); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .eyebrow { color: var(--sage); }
@media (max-width: 760px) { .cta-band .cta-inner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--walnut); color: rgba(255,255,255,.8); padding: clamp(56px, 7vw, 88px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { width: 120px; }
.footer-heals { font-family: var(--sans); letter-spacing: .3em; font-size: 12px; font-weight: 500; color: var(--sage); margin: 18px 0 0; }
.site-footer .label { color: #C9A77A; }   /* 5.7:1 on walnut; bamboo is 4.1 */
.footer-links { list-style: none; margin: 0 0 28px; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.85); font-size: 15px; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 80ch; border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.75); margin: 0; letter-spacing: .04em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   Reveal on scroll (progressive; content is visible without JS)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------------------
   Welcome video — a 16:9 card with a poster and a circular play button. The
   real player is only inserted when the visitor asks for it (js/main.js).
   -------------------------------------------------------------------------- */
.video-section { padding: clamp(56px, 8vw, 104px) 0; }
.video-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.video-head h2 { margin-bottom: 12px; }
.video-head p { margin: 0 auto; color: var(--ink-2); }

/* The frame fills the container and holds a true 16:9 box at every width, so
   the poster is never letterboxed and the swapped-in player lines up with it. */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--sand); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 36px 70px -38px rgba(62,47,34,.45);
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--ink); }

/* 72px circle, olive ring, white triangle. */
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: var(--r-pill); border: 3px solid var(--olive);
  background: rgba(79,90,58,.78);
  box-shadow: 0 0 0 8px rgba(125,139,95,.30), 0 12px 28px -14px rgba(31,26,22,.55);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.video-play:hover {
  background: var(--moss);
  box-shadow: 0 0 0 12px rgba(125,139,95,.34), 0 12px 28px -14px rgba(31,26,22,.55);
  transform: translate(-50%, -50%) scale(1.06);
}
.video-play-icon {
  display: block; width: 0; height: 0; margin-left: 5px;
  border-left: 20px solid var(--white);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.video-soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.94); color: var(--bark); white-space: nowrap;
  padding: 12px 22px;
}
.video-note { margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }
@media (max-width: 520px) {
  .video-head { text-align: left; }
  .video-head p { margin-left: 0; }
  .video-note { text-align: left; }
}

/* --------------------------------------------------------------------------
   Account area
   -------------------------------------------------------------------------- */
/* A narrow, single-column shell for the auth forms: full width on a phone,
   centred and readable on a desktop. */
.auth-shell { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.auth-card {
  width: min(520px, 100%); margin-inline: auto;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: clamp(24px, 5vw, 40px);
}
.auth-card h1 { font-size: clamp(32px, 5vw, 46px); }
.auth-card .form { max-width: none; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-head { width: min(520px, 100%); margin: 0 auto clamp(20px, 3vw, 28px); }
.auth-foot { width: min(520px, 100%); margin: 24px auto 0; font-size: 15px; text-align: center; color: var(--muted); }
.auth-foot a { font-weight: 500; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 15px; }

/* Two fields side by side on a desktop, stacked on a phone. */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }

.field input[type="password"], .field input[type="tel"], .field input[type="number"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--hair); border-radius: var(--r-card); padding: 14px 16px;
}
.field .hint { font-family: var(--sans); font-size: 13px; font-weight: 300; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 8px 0 0; }
.field-check input[type="checkbox"] { min-width: 18px; }

/* Dashboard tiles */
.account-head { padding: clamp(40px, 6vw, 76px) 0 clamp(24px, 4vw, 40px); }
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .account-grid { grid-template-columns: 1fr; } }
.account-tile {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 28px 26px; color: var(--ink); transition: border-color .2s, transform .2s;
}
.account-tile:hover { border-color: var(--bamboo); transform: translateY(-2px); color: var(--ink); }
.account-tile h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0; }
.account-tile p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.account-tile .arrow-link { margin-top: auto; padding-top: 10px; }
.account-tile.tile-admin { background: var(--purple-soft); border-color: #DCD2EA; }

/* A sub-nav for the account pages */
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.account-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-pill); border: 1px solid var(--hair); background: var(--white);
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
}
.account-nav a:hover { border-color: var(--bamboo); color: var(--ink); }
.account-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Address cards */
.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .addr-grid { grid-template-columns: 1fr; } }
.addr-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 26px 24px; }
.addr-card h3 { font-size: 23px; margin-bottom: 6px; }
.addr-card address { font-style: normal; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.addr-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.addr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn-sm { padding: 11px 20px; font-size: 12px; min-height: 44px; }
.btn-quiet { background: transparent; border-color: var(--hair); color: var(--ink-2); }
.btn-quiet:hover { background: var(--cream); border-color: var(--bamboo); color: var(--ink); }
.btn-danger { background: transparent; border-color: #E8CFC5; color: #7A3B2A; }
.btn-danger:hover { background: #F6E7E2; border-color: #D9B4A7; color: #7A3B2A; }

/* An empty state that does not look like an error */
.empty-card {
  background: var(--linen); border: 1px dashed var(--hair); border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 44px); text-align: center;
}
.empty-card h2 { font-size: clamp(26px, 3vw, 34px); }
.empty-card p { margin-inline: auto; }

/* A form that sits in the page flow rather than in the narrow auth card */
.panel { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: clamp(24px, 4vw, 36px); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 560px) {
  .btn, .btn-sm { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .addr-actions { flex-direction: column; align-items: stretch; }
  .addr-actions form { display: contents; }
}

/* Tap targets in the account area: a checkbox row and the small text links
   under a form both need a 44px-tall hit area on a phone. */
.field-check { min-height: 44px; align-items: center; padding: 4px 0; }
.field-check input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin-top: 0; }
/* block, not flex: the label's text and the "Disclaimers and terms" link
   inside it are one sentence, and flex broke them into two columns. */
.field-check label { display: block; min-height: 44px; padding: 8px 0; }
.auth-links a, .auth-foot a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0;
}

/* --------------------------------------------------------------------------
   Touch pass — at phone and small-tablet widths every standalone link gets a
   44px-tall hit area. Links inside running prose are left alone on purpose:
   padding them out would break the line box they sit in, and WCAG exempts
   inline text links from the target-size rule for exactly that reason.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .arrow-link { min-height: 44px; }
  .footer-links li { margin-bottom: 0; }
  .footer-links a,
  .eyebrow a,
  .account-tile h2 a,
  .product-card h3 a,
  .includes h3 a,
  .cart-line-name a,
  .order-row-number a,
  .sub-head h2 a,
  .addr-card h3 a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  /* A phone keyboard should never be able to zoom the page: 16px minimum on
     every text field, including the ones that only exist on commerce pages. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  select, textarea { font-size: 16px; min-height: 44px; }
}

/* --------------------------------------------------------------------------
   Commerce — catalogue, cart, checkout, orders, auto-ship
   Same vocabulary as the rest: 10px cards, 100px pills, hairline borders,
   44px tap targets, and nothing between those two radii.
   -------------------------------------------------------------------------- */

/* Status pills. One shape, five temperatures. */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-pill); padding: 6px 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: var(--cream); color: var(--bark); border: 1px solid var(--hair);
}
.pill-ok    { background: var(--purple-soft); color: var(--purple); border-color: #DCD2EA; }
.pill-good  { background: #EAF0E2; color: var(--moss); border-color: var(--sage); }
.pill-wait  { background: var(--sand); color: var(--bark); border-color: var(--hair); }
.pill-bad   { background: #F6E7E2; color: #7A3B2A; border-color: #E8CFC5; }
.pill-quiet { background: var(--linen); color: var(--muted); }

/* Add-to-cart forms. The buttons stack on a phone and sit in a row above it. */
.buy { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.buy-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.buy-form .btn { flex: 1 1 auto; justify-content: center; }
.buy-qty { margin: 0; flex: 0 0 96px; }
.buy-qty input { width: 96px; min-height: 44px; }
.buy-note { margin: 0; }

/* Catalogue cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card .img-card { border-radius: 0; aspect-ratio: 4 / 3; display: block; }
.product-card .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 24px; margin: 0 0 8px; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--bark); }
.product-card p { font-size: 15px; }
.product-card .buy { margin-top: auto; }
.card-foot { margin: 14px 0 0; }

/* Cart and checkout share one two-column shell: content, then the summary. */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--hair);
}
.cart-line:last-child { border-bottom: 1px solid var(--hair); }
.cart-thumb { width: 96px; aspect-ratio: 1; display: block; flex: 0 0 auto; }
.cart-line-body { min-width: 0; }
.cart-line-name { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 0 8px; }
.cart-line-name a { color: var(--ink); }
.cart-line-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; margin: 0 0 14px; }
.cart-line-total { font-family: var(--serif); font-size: 24px; margin: 0; white-space: nowrap; }
.cart-line-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cart-line-actions form { margin: 0; }
.cart-fixed { margin: 0; }

.qty-group { display: flex; align-items: center; gap: 2px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--white); }
.qty-group form { margin: 0; display: flex; }
.qty-btn {
  min-width: 44px; min-height: 44px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 18px; line-height: 1; color: var(--ink); border-radius: var(--r-pill);
}
.qty-btn:hover { background: var(--cream); }
.qty-value { min-width: 32px; text-align: center; font-size: 16px; }

.cart-summary { position: sticky; top: 24px; }
.cart-summary h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 8px; }

.sum { margin: 0 0 18px; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15.5px; }
.sum dt { color: var(--ink-2); margin: 0; }
.sum dd { margin: 0; white-space: nowrap; }
.sum .sum-total { border-top: 1px solid var(--hair); margin-top: 8px; padding-top: 14px; font-family: var(--serif); font-size: 22px; }
.sum .sum-total dt { color: var(--ink); }

.sum-items { list-style: none; margin: 0 0 18px; padding: 0; }
.sum-items li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.sum-items li:last-child { border-bottom: 0; }

@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-thumb { width: 72px; }
  .cart-line-total { grid-column: 2; }
  .cart-line-actions { flex-direction: row; }
  .cart-line-actions .btn-sm { width: auto; }
}

/* The order number, given room to be read out on the phone. */
.order-number { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); margin: 4px 0 12px; letter-spacing: .02em; }

/* Orders list */
.order-list { list-style: none; margin: 0; padding: 0; }
.order-row {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: 24px 26px; margin-bottom: 16px;
}
.order-row-number { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 2px 0 6px; }
.order-row-number a { color: var(--ink); }
.order-row-meta { margin: 0; font-size: 14.5px; }
.order-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.order-row-total { font-family: var(--serif); font-size: 24px; margin: 0; }
@media (max-width: 560px) {
  .order-row { flex-direction: column; align-items: stretch; }
  .order-row-side { align-items: flex-start; }
}

/* Order detail */
.order-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .order-detail { grid-template-columns: 1fr; } }
.order-detail .panel { margin-bottom: 20px; }
.order-detail .panel + .panel { margin-top: 0; }
.order-detail h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.order-detail address { font-style: normal; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--hair); }
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -23px; top: 6px;
  width: 9px; height: 9px; border-radius: var(--r-pill);
  background: var(--bamboo);
}
.timeline-when { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.timeline-what { margin: 0; font-size: 15px; }

/* Auto-ship cards */
.sub-card { margin-bottom: 20px; }
.sub-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.sub-head h2 { margin: 0 0 8px; }
.sub-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
.sub-address { border-top: 1px solid var(--hair); padding-top: 18px; margin-top: 4px; }
.sub-address address { font-style: normal; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; }
.sub-address-form { margin-top: 20px; max-width: 560px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sub-actions form { margin: 0; }
@media (max-width: 560px) {
  .sub-actions { flex-direction: column; align-items: stretch; }
  .sub-actions form { display: flex; }
  .sub-actions .btn-sm { width: 100%; }
}

/* ==========================================================================
   Members area (EMPÓDERATE) & blog — appended by the members/blog layer.
   Nothing above this line is modified. Mobile-first: every grid is one column
   until there is room, every tap target clears 44px, and the player is a
   responsive 16:9 frame.
   ========================================================================== */

/* --- Library ------------------------------------------------------------- */
.mem-access-note { margin: 0 0 28px; }
.mem-grid-h { font-size: clamp(26px, 3vw, 34px); margin: 0 0 20px; }
.mem-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .mem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mem-card {
  background: var(--white); border: 1px solid var(--hair);
  border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
}
.mem-card.is-locked { background: var(--linen); }
.mem-card-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.mem-card-top h3 { margin: 0; }
.mem-card-top h3 a { color: var(--ink); }
.mem-card-top h3 a:hover { color: var(--moss); }
.mem-card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.mem-card-meta { margin: 0; }
.mem-card-foot { margin: auto 0 0; padding-top: 12px; }

.mem-bar {
  height: 6px; border-radius: var(--r-pill); background: var(--sand);
  overflow: hidden; margin: 4px 0 0;
}
.mem-bar > span { display: block; height: 100%; background: var(--moss); border-radius: var(--r-pill); }
.mem-bar-wide { max-width: 420px; margin-top: 10px; }

.mem-locked-panel { margin-bottom: 32px; background: var(--purple-soft); border-color: #DCD2EA; }
.mem-locked-panel h2 { font-size: clamp(24px, 2.8vw, 32px); }
.mem-notice { margin-top: 40px; max-width: 820px; }

/* --- Disclaimer gate ----------------------------------------------------- */
.mem-gate { padding-top: clamp(32px, 6vw, 72px); }
.mem-gate-panel { max-width: 680px; margin-inline: auto; background: var(--linen); }
.mem-gate-panel h1 { font-size: clamp(30px, 4vw, 44px); }
.mem-gate-form { margin-top: 8px; }
.mem-gate-form .btn-row { margin-top: 20px; align-items: center; }

/* --- Lesson list --------------------------------------------------------- */
.mem-lessons { list-style: none; margin: 0; padding: 0; }
.mem-lesson {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px;
  align-items: start; padding: 20px 0; border-bottom: 1px solid var(--hair);
}
.mem-lesson:first-child { border-top: 1px solid var(--hair); }
.mem-lesson.is-locked { opacity: .72; }
.mem-lesson-n {
  font-family: var(--serif); font-size: 24px; color: var(--bamboo);
  line-height: 1.1; text-align: right;
}
.mem-lesson.is-done .mem-lesson-n { color: var(--moss); }
.mem-lesson-body h3 { font-size: clamp(19px, 2vw, 23px); margin: 0 0 6px; }
.mem-lesson-body h3 a { color: var(--ink); }
.mem-lesson-body h3 a:hover { color: var(--moss); }
.mem-lesson-body p { margin: 0 0 8px; color: var(--ink-2); }
.mem-lesson-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.mem-lesson-go { grid-column: 2; justify-self: start; margin-top: 6px; }
@media (min-width: 720px) {
  .mem-lesson { grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; }
  .mem-lesson-go { grid-column: 3; margin-top: 0; }
}

/* --- Player -------------------------------------------------------------- */
.mem-player {
  position: relative; width: 100%; margin: 24px 0 0;
  background: var(--walnut); border-radius: var(--r-card); overflow: hidden;
}
.mem-player iframe, .mem-player video, .mem-player img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; object-fit: cover; display: block;
}
.mem-player.is-soon img { opacity: .6; }
.mem-player.is-soon .video-soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--white); z-index: 2;
}
.mem-soon-p { margin-top: 18px; }
.mem-lesson-page h1 { margin-top: 8px; }
.mem-lesson-desc { margin-top: 22px; font-size: 17px; }
.mem-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mem-crumb a { color: var(--moss); }

.mem-lesson-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0 36px; }
.mem-lesson-actions form { margin: 0; }
.mem-done-note { margin: 0; }

.mem-pager {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  border-top: 1px solid var(--hair); padding-top: 24px;
}
@media (min-width: 720px) { .mem-pager { grid-template-columns: 1fr 1fr; } }
.mem-pager a {
  display: flex; flex-direction: column; gap: 4px; min-height: 44px;
  padding: 14px 18px; border: 1px solid var(--hair); border-radius: var(--r-card);
  color: var(--ink); font-size: 16px;
}
.mem-pager a:hover { border-color: var(--bamboo); }
.mem-pager-next { text-align: right; }
.mem-lesson-back { margin-top: 26px; }

/* --- Progress block on the account dashboard ----------------------------- */
.mem-progress-panel { margin-top: 28px; }
.mem-progress-list { list-style: none; margin: 18px 0 10px; padding: 0; }
.mem-progress-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
  align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair);
}
.mem-progress-list li:last-child { border-bottom: 0; }
.mem-progress-list .mem-bar { grid-column: 1 / -1; }

/* --- Blog ---------------------------------------------------------------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.blog-filters a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 18px; border: 1px solid var(--hair); border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-2); background: var(--white);
}
.blog-filters a:hover { border-color: var(--bamboo); color: var(--ink); }
.blog-filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.blog-filters .blog-rss { margin-left: auto; color: var(--moss); }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.blog-card { display: flex; flex-direction: column; gap: 14px; }
.blog-card .img-card { display: block; }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; }
.blog-card-body h2, .blog-card-body h3 { font-size: clamp(22px, 2.2vw, 27px); margin: 0; }
.blog-card-body h2 a, .blog-card-body h3 a { color: var(--ink); }
.blog-card-body h2 a:hover, .blog-card-body h3 a:hover { color: var(--moss); }
.blog-card-body p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.blog-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }

.blog-pager {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-top: 44px;
  border-top: 1px solid var(--hair); padding-top: 24px;
}

/* --- One post ------------------------------------------------------------ */
.post-head { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.post-head .eyebrow a { color: var(--moss); }
.post-byline { margin: 18px 0 0; }
.post-cover { margin-top: clamp(24px, 4vw, 40px); }
.post-body { padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 64px); }
.post-body > * { max-width: 68ch; }
.post-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .5em; }
.post-body h3 { font-size: clamp(21px, 2.2vw, 26px); margin: 1.4em 0 .4em; }
.post-body p { font-size: 17.5px; line-height: 1.7; }
.post-body ul, .post-body ol { padding-left: 1.3em; max-width: 64ch; }
.post-body li { margin-bottom: .5em; font-size: 17px; line-height: 1.65; }
.post-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--bamboo);
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px); color: var(--ink-2);
}
.post-body img { border-radius: var(--r-card); margin: 1.6em 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: -1em; }
.post-disclaimer {
  margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--hair);
}
.post-back { margin-top: 1.6em; }

/* ==========================================================================
   Mobile pass — 390px audit (tests/mobile-audit.js)

   Everything below is scoped to phone/small-tablet widths, so the desktop
   layout above is untouched. Three classes of defect were found at 390px:

   1. Footer nav links and members/module heading links had a hit area under
      44px in one axis. They get a 44px box; the negative block margin on the
      heading links keeps the surrounding rhythm exactly as designed.
   2. The consent/terms checkbox rendered as a 22px native box. A native
      checkbox ignores padding, so the only way to a 44px target without
      drawing a 44px box is a custom control: a 44px transparent hit area with
      the same 22px moss square painted inside it.
   3. .sum dd is white-space:nowrap for tidy price columns, but the auto-ship
      card puts a whole sentence in one, which pushed subscriptions.php 94px
      wide. Prices are short enough to survive normal wrapping.
   ========================================================================== */

@media (max-width: 768px) {

  /* 1a. Footer links: 44px tall already, but only as wide as their word. */
  .footer-links a { min-width: 44px; justify-content: flex-start; }

  /* 1b. Card and list heading links in the members area. Padding buys the
         44px; the matching negative margin gives the spacing back. */
  .mem-card-top h3 a,
  .mem-lesson-body h3 a,
  .mem-progress-list li > a {
    display: inline-block;
    min-width: 44px; min-height: 44px;
    padding-block: 12px; margin-block: -12px;
  }

  /* 2. A 44px target around the 22px checkbox (and the checkout address
        radios, same story) that the design already uses. */
  .field-check input[type="checkbox"],
  .field-check input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 44px; height: 44px; min-width: 44px;
    margin: 0 -11px; padding: 0; border: 0; background: none;
    display: grid; place-content: center; cursor: pointer;
  }
  .field-check input[type="checkbox"]::before,
  .field-check input[type="radio"]::before {
    content: ""; display: block; width: 22px; height: 22px;
    border: 1px solid var(--ink-2); border-radius: 3px; background: var(--white);
    transition: background-color .12s, border-color .12s;
  }
  .field-check input[type="checkbox"]:checked::before,
  .field-check input[type="radio"]:checked::before {
    background: var(--moss) no-repeat center / 13px 13px;
    border-color: var(--moss);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.4l3.4 3.4L13 5.2'/%3E%3C/svg%3E");
  }
  .field-check input[type="radio"]::before { border-radius: 50%; }
  .field-check input[type="radio"]:checked::before {
    background-image: radial-gradient(circle, var(--white) 0 4px, transparent 4px);
  }
  .field-check input[type="checkbox"]:focus-visible::before,
  .field-check input[type="radio"]:focus-visible::before {
    outline: 2px solid var(--moss); outline-offset: 2px;
  }

  /* 3. Let a long summary value wrap instead of pushing the page sideways. */
  .sum > div { flex-wrap: wrap; }
  .sum dd { white-space: normal; overflow-wrap: anywhere; text-align: right; }
}
