/* Everyday Mat: site stylesheet
   Palette: warm oat paper, clay/terracotta action color, deep pine for structure, sun yellow mark.
   Type: Bricolage Grotesque (display + numbers), Atkinson Hyperlegible (text). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F7F1E8;
  --surface: #FFFCF7;
  --surface-2: #EFE6D8;
  --ink: #25201B;
  --ink-2: #4D443B;
  --muted: #776B5F;
  --line: #E4D8C7;
  --line-strong: #CDBDA7;
  --clay: #B04E28;
  --clay-hover: #933F1E;
  --clay-ink: #FFFFFF;
  --clay-soft: #F7E0D3;
  --pine: #24493F;
  --pine-2: #2F5D50;
  --pine-soft: #DDEAE3;
  --pine-ink: #F3EEE5;
  --sun: #F2B33D;
  --warn: #9D341A;
  --warn-soft: #F8E1D8;
  --shadow: 0 1px 2px rgb(37 32 27 / .05), 0 10px 30px rgb(37 32 27 / .08);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.6rem, 1.3rem + 1.1vw, 2rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16120F;
    --surface: #1F1A16;
    --surface-2: #29221D;
    --ink: #F2EADF;
    --ink-2: #CFC4B6;
    --muted: #A09383;
    --line: #352D26;
    --line-strong: #4A3F35;
    --clay: #EB8E66;
    --clay-hover: #F3A988;
    --clay-ink: #1A110C;
    --clay-soft: #3A2419;
    --pine: #13251F;
    --pine-2: #8CC4AF;
    --pine-soft: #1D3029;
    --pine-ink: #E6EFE9;
    --warn: #F09A80;
    --warn-soft: #3A1F17;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16120F; --surface: #1F1A16; --surface-2: #29221D; --ink: #F2EADF; --ink-2: #CFC4B6;
  --muted: #A09383; --line: #352D26; --line-strong: #4A3F35; --clay: #EB8E66; --clay-hover: #F3A988;
  --clay-ink: #1A110C; --clay-soft: #3A2419; --pine: #13251F; --pine-2: #8CC4AF; --pine-soft: #1D3029;
  --pine-ink: #E6EFE9; --warn: #F09A80; --warn-soft: #3A1F17;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--clay-hover); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 700 1rem/1 var(--font-display); letter-spacing: 0;
  padding: .95em 1.4em; border-radius: 999px; border: 2px solid var(--clay);
  background: var(--clay); color: var(--clay-ink); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--clay-hover); border-color: var(--clay-hover); color: var(--clay-ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.small { padding: .7em 1.1em; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--pine-2); flex: none; }
.brand-name { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  font: 600 1rem/1.2 var(--font-display); text-decoration: none;
}
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list a[aria-current] { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding-block: 16px 28px; }
.mnav-head { font: 700 .8125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.mnav-group ul { list-style: none; margin: 0; padding: 0; }
.mnav-group a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.3; }
.mnav-group a[aria-current] { color: var(--clay); font-weight: 700; }

@media (max-width: 940px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink); cursor: pointer; margin-left: -16px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 420px) {
  .header-inner { gap: 16px; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .mobile-nav .wrap { grid-template-columns: 1fr; }
}

/* ---------- Page head ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 44px); }
.head-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-head.has-media .head-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--clay); text-decoration: underline; }
.page-head h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 16ch; }
.page-head .lede { font-size: var(--step-1); color: var(--ink-2); margin: 18px 0 0; max-width: 40em; line-height: 1.5; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; font-size: var(--step--1); color: var(--muted); }
.page-meta span + span::before { content: "•"; margin-right: 18px; color: var(--line-strong); }
.head-media { margin: 0; position: relative; isolation: isolate; aspect-ratio: 4 / 3.4; }
.head-media::before { content: ""; position: absolute; z-index: -1; right: -16px; top: -16px; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.head-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .page-head.has-media .head-grid { grid-template-columns: 1fr; }
  .head-media { order: -1; aspect-ratio: 16 / 9; }
  .head-media img { border-radius: var(--r); }
  .head-media::before { right: -8px; top: -8px; width: 22%; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 24px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { background: var(--surface); padding: 12px 16px; }
.facts dt { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .9375rem; line-height: 1.35; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Section tabs + jump bar */
.section-tabs { border-block: 1px solid var(--line); background: var(--surface); }
.section-tabs ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.section-tabs ul::-webkit-scrollbar { display: none; }
.section-tabs a { display: block; white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.section-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.section-tabs a[aria-current] { background: var(--clay-soft); color: var(--clay); font-weight: 700; }

.jump { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump-inner { display: flex; align-items: center; gap: 14px; }
.jump-label { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex: none; }
.jump ol { list-style: none; display: flex; gap: 2px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.jump ol::-webkit-scrollbar { display: none; }
.jump a { display: block; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.jump a:hover { color: var(--ink); background: var(--surface-2); }
.jump a.is-current { background: var(--ink); color: var(--bg); }
@media (max-width: 600px) { .jump-label { display: none; } }

/* ---------- Article ---------- */
.article-wrap { padding-block: clamp(32px, 5vw, 56px); }
.prose { max-width: 700px; margin-inline: auto; }
.prose > h2 { font-size: var(--step-3); margin: 2.2em 0 .6em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--clay); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--clay); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.quick { background: var(--pine); color: var(--pine-ink); border-radius: var(--r); padding: 22px 26px 10px; margin: 0 0 2.4em; }
.quick-title { font: 700 .8125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 12px; }
.quick ul { list-style: none; padding: 0; }
.quick li { position: relative; padding-left: 26px; margin-bottom: .7em; }
.quick li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sun); }
.quick a { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick { border: 1px solid #2B4A40; } }

.note { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--pine-2); border-radius: var(--r-sm); padding: 18px 22px 4px; margin: 1.8em 0; }
.note-title { font: 700 1rem/1.2 var(--font-display); color: var(--pine-2); margin-bottom: 6px; }
.note.warn { border-left-color: var(--warn); background: var(--warn-soft); border-color: transparent; border-left-color: var(--warn); }
.note.warn .note-title { color: var(--warn); }

.steps { list-style: none; counter-reset: s; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 6px 58px; margin: 0 0 18px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay); font: 800 1.125rem/1 var(--font-display); }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: -14px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 6px !important; font-size: var(--step-1); }

/* Routine timeline */
.routine { list-style: none; counter-reset: r; padding: 0 !important; margin: 1.6em 0 2em !important; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.routine > li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "n name time" "n cue cue"; gap: 2px 14px; padding: 16px 20px; margin: 0; border-top: 1px solid var(--line); }
.routine > li:first-child { border-top: 0; }
.routine > li::before { content: counter(r); grid-area: n; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine-2); font: 800 1rem/1 var(--font-display); }
.r-name { grid-area: name; font: 700 1.125rem/1.3 var(--font-display); align-self: center; }
.r-name a { color: var(--ink); text-decoration-color: var(--line-strong); }
.r-name a:hover { color: var(--clay); text-decoration-color: currentColor; }
.r-time { grid-area: time; align-self: center; font: 600 .8125rem/1 var(--font-display); color: var(--clay); background: var(--clay-soft); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.r-cue { grid-area: cue; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.routine-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; margin-top: 1.6em; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.routine-start + .routine { margin-top: 0 !important; border-radius: 0 0 var(--r) var(--r); }
.routine-start p { margin: 0; font: 600 .9375rem/1.3 var(--font-display); color: var(--ink-2); }
@media (max-width: 520px) {
  .routine > li { grid-template-columns: 1fr auto; grid-template-areas: "name time" "cue cue"; padding: 14px 16px; }
  .routine > li::before { display: none; }
}

/* Week plan */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 1.6em 0 2em; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 6px; }
.day-label { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin-bottom: 8px; }
.day-title { font: 700 1.0625rem/1.25 var(--font-display); margin-bottom: 8px; }
.day p:not(.day-label):not(.day-title) { font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.6em 0 2em; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .8125rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.6em 0 2em; }
.do-dont > div { border-radius: var(--r); padding: 18px 20px 6px; }
.do-dont h3 { margin: 0 0 10px !important; font-size: 1.0625rem; }
.do-dont ul { list-style: none; padding: 0; }
.do-dont li { position: relative; padding-left: 26px; font-size: .9875rem; }
.do { background: var(--pine-soft); }
.do h3 { color: var(--pine-2); }
.do li::before { content: "✓"; position: absolute; left: 0; color: var(--pine-2); font-weight: 700; }
.dont { background: var(--warn-soft); }
.dont h3 { color: var(--warn); }
.dont li::before { content: "✕"; position: absolute; left: 0; color: var(--warn); font-weight: 700; }
@media (max-width: 600px) { .do-dont { grid-template-columns: 1fr; } }

/* Link cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.4em 0 1em; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { color: var(--ink); border-color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-kicker { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--clay); }
.card-title { font: 700 1.125rem/1.25 var(--font-display); }
.card-text { font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.prose > h2 + .faq, .faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 700 1.0625rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--clay); font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding: 0 0 8px; color: var(--ink-2); }

/* Credits / contact */
.credits { columns: 2 240px; font-size: .875rem; color: var(--muted); padding-left: 1.1em !important; }
.contact-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px 2px; margin: 0 0 1.5em; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.filter-bar label { font: 700 1rem/1 var(--font-display); }
.filter-input { flex: 1 1 260px; max-width: 420px; font: inherit; font-size: 1rem; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.filter-input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.filter-count { font-size: var(--step--1); color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chips-label { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 44px; }
.chip { font: 600 .875rem/1 var(--font-display); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 8px; margin-bottom: 24px; }
.empty-note { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r); }
[data-filter-item][hidden], [data-filter-head][hidden] { display: none !important; }

/* ---------- Wide body: pose guide + routines hub ---------- */
.wide-body { padding-block: clamp(28px, 4vw, 48px); }
.wide-body > p, .wide-body > div > p:not(.filter-count):not(.empty-note) { max-width: 700px; }
.wide-body h2 { font-size: var(--step-3); margin: 1.8em 0 .7em; display: flex; align-items: baseline; gap: 12px; }
.wide-body h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.pose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 14px; display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 20px); }
.pose:target { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.pose h3 { font-size: 1.375rem; margin: 0; }
.pose-aka { font-size: .875rem; font-style: italic; color: var(--muted); margin: 2px 0 10px; }
.pose-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pose-meta span { font: 600 .75rem/1 var(--font-display); padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pose-meta span:nth-child(2) { background: var(--pine-soft); color: var(--pine-2); }
.pose-what { font-size: .9875rem; color: var(--ink-2); }
.cues { margin: 0 0 12px; padding-left: 1.3em; font-size: .9375rem; line-height: 1.5; }
.cues li { margin-bottom: 5px; }
.cues li::marker { color: var(--clay); font-weight: 700; font-family: var(--font-display); }
.pose-easier, .pose-careful, .pose-used { font-size: .875rem; line-height: 1.5; margin-bottom: 8px; padding: 8px 12px; border-radius: var(--r-sm); }
.pose-easier { background: var(--pine-soft); }
.pose-careful { background: var(--warn-soft); }
.pose-used { background: transparent; padding: 8px 0 0; border-top: 1px dashed var(--line); border-radius: 0; margin-top: auto; color: var(--muted); }

.routine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.routine-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.routine-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.rc-media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-2); }
.rc-media img { width: 100%; height: 100%; object-fit: cover; }
.rc-time { position: absolute; left: 12px; bottom: 12px; background: var(--sun); color: #2A1E0B; font: 800 .875rem/1 var(--font-display); padding: 7px 11px; border-radius: 999px; }
.rc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.rc-title { font: 700 1.1875rem/1.2 var(--font-display); }
.rc-text { font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.rc-goals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.rc-goals span { font: 600 .75rem/1 var(--font-display); padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------- Breath pacer ---------- */
.pacer { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--pine); color: var(--pine-ink); border-radius: var(--r-lg); padding: 24px; margin: 1.6em 0 2em; }
.pacer-stage { width: 190px; height: 190px; position: relative; display: grid; place-items: center; }
.pacer-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgb(243 238 229 / .25); }
.pacer-orb { width: 46%; height: 46%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFD884, var(--sun)); box-shadow: 0 0 40px rgb(242 179 61 / .35); transform: scale(1); }
.pacer-word { position: absolute; font: 800 1.125rem/1 var(--font-display); color: #2A1E0B; pointer-events: none; }
.pacer-side h3 { color: var(--pine-ink); font-size: 1.25rem; margin: 0 0 6px; }
.pacer-side p { color: rgb(243 238 229 / .8); font-size: .9375rem; margin-bottom: 12px; }
.pacer .chip { background: transparent; color: var(--pine-ink); border-color: rgb(243 238 229 / .3); }
.pacer .chip[aria-pressed="true"] { background: var(--sun); color: #2A1E0B; border-color: var(--sun); }
.pacer .btn { background: var(--pine-ink); border-color: var(--pine-ink); color: #13251F; }
.pacer-count { font: 800 1.5rem/1 var(--font-display); color: var(--sun); font-variant-numeric: tabular-nums; margin-left: 12px; }
@media (max-width: 560px) { .pacer { grid-template-columns: 1fr; justify-items: center; text-align: center; } .pacer .chips { justify-content: center; } }

/* ---------- Follow-along player ---------- */
.player { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgb(15 12 10 / .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player[hidden] { display: none; }
.player-card { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.player-step { font: 700 .8125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.player-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.player-dial { position: relative; width: min(240px, 62vw); aspect-ratio: 1; margin: 10px auto 14px; }
.player-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.player-dial circle { fill: none; stroke-width: 10; }
.dial-track { stroke: var(--surface-2); }
.dial-fill { stroke: var(--clay); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.player-time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.player-secs { font: 800 3.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.player-side { font: 700 .875rem/1 var(--font-display); color: var(--clay); margin-top: 6px; min-height: 1em; }
.player-name { font-size: var(--step-3); text-align: center; margin: 0 0 8px; }
.player-cue { text-align: center; color: var(--ink-2); min-height: 4.8em; margin: 0 auto 16px; max-width: 34em; }
.player-next { text-align: center; font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.player-controls { display: flex; justify-content: center; gap: 10px; }
.player-controls .btn { min-width: 0; }
.player-bar { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.player-bar span { display: block; height: 100%; width: 0; background: var(--pine-2); transition: width .25s linear; }
.player-sound { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .875rem; color: var(--muted); }

/* ---------- Pager ---------- */
.pager { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; padding-block: 8px clamp(48px, 7vw, 80px); }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.pager-link:hover { color: var(--ink); border-color: var(--line-strong); }
.pager-link.next { background: var(--ink); color: var(--bg); border-color: var(--ink); text-align: right; align-items: flex-end; }
.pager-link.next:hover { color: var(--bg); background: var(--pine); border-color: var(--pine); }
.pager-dir { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.pager-title { font: 700 1.25rem/1.2 var(--font-display); }
.pager-blurb { font-size: .875rem; opacity: .75; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager > span:empty { display: none; } }

/* ---------- Home ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .8125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.hero h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .06em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background: none; color: var(--sun); } }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); margin: 20px 0 26px; max-width: 34em; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-lg); aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero-sticker { position: absolute; left: -18px; bottom: 26px; background: var(--surface); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 280px; }
.hero-sticker b { font: 800 2rem/1 var(--font-display); color: var(--clay); }
.hero-sticker span { font-size: .875rem; line-height: 1.3; color: var(--ink-2); }
.hero-sun { position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: var(--sun); z-index: -1; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-sticker { left: 12px; bottom: 12px; }
  .hero-sun { right: 8px; }
}

.time-picker { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: center; }
.time-picker h2 { color: var(--bg); font-size: var(--step-4); letter-spacing: -.03em; }
.time-picker p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 10px 0 0; }
.time-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.time-opt { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); text-decoration: none; transition: background .15s, transform .15s; }
.time-opt:hover { background: var(--clay); border-color: var(--clay); color: var(--clay-ink); transform: translateY(-2px); }
.time-opt b { font: 800 2.25rem/1 var(--font-display); letter-spacing: -.03em; }
.time-opt span { font-size: .875rem; opacity: .85; line-height: 1.35; }
@media (max-width: 760px) { .time-picker { grid-template-columns: 1fr; } }

.section { padding-block: clamp(44px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--step-4); letter-spacing: -.03em; max-width: 18ch; }
.section-head p { max-width: 34em; color: var(--ink-2); margin: 0; }
.more { font: 700 1rem/1 var(--font-display); white-space: nowrap; }
.more::after { content: " →"; }

.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.need { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.need:hover { color: var(--ink); border-color: var(--clay); transform: translateY(-2px); }
.need-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay); }
.need-icon svg { width: 24px; height: 24px; }
.need b { display: block; font: 700 1.0625rem/1.25 var(--font-display); margin-bottom: 4px; }
.need span { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }

.band { background: var(--pine); color: var(--pine-ink); }
.band .section-head h2, .band h3 { color: var(--pine-ink); }
.band .section-head p { color: rgb(230 239 233 / .8); }
.band .more { color: var(--sun); }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; counter-reset: w; }
.plan-steps li { counter-increment: w; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--r); padding: 20px; }
.plan-steps li::before { content: "Week " counter(w); display: block; font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 10px; }
.plan-steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.plan-steps p { font-size: .9375rem; color: rgb(230 239 233 / .8); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-card { border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); }
.split-card h3 { font-size: var(--step-3); margin-bottom: 10px; }
.split-card p { color: var(--ink-2); }
.split-card.sun { background: var(--sun); border-color: var(--sun); color: #2A1E0B; }
.split-card.sun h3, .split-card.sun p, .split-card.sun a:not(.btn) { color: #2A1E0B; }
.mini-poses { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.mini-poses a { display: block; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: .875rem; }
.mini-poses a:hover { background: var(--clay-soft); color: var(--clay); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.promise h3 { font-size: 1.125rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.promise h3::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--clay); flex: none; }
.promise p { color: var(--ink-2); font-size: .9875rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--pine-ink); padding: clamp(40px, 6vw, 72px) 0 28px; }
.site-footer a { color: var(--pine-ink); text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer .brand-mark { color: var(--pine-ink); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px; }
.foot-brand p { color: rgb(230 239 233 / .75); font-size: .9375rem; margin-top: 14px; max-width: 26em; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.foot-head { font: 700 .75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 12px; }
.foot-col ul, .foot-links { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; font-size: .9rem; line-height: 1.35; }
.foot-bottom { border-top: 1px solid rgb(230 239 233 / .15); margin-top: 40px; padding-top: 20px; font-size: .8125rem; color: rgb(230 239 233 / .65); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; font-size: .875rem; }
.newsletter { margin-top: 22px; }
.newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 180px; font: inherit; font-size: .9375rem; padding: 10px 16px; border-radius: 999px; border: 1px solid rgb(230 239 233 / .3); background: rgb(255 255 255 / .08); color: var(--pine-ink); }
.newsletter-note { font-size: .8125rem !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { border-top: 1px solid var(--line); } }
@media (min-width: 1100px) { .foot-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .jump, .section-tabs, .pager, .site-footer, .head-actions { display: none; } body { background: #fff; } }
.section.flush-top { padding-top: 0; }
.band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 28px 0 0; }
.btn.dark { background: #2A1E0B; border-color: #2A1E0B; color: #FFF6E4; }
.btn.dark:hover { background: #000; border-color: #000; color: #FFF6E4; }
