:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5c667a;
  --paper: #fff7ed;
  --card: #ffffff;
  --line: #f6d7b0;
  --coral: #fb7185;
  --sun: #f59e0b;
  --teal: #14b8a6;
  --violet: #8b5cf6;
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.15);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 10%, #fed7aa 0, transparent 25rem), radial-gradient(circle at 90% 5%, #fbcfe8 0, transparent 26rem), linear-gradient(135deg, #fff7ed 0%, #f8fbff 100%);
}
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.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,.88);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}
.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(320px, 460px); gap: 28px; align-items: center; }
.eyebrow { color: #be123c; font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
h1 { font-size: clamp(2.35rem, 6.7vw, 4.9rem); line-height: 0.96; margin: 0 0 18px; letter-spacing: -0.055em; }
.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; }
button, .pill { border: 0; font: inherit; cursor: pointer; }
.pill { border: 2px solid var(--line); background: rgba(255,255,255,0.92); 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; }
.custom-label { display: block; margin-bottom: 8px; font-weight: 900; }
input { width: 118px; border: 2px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; font-weight: 850; color: var(--ink); background: #fff; }
.timer-card, .info-card, .tips, .faq, .related { background: rgba(255,255,255,0.94); border: 1px solid rgba(246, 215, 176, 0.98); border-radius: 30px; box-shadow: var(--shadow); }
.timer-card { padding: clamp(20px, 4vw, 34px); text-align: center; overflow: hidden; }
.stage { position: relative; width: min(78vw, 310px); margin: 0 auto 18px; }
.music-notes { position: absolute; inset: -8px 0 auto; display: flex; justify-content: space-between; padding: 0 22px; color: var(--coral); font-size: 2rem; font-weight: 950; opacity: 0.82; }
.ring { width: 100%; display: block; transform: rotate(-90deg); filter: drop-shadow(0 14px 20px rgba(251, 113, 133, 0.15)); }
.ring-bg, .ring-fill { fill: none; stroke-width: 18; }
.ring-bg { stroke: #ffe4e6; }
.ring-fill { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 640.88; stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s ease, stroke 0.35s ease; }
.time { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 11vw, 5.4rem); font-weight: 950; letter-spacing: -0.08em; }
.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: 35ch; }
.prompt-box { background: #fff7ed; border: 2px dashed #fbbf24; border-radius: 18px; padding: 14px; margin: 16px 0 12px; font-size: 1.05rem; font-weight: 900; }
.chant { background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 16px; color: #9f1239; padding: 12px 14px; margin-bottom: 20px; font-weight: 900; }
.primary, .secondary { border-radius: 16px; padding: 13px 18px; font-weight: 950; }
.primary { background: var(--coral); color: white; min-width: 190px; box-shadow: 0 12px 24px rgba(251, 113, 133, 0.28); }
.secondary { background: #ecfeff; color: #155e75; }
.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, .related { padding: clamp(20px, 3vw, 28px); }
h2 { letter-spacing: -0.03em; }
li { margin: 9px 0; color: var(--muted); line-height: 1.55; }
.tips, .related { margin-bottom: 18px; }
.tip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tip-grid div { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 18px; padding: 16px; font-weight: 900; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-grid a { background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 16px; padding: 14px; color: var(--ink); text-decoration: none; font-weight: 900; }
.related-grid a:hover { border-color: var(--coral); color: #be123c; }
.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 .ring-fill { stroke: var(--teal); }
body.final-minute .ring-fill { stroke: var(--sun); }
body.done .ring-fill { stroke: var(--violet); }
body.running .music-notes span { animation: bounce 0.9s ease-in-out infinite alternate; }
body.running .music-notes span:nth-child(2) { animation-delay: 0.12s; }
body.running .music-notes span:nth-child(3) { animation-delay: 0.24s; }
@keyframes bounce { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-9px) rotate(7deg); } }
@media (max-width: 820px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .crumb { align-items: flex-start; flex-direction: column; }
  .tip-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  main { width: min(100% - 20px, 1120px); }
  .preset-row .pill { width: 100%; }
  .primary, .secondary.small { flex: 1; }
  .actions .primary, .actions .secondary { width: 100%; }
  .tip-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width:640px){.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}}
