:root {
  --bg: #f7f2ea;
  --text: #2b2622;
  --muted: #6b6158;
  --accent: #9a4a28;
  --card: #fffcf7;
  --line: #e6ddd1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --text: #f2ece4;
    --muted: #a89e93;
    --accent: #e58a5e;
    --card: #262220;
    --line: #3a3430;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
header a { color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
nav { display: flex; gap: 18px; margin: 8px 0 32px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, a { color: var(--accent); }
h1 { font-family: ui-rounded, -apple-system, sans-serif; font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-family: ui-rounded, -apple-system, sans-serif; font-size: 21px; margin: 32px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 20px 0; }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; }

/* Guides and the breathing timer (AB#3043). Colours stay on the tokens above; the full design pass is AB#2976. */
nav { flex-wrap: wrap; }
.small { font-size: 15px; }
.guide ol, .guide ul, .guides { padding-left: 1.4em; }
.guide li, .guides li { margin: 4px 0; }
.guide table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; line-height: 1.45; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.guide thead th { color: var(--muted); font-weight: 600; }
.guide tbody th { font-weight: 600; }
.store { font-weight: 600; }
.timer { text-align: left; }
.pacer {
  width: min(220px, 60vw); aspect-ratio: 1; margin: 8px auto 16px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.pacer-dot {
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 35%, transparent); transform: scale(.4);
}
.cue { font-family: ui-rounded, -apple-system, sans-serif; font-size: 24px; text-align: center; margin: 0; }
.count { text-align: center; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.start, #time { text-align: center; } #time { font-variant-numeric: tabular-nums; margin-top: 0; }
.still-note { display: none; text-align: center; }
.controls { display: grid; gap: 6px; margin: 12px 0; }
.controls label { font-weight: 600; margin-top: 8px; }
.controls input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--accent); }
.controls select { width: 100%; min-height: 44px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.begin {
  min-height: 44px; min-width: 140px; padding: 10px 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--card); cursor: pointer;
}
.begin:focus-visible, .controls select:focus-visible, .controls input:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .pacer-dot { transform: none; background: color-mix(in srgb, var(--accent) 20%, transparent); }
  .still-note { display: block; }
}
@media (max-width: 600px) { h1 { font-size: 30px; } .guide table { font-size: 14px; } }
