:root {
  color-scheme: dark;
  --page: #121613;
  --panel: #1b241e;
  --outline: #39463c;
  --light: #f2f6ed;
  --muted: #bdc9bc;
  --accent: #cfff6a;
  --accent-ink: #202b0c;
  --font: "Arial", sans-serif;
  --display: "Arial", sans-serif;
  font-family: var(--font);
  color: var(--light);
  background: var(--page);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell { width: min(100% - 96px, 1140px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #303a31; }
.header-inner {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 10px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font-size: 1.125rem; font-weight: 750; letter-spacing: -.035em; flex-shrink: 0;
}
.brand-mark {
  width: 29px; height: 29px; border-radius: 9px; background: var(--accent); position: relative;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 7px; border: 2px solid var(--accent-ink); border-radius: 50%;
}
.brand-mark::after {
  content: ""; position: absolute; width: 6px; height: 5px; left: 14px; top: 10px;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
}
nav { display: flex; gap: clamp(15px, 3vw, 32px); }
nav a, .site-footer a { font-size: .9375rem; color: var(--muted); text-decoration: none; }
nav a:hover, .site-footer a:hover { color: var(--accent); }
.site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px 4px; min-width: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 5px 10px;
  border-radius: 7px; font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.site-nav a:hover { background: var(--panel); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .86fr);
  align-items: center; column-gap: clamp(38px, 7vw, 106px);
  padding-block: clamp(48px, 7vw, 94px);
}
.intro h1 {
  margin: 0; font: 850 clamp(3.8rem, 6.8vw, 6.1rem)/.96 var(--display);
  letter-spacing: -.085em;
}
.intro h1 em { font-style: normal; color: var(--accent); }
.intro > p {
  max-width: 395px; margin: 26px 0 0; font-size: clamp(1.0625rem, 1.8vw, 1.21rem);
  line-height: 1.6; color: var(--muted);
}
.rhythm { display: flex; align-items: stretch; gap: 25px; margin-top: 34px; }
.rhythm-line { display: grid; gap: 5px; }
.rhythm-line strong { font-size: 1.85rem; letter-spacing: -.055em; }
.rhythm-line small { font-size: .89rem; font-weight: 600; letter-spacing: normal; }
.rhythm-line > span { font-size: .875rem; color: var(--muted); }
.rhythm-divider { width: 1px; background: var(--outline); }
.text-link {
  color: var(--accent); display: inline-flex; align-items: center; gap: 9px; margin-top: 33px;
  font-size: .9375rem; font-weight: 700; text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.down-chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }

.timer-card {
  border-radius: 25px; border: 1px solid var(--outline); padding: clamp(17px, 2.5vw, 28px);
  background: radial-gradient(ellipse 88% 75% at 50% 26%, #273a2a 0%, transparent 70%), var(--panel);
  box-shadow: 0 20px 65px #050b0766; scroll-margin-top: 16px;
}
.timer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer-top h2 { font-size: 1.0625rem; margin: 0; font-weight: 750; letter-spacing: -.025em; }
.sound {
  color: var(--muted); border: 1px solid #4e5d50; border-radius: 100px;
  background: #202a22; padding: 8px 13px; white-space: nowrap; font-size: .875rem;
}
.sound span { font-weight: 700; }
.sound[aria-pressed="true"] span { color: var(--accent); }
.sound:hover { border-color: #9baa99; }
.dial {
  --progress: 100%; --track: #405643; --dial-color: var(--accent);
  display: grid; place-items: center; border-radius: 50%; position: relative;
  margin: 25px auto 22px; width: min(100%, 264px); aspect-ratio: 1;
  border: 1px solid #4c614c; isolation: isolate;
  background: repeating-conic-gradient(from 0deg, #799073 0 1deg, transparent 1deg 15deg);
}
.dial::before, .dial::after {
  content: ""; pointer-events: none; position: absolute; border-radius: 50%;
}
.dial::before {
  inset: 7px; z-index: -2; background: #202d22;
  border: 2px solid #202d22;
}
.dial::after {
  inset: 14px; z-index: -1;
  background: conic-gradient(var(--dial-color) 0 var(--progress), var(--track) var(--progress) 100%);
}
.dial[data-phase="move"] { --dial-color: #8ff1c7; }
.dial-face {
  width: calc(100% - 42px); aspect-ratio: 1; border-radius: 50%; background: #19231b;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 32px #090f0b66;
}
.phase {
  color: var(--dial-color); font-size: .875rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase;
}
.time {
  font-family: var(--display); color: var(--light); font-variant-numeric: tabular-nums;
  font-weight: 750; font-size: clamp(2.5rem, 13vw, 3.6rem); letter-spacing: -.065em; line-height: 1.12;
  margin: 5px 0 6px;
}
.time[data-wide] { font-size: clamp(2rem, 10vw, 3.1rem); }
.timer-status { color: var(--muted); text-align: center; font-size: .875rem; }
.timer-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary, .secondary {
  min-height: 48px; border-radius: 9px; font-weight: 750; padding: 10px 18px;
}
.primary {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.primary:hover { background: #e0ff9e; }
.secondary { border: 1px solid #4e5d50; background: #253127; color: var(--light); }
.secondary:hover { background: #36463a; }
.toggle-icon { display: inline-block; }
.toggle-icon.play { border-left: 9px solid currentColor; border-block: 5px solid transparent; }
.toggle-icon.pause { height: 11px; width: 9px; border-inline: 3px solid currentColor; }
.skip {
  display: block; margin: 4px auto 0; min-height: 40px; border: 0;
  background: transparent; color: var(--muted); font-size: .9375rem;
}
.skip:hover { color: var(--accent); }
.settings { min-width: 0; margin: 10px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid #435247; }
.settings legend { float: left; width: 100%; margin: 0 0 9px; padding: 0; font-weight: 700; font-size: .875rem; }
.duration-grid { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.duration {
  display: flex; gap: 5px; align-items: center; padding: 5px 8px 5px 11px;
  border-radius: 8px; border: 1px solid #4a5b4d; background: #19221b; color: var(--muted);
  font-size: .875rem; min-width: 0;
}
.duration input {
  width: 3.5ch; flex: 1; min-width: 0; color: var(--light); background: transparent;
  padding: 5px 0; border: 0; text-align: right; font-weight: 750; appearance: textfield;
}
.duration input::-webkit-inner-spin-button, .duration input::-webkit-outer-spin-button { appearance: none; }
.duration:focus-within { border-color: var(--accent); }
.duration input:focus-visible { outline-offset: 1px; }
.interval-note { font-size: .875rem; margin: 10px 0 0; color: var(--muted); min-height: 1.2em; line-height: 1.35; }
.sound-settings { margin-top: 12px; border-top: 1px solid #435247; }
.sound-settings summary {
  color: var(--light); font-size: .875rem; font-weight: 700;
  cursor: pointer; min-height: 40px; padding: 12px 0 8px;
}
.sound-settings summary:hover, .sound-settings summary::marker { color: var(--accent); }
.sound-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sound-fields label { min-width: 0; color: var(--muted); font-size: .875rem; }
.select-wrap { display: block; position: relative; margin-top: 5px; }
.select-wrap::after {
  content: ""; position: absolute; top: 15px; right: 12px; width: 7px; height: 7px;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  pointer-events: none;
}
.sound-fields select {
  appearance: none; width: 100%; min-height: 40px; padding: 8px 27px 8px 9px;
  border: 1px solid #4a5b4d; border-radius: 8px; background: #19221b;
  color: var(--light); cursor: pointer;
}

.benefits { border-top: 1px solid #354035; padding: 44px 0 46px; scroll-margin-top: 16px; }
.benefits-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; margin-bottom: 26px; }
.benefits h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.03; letter-spacing: -.07em; }
.benefits-heading > p, .benefit-grid p, .research p { margin: 0; line-height: 1.6; color: var(--muted); }
.benefit-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.benefit-grid article { border: 1px solid #384539; background: #1a221c; border-radius: 14px; padding: 21px; }
.benefit-grid h3 { margin: 11px 0 5px; font-size: 1.0625rem; letter-spacing: -.02em; }
.card-mark {
  display: block; width: 34px; height: 34px; border-radius: 9px; background: #313e26; color: var(--accent); position: relative;
}
.card-mark::before, .card-mark::after { content: ""; position: absolute; }
.mark-step::before { width: 8px; height: 14px; border-radius: 60%; background: currentColor; top: 11px; left: 9px; transform: rotate(-23deg); }
.mark-step::after { width: 7px; height: 12px; border-radius: 60%; background: currentColor; top: 7px; left: 19px; transform: rotate(19deg); }
.mark-stretch::before { width: 19px; height: 2px; background: currentColor; left: 8px; top: 16px; transform: rotate(-45deg); }
.mark-stretch::after { width: 21px; height: 11px; border-inline: 2px solid currentColor; left: 7px; top: 11px; transform: rotate(-45deg); }
.mark-reset::before { width: 17px; height: 12px; border: 1.5px solid currentColor; border-radius: 70% 20%; left: 8px; top: 11px; transform: rotate(12deg); }
.mark-reset::after { width: 5px; height: 5px; border-radius: 50%; background: currentColor; left: 14px; top: 14px; }
.research {
  display: grid; grid-template-columns: 155px 1fr; gap: 18px; padding: 19px 22px;
  margin-top: 13px; border-radius: 10px; border-left: 2px solid var(--accent); background: #1c261d;
}
.research h3 { margin: 2px 0 0; font-size: 1rem; }
.research a { color: var(--accent); text-underline-offset: 3px; }
.squat-tip { grid-template-columns: 1fr; gap: 9px; }
.squat-tip h3 { font-size: clamp(1.125rem, 2.4vw, 1.5rem); line-height: 1.25; }
.squat-tip ul { margin: 0; padding-inline-start: 1.25em; color: var(--muted); line-height: 1.6; }
.squat-tip li + li { margin-top: 5px; }
.squat-tip li::marker { color: var(--accent); }
.squat-tip strong { color: var(--light); }
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #354035;
  padding-block: 24px; color: var(--muted); font-size: .875rem;
}

@media (max-width: 1000px) {
  .shell { width: min(100% - 64px, 1140px); }
  .hero { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); }
  .intro h1 { font-size: clamp(3.15rem, 7vw, 5.5rem); }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 40px, 510px); }
  .header-inner { min-height: 64px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 43px; }
  .intro h1 { font-size: clamp(3rem, 11vw, 5.4rem); }
  .intro > p { margin-top: 17px; }
  .rhythm { margin-top: 20px; }
  .text-link { margin-top: 20px; }
  .benefits-heading, .benefit-grid, .research { grid-template-columns: 1fr; }
  .benefits-heading { gap: 12px; }
  .research { gap: 6px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 30px); }
  .wordmark { font-size: 1rem; gap: 7px; }
  nav { gap: 12px; }
  nav a { font-size: .875rem; }
  .primary, .secondary { padding-inline: 12px; }
  .duration { padding-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.timer-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
[data-theme="lime"] { --timer-accent: #cfff6a; }
[data-theme="amber"] { --timer-accent: #ffcc77; }
[data-theme="mint"] { --timer-accent: #8ff1c7; }
[data-theme="coral"] { --timer-accent: #ffb6a4; }
[data-theme="blue"] { --timer-accent: #a9d9ff; }
[data-theme="lavender"] { --timer-accent: #ddd0ff; }
.timer-type {
  display: grid; gap: 6px; border: 1px solid var(--outline); border-radius: 12px;
  padding: 20px; background: var(--panel); text-decoration: none;
}
.timer-type strong { color: var(--timer-accent); font-size: 1.0625rem; }
.timer-type span { color: var(--muted); font-size: .875rem; }
.timer-type:hover { border-color: var(--timer-accent); }
.session-page { --accent: var(--timer-accent); }
.session-hero { padding-block: clamp(38px, 5vw, 68px); }
.session-page .intro h1 { overflow-wrap: anywhere; }
.session-card .dial { width: min(100%, 236px); }
.session-card .timer-status { max-width: 89%; }
.session-card .dial[data-phase="recovery"] { --dial-color: #8ff1c7; }
.session-card .dial[data-countdown] { --dial-color: #ffd188; }
.session-card .dial[data-countdown] .time { color: #ffd188; }
.session-card .skip:disabled { opacity: .45; cursor: default; }
.session-card .preset-label { display: block; clear: both; color: var(--muted); font-size: .875rem; }
.session-card select {
  appearance: none; width: 100%; min-height: 38px; padding: 7px 29px 7px 10px;
  border: 1px solid #4a5b4d; border-radius: 8px; background: #19221b; color: var(--light);
}
.session-card .session-fields { margin-top: 8px; }
.session-card .duration > span:first-child { white-space: nowrap; }
.session-card .duration input { min-width: 3ch; }
.session-card .settings:disabled { opacity: .62; }
.session-guides h3 { margin-top: 0; }
.other-timers { flex-wrap: wrap; gap: 13px 24px; padding-bottom: 26px; }
.other-timers a { color: var(--muted); font-size: .9375rem; }
@media (max-width: 720px) {
  .timer-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timer-type { padding: 15px; }
}
@media (max-width: 820px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 7px; padding-block: 12px; }
  .site-nav { justify-content: flex-start; }
}
@media (max-width: 365px) {
  .session-fields { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .session-card .dial[data-countdown] { outline: 3px solid Highlight; }
}
