/* Pikkola Pomodoro: warm paper, one ember accent, and a dial that takes the
   whole room. Focus rounds are ember; breaks turn the dial to sage. Weights
   stay at 400, 500, 600 and 700. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/tools/pomodoro/fonts/inter.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/tools/pomodoro/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --r: 14px;
  --r-sm: 8px;
  --ring: #b0452c;
}
html[lang="ko"] {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
html[lang="ja"] {
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: normal;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] p,
html[lang="ja"] li,
html[lang="ja"] summary { line-break: strict; overflow-wrap: break-word; word-break: auto-phrase; }
html[lang="ja"] .hero h1 { max-width: 16ch; font-size: clamp(1.95rem, 3.9vw, 3.1rem); }

html[data-theme="light"] {
  --bg: #f5efe4;
  --bg-2: #eee5d5;
  --surface: #fffaf2;
  --surface-2: #f9f2e6;
  --ink: #1c1917;
  --ink-2: #4a423b;
  --ink-3: #7b7066;
  --line: #e4d9c8;
  --line-2: #cec0aa;
  --accent: #b0452c;
  --accent-ink: #fff8f2;
  --accent-soft: #f6dfd3;
  --sage: #55704f;
  --sage-ink: #f6faf3;
  --sage-soft: #e3eadd;
  --tint: #efe2d1;
  --shadow: 0 24px 60px -32px rgba(58, 38, 24, 0.45);
  --shadow-sm: 0 10px 24px -18px rgba(58, 38, 24, 0.5);
  --header: rgba(245, 239, 228, 0.86);
  --dot: rgba(28, 25, 23, 0.16);
}
html[data-theme="dark"] {
  --bg: #141110;
  --bg-2: #1b1715;
  --surface: #1f1a17;
  --surface-2: #251f1b;
  --ink: #f4ece1;
  --ink-2: #c9bcaa;
  --ink-3: #95897b;
  --line: #332b25;
  --line-2: #4a3d33;
  --accent: #e8765a;
  --accent-ink: #1c110e;
  --accent-soft: #3b241d;
  --sage: #a1bd99;
  --sage-ink: #131a11;
  --sage-soft: #26301f;
  --tint: #2a211b;
  --shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 12px 28px -18px rgba(0, 0, 0, 0.8);
  --header: rgba(20, 17, 16, 0.86);
  --dot: rgba(244, 236, 225, 0.2);
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 480px at 82% -6%, rgba(176, 69, 44, 0.10), transparent 70%),
    radial-gradient(640px 420px at 4% 8%, rgba(85, 112, 79, 0.08), transparent 72%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(760px 480px at 82% -6%, rgba(232, 118, 90, 0.11), transparent 70%),
    radial-gradient(640px 420px at 4% 8%, rgba(161, 189, 153, 0.06), transparent 72%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.small { font-size: 12px; color: var(--ink-3); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 40;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); align-self: center; }
.brand-name { font-size: 17px; }
.brand-tool {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 8px;
}
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-field { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.lang-globe { width: 16px; height: 16px; margin-left: 6px; pointer-events: none; position: absolute; left: 0; }
.lang-field select {
  appearance: none; background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); font-size: 12.5px; padding: 6px 10px 6px 26px; cursor: pointer;
}
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }
html[data-theme="light"] .ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px; align-items: center;
  padding-top: 74px; padding-bottom: 64px;
}
.eyebrow {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.45rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; white-space: pre-line; }
.hero-lede { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 52ch; }
.facts { display: flex; gap: 34px; margin: 34px 0 0; padding: 0; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ink); }
.facts dd { margin: 0; font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 330px; }
.art-dial { position: relative; width: min(300px, 78%); aspect-ratio: 1; color: var(--accent); }
.art-svg { width: 100%; height: 100%; }
.art-label {
  font-size: 30px; color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.art-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.art-mode { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.art-waves {
  position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 5px; height: 26px; color: var(--sage);
}
.art-waves span { width: 3px; border-radius: 2px; background: currentColor; opacity: 0.85; animation: wave 2.6s ease-in-out infinite; }
.art-waves span:nth-child(1) { height: 32%; animation-delay: -0.2s; }
.art-waves span:nth-child(2) { height: 58%; animation-delay: -0.7s; }
.art-waves span:nth-child(3) { height: 82%; animation-delay: -1.2s; }
.art-waves span:nth-child(4) { height: 46%; animation-delay: -1.7s; }
.art-waves span:nth-child(5) { height: 70%; animation-delay: -0.4s; }
.art-waves span:nth-child(6) { height: 38%; animation-delay: -1s; }
.art-waves span:nth-child(7) { height: 54%; animation-delay: -2.2s; }
.art-note {
  position: absolute; bottom: -2%; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

/* ---------- sections ---------- */

.section { padding: 62px 0; border-top: 1px solid var(--line); }
.section[id] { scroll-margin-top: 84px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
.section-lede { max-width: 46ch; color: var(--ink-2); font-size: 15.5px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 14px; letter-spacing: 0.02em; }
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 10px; }
.hint.dim { opacity: 0.86; }

/* ---------- deck ---------- */

.deck { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.dial-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dial-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 320px at 50% 26%, color-mix(in srgb, var(--ring) 9%, transparent), transparent 72%);
}
.modes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.mode-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mode-tab:hover { border-color: var(--line-2); color: var(--ink); }
.mode-tab .tab-min { font-size: 11px; color: var(--ink-3); }
.mode-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mode-tab.is-on .tab-min { color: color-mix(in srgb, var(--bg) 72%, transparent); }

.dial { position: relative; width: min(420px, 92%); aspect-ratio: 1; margin: 18px auto 6px; }
.dial[data-mode="short"], .dial[data-mode="long"] { --ring: var(--sage); }
.dial-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-track { stroke: var(--line); opacity: 0.75; }
.dial-ticks { stroke: var(--ink-3); opacity: 0.32; }
.dial-progress {
  stroke: var(--ring);
  transition: stroke-dashoffset 0.45s linear, stroke 0.3s ease;
}
.dial-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12%; }
.dial-mode { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ring); margin-bottom: 6px; }
.dial-time {
  font-size: clamp(3.15rem, 7.8vw, 5.1rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.dial-sub { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); min-height: 20px; }
.cycle { display: flex; gap: 7px; margin-top: 14px; }
.cycle i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); transition: background 0.2s, transform 0.2s; }
.cycle i.on { background: var(--ring); transform: scale(1.25); }

.dial-controls { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 15px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  min-width: 132px; height: 50px; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: var(--accent-ink); }
.btn .i-pause { display: none; }
.btn.is-running .i-pause { display: block; }
.btn.is-running .i-play { display: none; }
.btn.ghost { border-style: dashed; }
.btn.small { height: 38px; font-size: 12.5px; padding: 0 13px; }
.btn.tiny { height: 30px; font-size: 11.5px; padding: 0 10px; border-radius: 8px; }

.side { display: flex; flex-direction: column; gap: 14px; }
.task-card { background: var(--surface-2); }
.task-input {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--line-2); background: transparent;
  padding: 6px 0 9px; font-size: 16.5px; font-weight: 500; color: var(--ink); font-family: inherit;
  border-radius: 0;
}
.task-input::placeholder { color: var(--ink-3); font-weight: 400; }
.task-input:focus { outline: none; border-bottom-color: var(--accent); }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.check.wide { display: flex; }
.task-foot .hint { margin: 0; font-size: 11.5px; }

.lengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.num-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.num-field input {
  width: 100%; font-family: var(--mono); font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px;
}
.num-field input:focus { outline: none; border-color: var(--accent); }

.range-field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-3); }
.range-field.stacked { margin-top: 14px; }
.range-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer;
}
.range-field input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--line-2); }
.range-field input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-2); }
.range-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2);
}
.range-field input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface);
}

/* ---------- sounds ---------- */

.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.chan.is-on { border-color: color-mix(in srgb, var(--sage) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sage) 28%, transparent), var(--shadow-sm); }
.chan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chan-name { display: flex; align-items: center; gap: 9px; }
.chan-icon { width: 20px; height: 20px; color: var(--sage); flex: none; }
.chan-name h3 { font-size: 14.5px; letter-spacing: 0; }
.chan-desc { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; min-height: 58px; }
.chan-toggle {
  flex: none; width: 34px; height: 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); position: relative; cursor: pointer; padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.chan-toggle i {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-3); transition: transform 0.2s, background 0.2s;
}
.chan-toggle.is-on { background: var(--sage-soft); border-color: var(--sage); }
.chan-toggle.is-on i { transform: translateX(14px); background: var(--sage); }
.chan-wave { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin: 6px 0 12px; color: var(--sage); opacity: 0.3; }
.chan-wave span { flex: 1; background: currentColor; border-radius: 2px; height: 45%; transform-origin: bottom; }
.chan-wave span:nth-child(1) { height: 34%; }
.chan-wave span:nth-child(2) { height: 62%; }
.chan-wave span:nth-child(3) { height: 88%; }
.chan-wave span:nth-child(4) { height: 48%; }
.chan-wave span:nth-child(5) { height: 72%; }
.chan-wave span:nth-child(6) { height: 40%; }
.chan-wave span:nth-child(7) { height: 56%; }
.chan-wave span:nth-child(8) { height: 80%; }
.chan.is-on .chan-wave { opacity: 0.9; }
.chan.is-on .chan-wave span { animation: bar 1.9s ease-in-out infinite; }
.chan-wave span:nth-child(1) { animation-delay: -0.2s; }
.chan-wave span:nth-child(2) { animation-delay: -0.7s; }
.chan-wave span:nth-child(3) { animation-delay: -1.1s; }
.chan-wave span:nth-child(4) { animation-delay: -0.4s; }
.chan-wave span:nth-child(5) { animation-delay: -1.5s; }
.chan-wave span:nth-child(6) { animation-delay: -0.9s; }
.chan-wave span:nth-child(7) { animation-delay: -1.3s; }
.chan-wave span:nth-child(8) { animation-delay: -0.6s; }
@keyframes bar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.chan .range-field { margin-top: auto; }

.mixer-foot {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 20px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.range-field.master { flex-direction: row; align-items: center; gap: 12px; min-width: 220px; }
.range-field.master input { width: 160px; }
.mixer-note { margin: 0; flex: 1 1 320px; }

/* ---------- stats and log ---------- */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 6px;
}
.stat-label { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stat-value small { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); margin-left: 6px; font-weight: 400; }

.log-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 152px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-count { font-size: 10.5px; color: var(--ink-3); height: 13px; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: 5px; }
.bar-fill { width: 100%; border-radius: 5px; background: var(--accent); opacity: 0.85; transition: height 0.35s ease; }
.bar-fill.zero { height: 2px !important; background: var(--line-2); opacity: 1; }
.bar.today .bar-fill { opacity: 1; }
.bar.today .bar-label { color: var(--ink); }
.bar-label { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.06em; }

.empty { font-size: 13px; color: var(--ink-3); padding: 6px 0 14px; }
.log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.log-list li:first-child { border-top: 0; }
.log-when { color: var(--ink-3); font-size: 12px; min-width: 84px; }
.log-name { color: var(--ink-2); }
.log-min { margin-left: auto; color: var(--ink); font-size: 12px; }

/* ---------- faq ---------- */

.faq-section { padding-top: 54px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 30px 18px 0; font-size: 15.5px; font-weight: 500;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 16px; color: var(--ink-3);
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 14.5px; max-width: 78ch; }

/* ---------- related ---------- */

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rel-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rel-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.rel-kicker { font-size: 10px; letter-spacing: 0.1em; color: var(--accent); }
.rel-card h3 { font-size: 16px; }
.rel-card p { font-size: 13px; color: var(--ink-3); }
.rel-open { margin-top: auto; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.rel-open::after { content: "→"; font-family: var(--mono); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; padding: 40px 0 46px; position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.footer-brand .brand-name { font-weight: 600; font-size: 16px; }
.footer-brand .brand-tool { margin-left: 8px; }
.footer-tagline { margin-top: 10px; font-size: 13px; color: var(--ink-3); max-width: 46ch; }
.footer-note { margin-top: 10px; font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.footer-links { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: 12px; color: var(--ink-3); }

/* ---------- zen ---------- */

body.zen-open { overflow: hidden; }
.zen {
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(720px 520px at 50% 34%, color-mix(in srgb, var(--ring) 14%, transparent), transparent 72%),
    var(--bg);
  display: grid; place-items: center; padding: 28px;
}
.zen[data-mode="short"], .zen[data-mode="long"] { --ring: var(--sage); }
.zen-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 640px; }
.zen-task { font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 44ch; margin-bottom: 26px; }
.zen-dial { position: relative; width: min(440px, 74vw); aspect-ratio: 1; color: var(--ring); }
.zen-svg { width: 100%; height: 100%; }
.zen-time {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(3.4rem, 13vw, 6.6rem); font-weight: 500; letter-spacing: -0.05em; color: var(--ink);
}
.zen-mode { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ring); }
.zen-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.zen-hint { margin-top: 22px; font-size: 12px; color: var(--ink-3); }
.btn.on-dark { border-color: color-mix(in srgb, var(--ink) 24%, transparent); color: var(--ink-2); }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 120;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- plain pages ---------- */

.doc { max-width: 780px; padding: 56px 0 70px; }
.doc h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.doc .updated { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.doc-lede { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.doc h2 { margin-top: 36px; font-size: 1.22rem; }
.doc h3 { margin-top: 24px; font-size: 1.02rem; }
.doc p, .doc li { font-size: 15px; color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.doc .doc-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

.notfound { padding: 96px 0 110px; max-width: 620px; }
.notfound h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.notfound p { margin-top: 16px; color: var(--ink-2); }
.notfound .btn { margin-top: 26px; text-decoration: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 54px; padding-bottom: 46px; }
  .hero-art { min-height: 240px; order: -1; }
  .art-dial { width: min(230px, 60%); }
  .deck { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side .task-card { grid-column: 1 / -1; }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chan-desc { min-height: 0; }
  .log-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .site-nav { display: none; }
  .header-inner { height: 60px; }
  .header-tools { margin-left: auto; }
  .section { padding: 44px 0; }
  .section-head { gap: 12px; margin-bottom: 22px; }
  .section-lede { font-size: 14.5px; }
  .hero h1 { max-width: none; }
  .facts { gap: 24px; }
  .dial-panel { padding: 20px 14px 18px; }
  .dial { width: min(360px, 100%); margin-top: 14px; }
  .dial-time { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .side { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .stat-value { font-size: 26px; }
  .related-grid { grid-template-columns: 1fr; }
  .mixer-foot { flex-direction: column; align-items: stretch; }
  .range-field.master { justify-content: space-between; }
  .range-field.master input { width: auto; flex: 1; }
  .doc { padding: 36px 0 54px; }
}
@media (max-width: 460px) {
  .channels { grid-template-columns: 1fr; }
  .mode-tab { padding: 7px 11px; font-size: 12px; }
  .dial-controls .btn.ghost span { display: none; }
  .dial-controls .btn.ghost { padding: 0 12px; }
  .zen-dial { width: 80vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
