:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #586476;
  --paper: #fff8e7;
  --card: #ffffff;
  --line: #eadfc7;
  --blue: #1d70f5;
  --sky: #62c8ff;
  --sand: #ffe7a8;
  --orange: #f97316;
  --green: #18a46b;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(44, 62, 80, 0.16);
}
* { 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 top left, rgba(255, 209, 102, .58), transparent 27rem),
    radial-gradient(circle at bottom right, rgba(98, 200, 255, .28), transparent 30rem),
    linear-gradient(135deg, #fff8e7 0%, #e9f8ff 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,.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}
.hero { padding: 24px 0 36px; }
.crumb { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.crumb a { color: var(--ink); text-decoration: none; font-weight: 900; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 470px); gap: 28px; align-items: center; }
.eyebrow { color: #9a4f00; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
h1 { font-size: clamp(2.35rem, 7vw, 5.1rem); line-height: .95; margin: 0 0 18px; letter-spacing: -.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,.88); color: var(--ink); padding: 11px 14px; border-radius: 999px; font-weight: 900; box-shadow: 0 8px 18px rgba(31,41,55,.06); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.custom-panel { margin-top: 18px; }
.custom-panel label { display: block; margin-bottom: 8px; font-weight: 950; }
.custom-row span { color: var(--muted); font-weight: 850; }
input { width: 96px; border: 2px solid var(--line); border-radius: 14px; padding: 12px 11px; font: inherit; font-weight: 850; color: var(--ink); background: #fff; }
.timer-card, .info-card, .tips, .faq { background: rgba(255,255,255,.93); border: 1px solid rgba(234,223,199,.98); border-radius: 30px; box-shadow: var(--shadow); }
.timer-card { padding: clamp(20px, 4vw, 34px); text-align: center; }
.sun-card { position: relative; overflow: hidden; min-height: 230px; border-radius: 30px; background: linear-gradient(180deg, #dff6ff 0%, #fff0bd 100%); border: 4px solid #fff; box-shadow: inset 0 0 0 1px rgba(23,32,51,.08); margin-bottom: 18px; }
.sun-fill { position: absolute; inset: auto 0 0 0; height: 100%; transform-origin: bottom; background: linear-gradient(180deg, rgba(29,112,245,.82) 0%, rgba(98,200,255,.9) 48%, rgba(255,218,121,.98) 100%); transition: transform .45s ease, background .35s ease; }
.sun-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4rem, 13vw, 7rem); filter: drop-shadow(0 12px 18px rgba(23,32,51,.18)); }
.lotion { position: absolute; right: 20px; bottom: 18px; background: #fff; border: 3px solid #172033; color: #17427b; border-radius: 18px 18px 10px 10px; padding: 14px 12px; font-weight: 1000; box-shadow: 0 12px 24px rgba(23,32,51,.14); }
.time { font-size: clamp(3rem, 11vw, 5.15rem); line-height: 1; font-weight: 950; letter-spacing: -.08em; margin-top: 2px; }
.timer-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 12px 0 8px; }
.timer-card p { color: var(--muted); line-height: 1.5; margin: 0 auto 16px; max-width: 38ch; }
.prompt-box { background: #fff5d6; border: 2px dashed #e6a200; border-radius: 18px; padding: 14px; margin: 16px 0 20px; font-size: 1.05rem; font-weight: 950; }
.primary, .secondary { border-radius: 16px; padding: 13px 18px; font-weight: 950; }
.primary { background: var(--green); color: white; min-width: 160px; box-shadow: 0 12px 24px rgba(24,164,107,.26); }
.secondary { background: #edf7ff; color: #17427b; }
.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); }
.highlight { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,214,.96)); }
h2 { letter-spacing: -.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: #f5fbff; border: 1px solid #dceeff; border-radius: 18px; padding: 16px; display: grid; gap: 8px; }
.tip-grid strong { font-size: 1.2rem; }
.tip-grid span { color: var(--muted); line-height: 1.45; }
.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 .sun-fill { background: linear-gradient(180deg, #60a5fa 0%, #38bdf8 52%, #fde68a 100%); }
body.final-warning .sun-fill { background: linear-gradient(180deg, #fdba74 0%, #fb923c 56%, #ef4444 100%); }
body.done .sun-fill { background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 60%, #18a46b 100%); }
@media (max-width: 820px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .crumb { align-items: flex-start; flex-direction: column; }
  .tip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  main { width: min(100% - 22px, 1120px); }
  .site-nav { border-radius: 18px; }
  .sun-card { min-height: 205px; }
  .actions, .custom-row { align-items: stretch; }
  .primary, .secondary { flex: 1 1 auto; }
}
