:root {
  --ink: #2b3d40;
  --navy: #4b696c;
  --paper: #f6f7f3;
  --paper-2: #eaf0ec;
  --coral: #78627f;
  --coral-soft: #e1cee4;
  --sage: #c6ddd2;
  --sun: #ddd4bc;
  --line: #d4ddd7;
  --muted: #607175;
  --white: #fbfcf8;
  --tool: #405e62;
  --tool-stage: #52777a;
  --tool-text: #cbd9d7;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; transform: translateY(-150%); padding: 8px 12px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(246, 247, 243, .95); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem/1 Georgia, serif; letter-spacing: -.035em; }
.brand__mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--white); font: 900 .72rem/1 ui-sans-serif, system-ui; }
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .86rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--coral); }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
h1 { margin: 0; max-width: 830px; font-size: clamp(3rem, 7.5vw, 6.8rem); font-weight: 500; line-height: .93; }
h1 em { color: var(--coral); font-weight: 400; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; }
h3 { margin: 28px 0 9px; font-size: 1.45rem; line-height: 1.15; }
p { margin: 0 0 16px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 70px; align-items: end; padding: 78px 0 48px; }
.hero__copy { max-width: 690px; margin-top: 26px; color: var(--muted); font-size: 1.1rem; }
.hero__card { padding: 26px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--sage); box-shadow: 9px 9px 0 var(--navy); transform: rotate(1deg); }
.hero__card strong { display: block; margin-bottom: 10px; font: 600 1.5rem/1.1 Georgia, serif; }
.hero__card p { margin: 0; }
.tool { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); min-height: 600px; overflow: hidden; border: 1px solid #38565a; border-radius: 28px; background: var(--tool); color: var(--white); }
.tool__intro { display: flex; flex-direction: column; justify-content: space-between; padding: 44px; border-right: 1px solid rgba(255,255,255,.16); }
.tool__intro p:not(.eyebrow) { color: var(--tool-text); }
.tool .eyebrow { color: var(--coral-soft); }
.tool__intro h2 { max-width: 390px; }
.tool__micro { padding-top: 28px; color: var(--tool-text) !important; font-size: .82rem; }
.tool__stage { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 25px; padding: 44px; background: radial-gradient(circle at 50% 43%, var(--tool-stage) 0, var(--tool) 68%); }
.breath-orb { --orb-scale: .78; position: relative; width: min(300px, 70vw); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: var(--ink); transform: scale(var(--orb-scale)); transition: background 500ms ease; will-change: transform; box-shadow: 0 0 0 18px rgba(198,221,210,.1), 0 24px 58px rgba(35,56,58,.24); }
.breath-orb::before { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(23,36,44,.25); border-radius: inherit; }
.breath-orb__copy { position: relative; z-index: 1; text-align: center; }
.breath-orb__phase { display: block; font: 500 clamp(1.8rem, 4vw, 3rem)/1 Georgia, serif; }
.breath-orb__count { display: block; margin-top: 10px; font-size: 1.05rem; font-weight: 900; }
.tool__status { min-height: 26px; color: var(--tool-text); font-size: .9rem; text-align: center; }
.controls { width: min(520px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button { min-height: 46px; padding: 10px 20px; border: 1px solid #91aaab; border-radius: 999px; background: transparent; color: var(--white); font-weight: 850; }
.button:hover, .button:focus-visible { border-color: var(--sun); }
.button--primary { border-color: var(--sage); background: var(--sage); color: var(--ink); }
.button--quiet { color: var(--tool-text); }
.settings { width: min(520px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings label { display: grid; gap: 6px; color: var(--tool-text); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.settings input, .settings select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #769092; border-radius: 10px; background: var(--paper); color: var(--ink); }
.phase-settings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.session-strip { width: min(520px, 100%); display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: var(--tool-text); font-size: .79rem; }
.session-strip strong { color: var(--white); }
.tool.is-focus-mode, .tool:fullscreen { position: fixed; inset: 0; z-index: 100; width: 100%; max-width: none; height: 100dvh; min-height: 100vh; border: 0; border-radius: 0; grid-template-columns: 1fr; }
.tool.is-focus-mode .tool__intro, .tool:fullscreen .tool__intro { display: none; }
.tool.is-focus-mode .tool__stage, .tool:fullscreen .tool__stage { min-height: 100%; overflow-y: auto; padding-block: 30px; }
body.has-focus-mode { overflow: hidden; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 72px 0 24px; }
.tool-hero { max-width: 850px; padding: 46px 0 28px; }
.tool-hero h1 { max-width: 800px; font-size: clamp(2.8rem, 5.6vw, 5.25rem); line-height: .96; }
.tool-hero__lead { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 1.06rem; }
.tool-card { min-height: 230px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); text-decoration: none; transition: transform .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-4px); border-color: var(--coral); }
.tool-card__no { color: var(--coral); font: 500 1.3rem Georgia, serif; }
.tool-card strong { margin: auto 0 8px; font: 500 1.55rem/1.05 Georgia, serif; }
.tool-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.tool-card--dark { background: var(--navy); color: var(--white); }
.tool-card--dark p { color: #e0e8e5; }
.tool-card--dark .tool-card__no { color: var(--coral-soft); }
.learn-block { padding: 74px 0 12px; }
.learn-block__head { max-width: 700px; margin-bottom: 26px; }
.learn-block__head p:last-child { color: var(--muted); }
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learn-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); text-decoration: none; }
.learn-card span { display: block; margin-bottom: 38px; color: var(--coral); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.learn-card strong { display: block; margin-bottom: 9px; font: 500 1.45rem/1.08 Georgia, serif; }
.learn-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.article-hero { max-width: 900px; padding: 64px 0 38px; }
.article-hero h1 { font-size: clamp(3rem, 6.5vw, 6rem); }
.article-hero > p:last-child { max-width: 720px; margin-top: 24px; color: var(--muted); font-size: 1.08rem; }
.article-layout article h2:not(:first-child) { margin-top: 50px; }
.source-list { display: grid; gap: 14px; padding-left: 22px; }
.source-list li { padding-left: 7px; color: var(--muted); }
.source-list a { display: block; color: var(--ink); font-weight: 850; text-underline-offset: 4px; }
.source-list span { display: block; margin-top: 3px; font-size: .88rem; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 70px; padding: 88px 0 100px; }
.content article { max-width: 720px; }
.content article > p, .content article li { color: var(--muted); }
.content ul { padding-left: 21px; }
.side-note { align-self: start; position: sticky; top: 20px; padding: 24px; border-radius: 16px; background: var(--paper-2); border-top: 6px solid var(--coral); }
.side-note p { margin: 0; color: var(--muted); font-size: .88rem; }
.related { display: grid; gap: 9px; margin-top: 22px; }
.related a { padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); text-decoration: none; font-size: .88rem; font-weight: 800; }
.noise-panel { width: min(540px, 100%); display: grid; gap: 18px; }
.noise-wave { height: 160px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 18px; border: 1px solid #769092; border-radius: 18px; }
.noise-wave i { width: 5px; height: 24%; border-radius: 99px; background: var(--sage); animation: wave 1.4s ease-in-out infinite alternate; animation-play-state: paused; }
.noise-wave.is-playing i { animation-play-state: running; }
.noise-wave i:nth-child(3n) { animation-delay: -.4s; height: 65%; }
.noise-wave i:nth-child(4n) { animation-delay: -.8s; height: 90%; }
.noise-wave i:nth-child(5n) { animation-delay: -.2s; height: 42%; }
@keyframes wave { from { transform: scaleY(.45); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
.noise-volume { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; color: var(--tool-text); font-size: .82rem; }
.noise-volume input { accent-color: var(--sun); }
.quick-reset { width: min(540px, 100%); display: grid; gap: 14px; }
.reset-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 15px; border: 1px solid #769092; border-radius: 13px; color: var(--tool-text); }
.reset-step.is-active { border-color: var(--sage); color: var(--white); background: rgba(198,221,210,.12); }
.reset-step b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--sun); }
.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner a { text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .hero, .tool, .content { grid-template-columns: 1fr; }
  .hero { gap: 36px; }
  .hero__card { max-width: 500px; }
  .tool__intro { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-grid { grid-template-columns: 1fr; }
  .side-note { position: static; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-nav { display: none; }
  .header-inner { min-height: 64px; }
  .hero { padding: 52px 0 32px; }
  .tool-hero { padding: 38px 0 24px; }
  .tool-hero h1 { font-size: clamp(2.55rem, 12vw, 3.45rem); }
  .tool-hero__lead { margin-top: 17px; font-size: 1rem; }
  h1 { font-size: clamp(2.7rem, 12.5vw, 3.7rem); overflow-wrap: anywhere; }
  .tool { border-radius: 20px; }
  .tool__intro, .tool__stage { padding: 27px; }
  .tool__stage { min-height: 580px; }
  .breath-orb { width: min(250px, 72vw); }
  .settings { grid-template-columns: 1fr; }
  .phase-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-strip { flex-direction: column; gap: 5px; }
  .tool-grid { grid-template-columns: 1fr; padding-top: 54px; }
  .tool-card { min-height: 180px; }
  .learn-block { padding-top: 58px; }
  .learn-card span { margin-bottom: 24px; }
  .article-hero { padding: 48px 0 24px; }
  .article-hero h1 { font-size: clamp(2.65rem, 12vw, 3.6rem); }
  .content { gap: 36px; padding: 64px 0 76px; }
  .footer-inner { flex-direction: column; }
}
