/* Breath Harbor — a harbor at dawn: sea mist and seafoam by day, deep sea and moonlight by night.
   Fraunces (soft serif) for headings, Figtree for text. Practices sit in an immersive "night sea" panel. */

:root {
  --bg: #f3f4f1; --bg-2: #e9ece8; --surface: #fdfefc; --ink: #16313a; --muted: #4b656d; --faint: #62777d;
  --accent: #2a8f82; --accent-ink: #1c6c63; --accent-soft: #dcefe9; --tide: #17505d; --lantern: #dba650;
  --line: rgba(22, 49, 58, 0.1); --line-2: rgba(22, 49, 58, 0.18);
  --shadow: 0 1px 2px rgba(22, 49, 58, 0.04), 0 10px 30px -12px rgba(22, 49, 58, 0.16);
  --shadow-lift: 0 2px 4px rgba(22, 49, 58, 0.05), 0 22px 44px -16px rgba(22, 49, 58, 0.26);
  --crisis-bg: #fbf0e0; --crisis-line: #e7c58c; --crisis-ink: #9a5f12;
  /* The practice panel: night sea in both modes. */
  --stage-1: #0f3039; --stage-2: #0b2229; --stage-ink: #eaf5f2; --stage-muted: #a6c4c3; --stage-line: rgba(234, 245, 242, 0.14);
  --stage-glow: #5cc7b6; --stage-hold: #f1cf85;
  /* Illustration colors (src/views/art.ts). */
  --sky-top: #cfe6e2; --sky-low: #f8e3cc; --sun: #f2bd72; --hill-1: #a7cec6; --hill-2: #87b9b0;
  --sea-1: #6aaea4; --sea-2: #3f8a85; --sea-3: #2e7774; --sea-4: #1f5d5f; --tower: #f5efe5; --tower-band: #d76f5b; --lamp: #f6c766; --bird: #4f7a7d;
  --star-opacity: 0; --foot: #e6eae6; --foot-2: #edf0ec;
  --radius: 22px; --radius-sm: 14px;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.4, .1, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1d22; --bg-2: #0e252b; --surface: #112a31; --ink: #e5efed; --muted: #a5bec0; --faint: #87a2a5;
    --accent: #5cc7b6; --accent-ink: #8fdccf; --accent-soft: #15383a; --tide: #5cc7b6; --lantern: #f1cf85;
    --line: rgba(229, 239, 237, 0.09); --line-2: rgba(229, 239, 237, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    --crisis-bg: #2c2414; --crisis-line: #6b5426; --crisis-ink: #f1cf85;
    --stage-1: #0f2c33; --stage-2: #081a1f; --stage-line: rgba(234, 245, 242, 0.1);
    --sky-top: #0c1f2b; --sky-low: #1c4450; --sun: #efe0b4; --hill-1: #1b4148; --hill-2: #153840;
    --sea-1: #17414a; --sea-2: #0f2f37; --sea-3: #0f2d34; --sea-4: #0b242a; --tower: #cbd8d4; --tower-band: #a85a4c; --lamp: #f6d27a; --bird: #7fa3a6;
    --star-opacity: .9; --foot: #0e252b; --foot-2: #0c2126;
    color-scheme: dark;
  }
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/figtree-latin-8330490a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin-48282a41.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ——— Base ——— */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: transparent; font: 17px/1.7 var(--sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* A soft dawn mist behind every page: mostly sea, with only a hint of lantern warmth so the sun stays the one warm spot. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50vw 40vw at -10% 10%, color-mix(in srgb, var(--lantern) 7%, transparent), transparent 70%),
    radial-gradient(60vw 50vw at 50% 110%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); transition: color .2s; }
a:hover { color: var(--accent); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 80px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; line-height: 1.15; color: var(--ink); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); margin: 6px 0 14px; font-weight: 350; letter-spacing: -0.025em; text-wrap: balance; }
h1 em { font-style: italic; color: var(--accent-ink); }
h2 { font-size: clamp(25px, 3.4vw, 34px); margin: 56px 0 14px; text-wrap: balance; }
h3 { font-size: 21px; margin: 32px 0 8px; font-weight: 500; }
.lede { font-size: clamp(17.5px, 2vw, 20px); line-height: 1.6; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.fine { font-size: 14px; color: var(--faint); }
.eyebrow { margin: 0; font: 600 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow + h1, .eyebrow + h2 { margin-top: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon.arrow { width: 16px; height: 16px; transition: transform .25s var(--ease); vertical-align: -3px; }

/* ——— Buttons ——— */
.btn, button.primary, button.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn.primary, button.primary { border: 0; background: var(--tide); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--tide) 80%, transparent); }
.btn.primary:hover, button.primary:hover { color: #fff; transform: translateY(-1px); background: color-mix(in srgb, var(--tide) 88%, #000); }
.btn.ghost, button.ghost { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink); }
.btn.ghost:hover, button.ghost:hover { border-color: var(--accent); color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn.primary, button.primary { color: #072026; } .btn.primary:hover, button.primary:hover { color: #072026; background: var(--accent-ink); } }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.quiet { font-size: 14.5px; }

/* ——— Header ——— */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.logo { width: 32px; height: 32px; color: var(--accent); }
header.site nav { display: flex; gap: 2px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s; }
header.site nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--accent-soft) 80%, transparent); }
header.site nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--faint); text-decoration: none; } .crumbs a:hover { color: var(--accent-ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ——— Footer ——— */
footer.site { margin-top: 40px; color: var(--muted); font-size: 15px; }
.waves { display: block; width: 100%; height: 56px; }
.foot { background: var(--foot); padding: 20px 0 40px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-about p { max-width: 360px; margin: 12px 0 0; }
.foot-h { margin: 4px 0 10px; font: 600 12.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--muted); text-decoration: none; } .foot ul a:hover { color: var(--accent-ink); }
.foot-note { border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 20px; max-width: none; }

/* ——— Home ——— */
.hero { display: grid; gap: 28px; align-items: center; padding: 12px 0 8px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr 1fr; gap: 48px; padding-top: 28px; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-art { margin: 0; position: relative; max-width: 440px; justify-self: center; width: 100%; }
/* No frame: the sea fades out into the page instead of ending on a hard edge. */
.scene { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 70%, transparent 99%); mask-image: linear-gradient(#000 70%, transparent 99%); }
.scene .stars { opacity: var(--star-opacity); }
.scene .sun { transform-box: fill-box; transform-origin: center; animation: breathe 11s var(--ease) infinite; }
.scene .wave { animation: drift 14s linear infinite; }
.scene .w2 { --drift: -160px; animation-duration: 20s; animation-direction: reverse; }
.hero-art figcaption { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font: italic 300 19px/1 var(--serif); color: var(--accent-ink); letter-spacing: .02em; height: 1em; }
.hero-art figcaption span { position: absolute; inset: 0; animation: cue 11s var(--ease) infinite; }
.hero-art figcaption span + span { animation-delay: -5.5s; }
@keyframes breathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.08); } }
/* Each wave drifts by a whole number of its own wavelengths (60 / 80), so the loop has no visible jump. */
@keyframes drift { to { transform: translateX(var(--drift, -120px)); } }
@keyframes cue { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

.band > h2 { margin-top: 8px; }
.band { margin-top: 64px; }
.moments, .cards, .tools { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.moments { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tools { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
[data-tone="sea"] { --tone: #2a8f82; --tone-soft: #dcefe9; }
[data-tone="coral"] { --tone: #d0715a; --tone-soft: #f8e2da; }
[data-tone="dusk"] { --tone: #6c6fb8; --tone-soft: #e5e5f4; }
[data-tone="sand"] { --tone: #c18a2e; --tone-soft: #f5ead2; }
@media (prefers-color-scheme: dark) {
  [data-tone="sea"] { --tone: #5cc7b6; --tone-soft: #15383a; }
  [data-tone="coral"] { --tone: #ec9a84; --tone-soft: #3a2621; }
  [data-tone="dusk"] { --tone: #a3a6ec; --tone-soft: #23253f; }
  [data-tone="sand"] { --tone: #e7bf73; --tone-soft: #352b17; }
}
.moment, .card, .tool { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.moment:hover, .card:hover, .tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-2); color: var(--ink); }
.moment:hover .arrow, .card:hover .arrow, .tool:hover .arrow, .links a:hover .arrow { transform: translateX(4px); }
.moment strong, .card strong, .tool strong { font: 450 21px/1.25 var(--serif); letter-spacing: -0.01em; }
.moment > span:not(.moment-top), .card > span:not(.card-icon), .tool > span > span { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.moment em, .card em, .tool em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: 15px; color: var(--tone, var(--accent-ink)); display: inline-flex; gap: 6px; align-items: center; }
.moment-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tone-soft, var(--accent-soft)); color: var(--tone, var(--accent-ink)); }
.card .card-icon { margin-bottom: 6px; }
.time { font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.tool { flex-direction: row; align-items: center; gap: 20px; }
.tool > span { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.spot { width: 96px; height: 96px; flex: none; }
.spot-orb { transform-box: fill-box; transform-origin: center; animation: breathe 8s var(--ease) infinite; }
.home-note { margin-top: 56px; text-align: center; }
@media (max-width: 420px) { .tool { flex-direction: column; align-items: flex-start; } .spot { width: 72px; height: 72px; } }

/* ——— Page heads, articles ——— */
.page-head { max-width: 760px; margin-bottom: 8px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); }
.head-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 18px; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.head-icon .icon { width: 26px; height: 26px; }
.prose { max-width: 700px; }
.prose > .lede { margin-top: 36px; }
.prose p, .prose li { color: var(--ink); text-wrap: pretty; }
.prose li { margin: 6px 0; } .prose li::marker { color: var(--accent); }
.prose h2 { padding-top: 8px; }
.table { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow-x: auto; box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .table table { display: table; margin: 0; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; white-space: nowrap; }
.prose blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font: italic 300 20px/1.55 var(--serif); }
.prose .refs { padding-left: 0; list-style: none; font-size: 14.5px; color: var(--muted); }
.prose .refs li { color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.byline { color: var(--faint); font-size: 14px; margin-top: -4px; }
.article-toc { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; }
.article-toc ul { columns: 2; column-gap: 32px; padding-left: 20px; margin-bottom: 0; }
.article-toc li { break-inside: avoid; }
.prose h2, #editorial-standards, #common-questions { scroll-margin-top: 140px; }
.prose a { overflow-wrap: anywhere; }
.practice-note { margin: 20px 0; padding: 14px 18px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 15px; }
.trust-note { max-width: 760px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-note h2 { margin-top: 8px; }
.print-actions { margin: 24px 0; }
@media (max-width: 640px) {
  .article-toc ul { columns: 1; }
  .prose h2, #editorial-standards, #common-questions { scroll-margin-top: 16px; }
  .prose td:first-child { white-space: normal; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --ink: #111; --muted: #333; --faint: #444; --accent-ink: #111; --accent: #444; }
  body { display: block; background: #fff; color: #111; font: 11pt/1.5 Georgia, serif; }
  body::before, header.site, footer.site, .skip, .crumbs, .article-toc, .print-actions, .practice, .related, .faq { display: none !important; }
  main.wrap, .prose { width: 100%; max-width: none; padding: 0; }
  h1 { font-size: 24pt; } h2 { font-size: 17pt; margin-top: 24px; break-after: avoid; } h3 { font-size: 13pt; break-after: avoid; }
  a { color: #111; text-decoration: underline; }
  .table { overflow: visible; box-shadow: none; }
  .byline, .fine, .changes li, .prose p, .prose li { color: #111; }
}
.changes li { color: var(--muted); font-size: 15px; }
.soon { margin-top: 32px; }

/* FAQ */
.faq { max-width: 700px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 52px 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(currentColor 0 0) center / 12px 1.6px no-repeat, linear-gradient(currentColor 0 0) center / 1.6px 12px no-repeat; color: var(--accent-ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Keep going links */
.related { max-width: 1080px; }
.related .links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; box-shadow: var(--shadow); transition: border-color .2s, color .2s; }
.links a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Crisis note */
.crisis { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0; padding: 18px 20px; background: var(--crisis-bg); border: 1px solid var(--crisis-line); border-radius: var(--radius-sm); font-size: 15.5px; max-width: 720px; }
.crisis .icon { color: var(--crisis-ink); margin-top: 3px; }
.crisis p { margin: 0; }

/* 404 */
.lost { display: grid; gap: 32px; align-items: center; padding-top: 12px; }
.lost .hero-art { max-width: 320px; }
@media (min-width: 760px) { .lost { grid-template-columns: 320px 1fr; } }

/* ——— Practices: the night-sea panel ——— */
.practice { position: relative; isolation: isolate; overflow: hidden; margin: 28px 0; padding: 28px clamp(18px, 4vw, 40px) 32px; max-width: 760px; color: var(--stage-ink); border-radius: 28px;
  background: radial-gradient(120% 80% at 50% 0%, var(--stage-1), var(--stage-2)); box-shadow: 0 30px 60px -30px rgba(8, 30, 36, .7), inset 0 0 0 1px var(--stage-line); }
.practice::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 30% at 85% 8%, rgba(241, 207, 133, .14), transparent 70%), radial-gradient(50% 40% at 10% 100%, rgba(92, 199, 182, .16), transparent 70%); }
.practice h2, .practice strong { color: var(--stage-ink); }
.practice p { color: var(--stage-ink); }
.practice a { color: var(--stage-hold); text-decoration-color: color-mix(in srgb, var(--stage-hold) 50%, transparent); }
.practice .fine, .practice .hint { color: var(--stage-muted); }
.practice-eyebrow { margin: 0; font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stage-glow) !important; }
.practice-title { margin: 6px 0 18px; font-size: clamp(26px, 3.6vw, 32px); }
.practice button.primary { background: var(--stage-hold); color: #1d1a10; box-shadow: 0 10px 24px -10px rgba(241, 207, 133, .6); }
.practice button.primary:hover { background: #f6dca2; color: #1d1a10; }
.practice button.ghost { color: var(--stage-ink); border-color: var(--stage-line); background: rgba(255, 255, 255, .04); }
.practice button.ghost:hover { border-color: var(--stage-glow); background: rgba(92, 199, 182, .1); }
.practice button.link { color: var(--stage-muted); }

.choices { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--stage-line); width: fit-content; max-width: 100%; }
.choices button { font: 500 14.5px/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--stage-muted); cursor: pointer; transition: background .25s, color .25s; }
.choices button:hover { color: var(--stage-ink); }
.choices button[aria-checked="true"] { background: var(--stage-ink); color: #0d2a32; }
.pattern-summary { color: var(--stage-muted) !important; min-height: 3.2em; margin: 14px 0 0; max-width: 560px; }

.controls, .row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 18px; }
.controls { scroll-margin-top: 80px; }
.length { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--stage-muted); }
.controls select { font: 500 15px/1 var(--sans); padding: 10px 34px 10px 14px; border-radius: 999px; border: 0; color: var(--stage-ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a6c4c3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; box-shadow: inset 0 0 0 1px var(--stage-line); }
.controls select option { color: #16313a; background: #fff; }
.check { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; color: var(--stage-muted); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; cursor: pointer; transition: background .25s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--stage-ink); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--stage-glow); }
.switch input:checked::after { transform: translateX(16px); }

.stage { display: grid; justify-items: center; gap: 6px; padding: 24px 0 0; }
.orb-track { position: relative; width: min(280px, 72vw, 44vh); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.orb-track > * { grid-area: 1 / 1; }
.ring { width: 100%; height: 100%; border-radius: 50%; border: 1px dashed rgba(234, 245, 242, .18); }
.orb { --halo: var(--stage-glow); width: 100%; aspect-ratio: 1; border-radius: 50%; transform: scale(.45); transition-property: transform, box-shadow, background; transition-timing-function: ease-in-out; will-change: transform;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 38%), radial-gradient(circle at 50% 55%, #7fd9c9, #2f9e8f 58%, #165a5f);
  box-shadow: 0 0 60px 6px color-mix(in srgb, var(--halo) 40%, transparent), 0 0 140px 30px color-mix(in srgb, var(--halo) 16%, transparent); }
.breather[data-kind="hold"] .orb { --halo: var(--stage-hold); }
.count { margin: 0; z-index: 1; font: 300 44px/1 var(--serif); color: #fff; text-shadow: 0 1px 12px rgba(8, 30, 36, .4); font-variant-numeric: tabular-nums; }
.phase { font: 400 clamp(26px, 4vw, 32px)/1.2 var(--serif); margin: 18px 0 0; text-align: center; letter-spacing: -0.01em; }
.progress { width: min(300px, 76vw); height: 3px; margin-top: 10px; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--stage-glow), var(--stage-hold)); transition: width 1s linear; }
.left { font-size: 14px; color: var(--stage-muted) !important; margin: 4px 0 0; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.hint { font-size: 14.5px; text-align: center; max-width: 440px; margin: 6px auto 0; }
.done { margin-top: 24px; padding: 18px 20px; background: rgba(255, 255, 255, .06); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--stage-line); }
.done p:first-child { margin-top: 0; }
.feel p { margin: 0 0 4px; }
.feel .row { margin-top: 10px; gap: 10px; }
.feel-reply p { margin: 10px 0; }
.practice noscript ol { color: var(--stage-ink); }

/* A running breathing session keeps only Stop and the circle on screen. */
.breather.running .choices, .breather.running .pattern-summary, .breather.running .controls label, .breather.running .practice-title, .breather.running .practice-eyebrow { display: none; }
.breather.running .controls { justify-content: center; margin-top: 4px; }
.breather.running button.primary { background: rgba(255, 255, 255, .1); color: var(--stage-ink); box-shadow: inset 0 0 0 1px var(--stage-line); }

/* Grounding */
.ground-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ground-steps li { position: relative; padding: 14px 16px 14px 64px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--stage-line); color: var(--stage-muted); line-height: 1.55; font-size: 15.5px; }
.ground-steps li::before { content: attr(data-n); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font: 400 20px/1 var(--serif); color: #0d2a32; background: var(--stage-glow); }
.ground-steps li strong { display: block; font-weight: 600; margin-bottom: 2px; }
.ground-card { text-align: center; padding: 8px 0 0; }
.segs { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.segs span { width: 34px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .4s; }
.segs span.on { background: var(--stage-glow); }
.ground-progress { font-size: 13px; color: var(--stage-muted) !important; margin: 0; letter-spacing: .12em; text-transform: uppercase; }
.ground-step { font: 400 clamp(28px, 4.4vw, 36px)/1.15 var(--serif); margin: 10px 0 4px; letter-spacing: -0.015em; }
.ground-step:focus { outline: none; }
.ground-text { color: var(--stage-muted) !important; max-width: 500px; margin: 8px auto 22px; }
.dots { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dots button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--stage-glow) 60%, transparent); background: transparent; color: var(--stage-glow); font: 400 20px/1 var(--serif); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s; }
.dots button:hover { transform: scale(1.06); }
.dots button[aria-pressed="true"] { background: var(--stage-glow); color: #0d2a32; box-shadow: 0 0 24px color-mix(in srgb, var(--stage-glow) 50%, transparent); }
.ground-card .row { justify-content: center; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .orb { transition: none !important; }
  .scene .sun, .scene .wave, .spot-orb, .hero-art figcaption span { animation: none; }
  .hero-art figcaption span + span { display: none; }
  .moment, .card, .tool, .btn, .dots button { transition: none; }
}

/* Phones: the header scrolls away and the nav is one swipeable row, so practices keep the screen. */
@media (max-width: 640px) {
  header.site { position: static; }
  .bar { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 4px; min-height: 0; padding-top: 10px; }
  header.site nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px 6px; }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { white-space: nowrap; }
  .controls { scroll-margin-top: 12px; }
  /* A tight hero: a small arch in the corner and no buttons (the "right now" cards below are the way in),
     so the first cards start on the first screen. */
  .hero { position: relative; display: block; padding-top: 4px; }
  .hero .hero-art { position: absolute; top: 0; right: 0; width: 92px; }
  .hero .hero-art figcaption { display: none; }
  .hero .eyebrow { padding-right: 100px; }
  .hero h1 { font-size: 35px; margin: 10px 0 10px; padding-right: 0; }
  .hero h1 em { display: block; }
  .hero .lede { font-size: 16.5px; margin: 0; }
  .hero .hero-actions { display: none; }
  .lost .hero-art { max-width: 200px; justify-self: start; }
  .band { margin-top: 36px; }
  .moment { padding: 18px; gap: 6px; }
  .moment .card-icon { width: 38px; height: 38px; border-radius: 12px; }
  .moment-top { margin-bottom: 2px; }
  .practice { margin-left: -6px; margin-right: -6px; border-radius: 24px; }
  .choices { border-radius: 18px; }
}
/* Short screens (a phone on its side): the header scrolls away so the circle and its cue fit together. */
@media (max-height: 500px) { header.site { position: static; } }
