:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5b667a;
  --paper: #f6f0ff;
  --card: #ffffff;
  --line: #e5def1;
  --purple: #7c3aed;
  --blue: #2563eb;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #16a34a;
  --shadow: 0 24px 60px rgba(30, 41, 59, 0.16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.20), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(124, 58, 237, 0.20), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #eef2ff 48%, #f5f3ff 100%);
  color: var(--ink);
}
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 24px 0 36px; }
.crumb { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.crumb a { color: var(--ink); text-decoration: none; font-weight: 850; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 500px); gap: 28px; align-items: center; }
.eyebrow { color: #6d28d9; font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
h1 { font-size: clamp(2.35rem, 7vw, 5.05rem); line-height: 0.94; margin: 0 0 18px; letter-spacing: -0.07em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.preset-row, .custom-row, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.preset-row { margin: 26px 0 18px; }
.pill, button { border: 0; font: inherit; cursor: pointer; }
.pill { border: 2px solid var(--line); background: rgba(255,255,255,0.88); color: var(--ink); padding: 11px 14px; border-radius: 999px; font-weight: 850; box-shadow: 0 8px 18px rgba(31, 41, 55, 0.06); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.settings-card, .timer-card, .info-card, .tips, .faq { background: rgba(255,255,255,0.94); border: 1px solid rgba(229, 222, 241, 0.96); border-radius: 30px; box-shadow: var(--shadow); }
.settings-card { padding: 18px; margin-top: 18px; }
.settings-card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.step-inputs { display: grid; gap: 10px; margin-bottom: 14px; }
.step-input { display: grid; grid-template-columns: minmax(0, 1fr) 78px auto; gap: 8px; align-items: center; }
.step-input label { font-weight: 900; color: var(--ink); }
.step-input span { color: var(--muted); font-weight: 850; }
input { width: 78px; border: 2px solid var(--line); border-radius: 14px; padding: 11px 10px; font: inherit; font-weight: 850; color: var(--ink); background: #fff; }
.timer-card { padding: clamp(20px, 4vw, 34px); text-align: center; }
.moon-window { position: relative; overflow: hidden; min-height: 230px; border-radius: 28px; background: #141a3a; border: 4px solid #fff; box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.08); margin-bottom: 18px; }
.night-fill { position: absolute; inset: 0; transform-origin: bottom; background: linear-gradient(180deg, #fb7185 0%, #8b5cf6 45%, #1e1b4b 100%); transition: transform 0.45s ease, background 0.35s ease; }
.moon-scene { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; text-shadow: 0 4px 18px rgba(15, 23, 42, .45); }
.moon-scene span { font-size: clamp(4rem, 13vw, 7rem); filter: drop-shadow(0 12px 18px rgba(23,32,51,.20)); }
.moon-scene small { font-size: 1.05rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.time { font-size: clamp(3rem, 11vw, 5.4rem); line-height: 1; font-weight: 950; letter-spacing: -0.08em; margin-top: 2px; }
.step-count { margin: 8px 0 0; color: #6d28d9; font-weight: 950; }
.timer-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 8px 0; }
.timer-card p { color: var(--muted); line-height: 1.5; margin: 0 auto 16px; max-width: 38ch; }
.progress-list { display: grid; gap: 8px; margin: 16px 0 20px; text-align: left; }
.progress-item { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: #faf8ff; color: var(--muted); font-weight: 850; }
.progress-item.active { border-color: #a78bfa; background: #f3e8ff; color: var(--ink); }
.progress-item.done { color: #15803d; background: #ecfdf5; border-color: #bbf7d0; }
.primary, .secondary { border-radius: 16px; padding: 13px 18px; font-weight: 950; }
.primary { background: var(--purple); color: white; min-width: 160px; box-shadow: 0 12px 24px rgba(124, 58, 237, 0.26); }
.secondary { background: #eef2ff; color: #3730a3; }
.small { padding: 11px 13px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.info-card, .tips, .faq { padding: clamp(20px, 3vw, 28px); }
h2 { letter-spacing: -0.03em; }
li { margin: 9px 0; color: var(--muted); line-height: 1.55; }
.tips { margin-bottom: 18px; }
.tip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tip-grid div { background: #f8f6ff; border: 1px solid #e9d5ff; border-radius: 18px; padding: 16px; font-weight: 950; text-align: center; }
.faq { margin-bottom: 38px; }
details { border-top: 1px solid var(--line); padding: 15px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 950; }
details p { color: var(--muted); line-height: 1.6; }
body.running .night-fill { background: linear-gradient(180deg, #f9a8d4 0%, #7c3aed 48%, #111827 100%); }
body.final-step .night-fill { background: linear-gradient(180deg, #fcd34d 0%, #fb7185 35%, #312e81 100%); }
body.done .night-fill { background: linear-gradient(180deg, #93c5fd 0%, #4f46e5 55%, #111827 100%); }
.site-nav{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 24px;padding:12px 16px;background:rgba(255,255,255,.86);border:1px solid #e1e5ee;border-radius:24px;box-shadow:0 10px 24px rgba(22,31,54,.06);backdrop-filter:blur(12px)}
.site-brand{display:inline-flex;align-items:center;gap:10px;color:#172033;text-decoration:none;font-weight:800}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#172033;color:#fff;font-weight:900}.site-nav a:not(.site-brand){color:#4b5565;text-decoration:none;font-weight:700;font-size:.95rem}.site-nav a:hover{text-decoration:underline}
@media (max-width: 860px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .crumb { align-items: flex-start; flex-direction: column; }
  .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  main { width: min(100% - 20px, 1120px); }
  .preset-row .pill { width: 100%; }
  .step-input { grid-template-columns: 1fr 72px auto; }
  input { width: 72px; }
  .primary, .secondary.small { flex: 1; }
  .actions .primary, .actions .secondary { width: 100%; }
  .tip-grid { grid-template-columns: 1fr; }
  .site-nav{margin-top:8px;padding:10px 12px;border-radius:20px}.site-nav a:not(.site-brand){font-size:.9rem}.brand-mark{width:30px;height:30px}.site-brand span:last-child{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
