: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 { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input: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: 20px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font-size: 1.125rem; font-weight: 750; letter-spacing: -.035em;
}
.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); }

.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; }

.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; }
.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; }
}
