:root {
  --ink: #173f35;
  --ink-soft: #426158;
  --paper: #f5f0e3;
  --cream: #fffaf0;
  --yolk: #f3ad36;
  --yolk-dark: #cc781a;
  --coral: #de694d;
  --sage: #98ad92;
  --line: rgba(23, 63, 53, 0.16);
  --shadow: 0 24px 60px rgba(45, 49, 35, 0.1);
  --radius: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(243, 173, 54, 0.2), transparent 30rem),
    radial-gradient(circle at 90% 16%, rgba(152, 173, 146, 0.18), transparent 26rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.paper-noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .34; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.topbar, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 36px; height: 42px; }
.brand-mark svg { width: 100%; fill: var(--yolk); stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,250,240,.7); cursor: pointer; transition: .2s ease; }
.icon-button:hover { background: var(--cream); transform: rotate(8deg); box-shadow: 0 8px 22px rgba(23,63,53,.1); }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero { min-height: 500px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(32px, 8vw, 120px); padding: 60px 5% 82px; position: relative; }
.hero::before { content: ""; position: absolute; left: -7vw; right: -7vw; top: 14px; bottom: 20px; border: 1px solid rgba(23,63,53,.08); border-radius: 50% 50% 42% 58% / 46% 42% 58% 54%; pointer-events: none; transform: rotate(-1.5deg); }
.eyebrow, .mini-label { margin: 0 0 14px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2 { font-family: "Iowan Old Style", Palatino, Georgia, serif; }
h1 { max-width: 670px; margin: 0; font-size: clamp(54px, 8vw, 102px); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
h1 em { color: var(--yolk-dark); font-style: italic; white-space: nowrap; }
.lead { max-width: 630px; margin: 30px 0 24px; color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.live-time { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,240,.56); color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 650; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #57a66c; box-shadow: 0 0 0 0 rgba(87,166,108,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(87,166,108,0); } }
.progress-shell { width: min(100%, 330px); aspect-ratio: 1; justify-self: center; position: relative; display: grid; place-items: center; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.progress-ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: rgba(23,63,53,.1); }
.ring-fill { stroke: var(--yolk); stroke-linecap: round; stroke-dasharray: 653.45; stroke-dashoffset: 653.45; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 6px 6px rgba(204,120,26,.16)); }
.ring-center { position: absolute; inset: 19%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: rgba(255,250,240,.72); box-shadow: inset 0 0 50px rgba(255,255,255,.75); backdrop-filter: blur(5px); }
.ring-center span { color: var(--ink-soft); }
.ring-kicker { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ring-center strong { font-family: "Iowan Old Style", Palatino, serif; font-size: 76px; font-weight: 400; line-height: .9; letter-spacing: -.07em; }
#countdownUnit { margin-top: 5px; font-family: "Iowan Old Style", Palatino, serif; font-style: italic; font-size: 20px; }
.ring-center small { margin-top: 8px; color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.egg-orbit { position: absolute; top: 4px; left: 50%; width: 20px; height: 20px; display: grid; place-items: center; color: var(--coral); transform-origin: 0 161px; animation: orbit 14s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.next-action { position: relative; z-index: 2; display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 26px; margin-top: -20px; padding: 24px 30px; color: #fff9eb; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.next-action::after { content: ""; position: absolute; width: 230px; height: 230px; right: 10%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }
.action-date { width: 72px; height: 76px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 17px; }
.action-date span { color: #dbdbb8; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.action-date strong { font-family: "Iowan Old Style", Palatino, serif; font-size: 36px; line-height: 1; }
.action-copy { position: relative; z-index: 1; }
.action-copy .mini-label { color: #e4b66b; margin-bottom: 5px; }
.action-copy h2 { margin: 0 0 5px; font-size: 25px; font-weight: 500; }
.action-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.action-countdown { position: relative; z-index: 1; padding: 8px 13px; border-radius: 99px; background: rgba(255,255,255,.1); color: #f3d8a5; font-size: 12px; font-weight: 700; white-space: nowrap; }
.section { padding-top: 92px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 36px; }
.section-heading h2, .card-heading h2, .care-card h2 { margin: 0; font-size: clamp(36px, 5vw, 55px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.section-heading > p { max-width: 370px; margin: 0 0 3px; color: var(--ink-soft); line-height: 1.6; }
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.milestone { min-height: 265px; position: relative; padding: 26px 23px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,250,240,.45); overflow: hidden; transition: transform .2s, background .2s; }
.milestone:hover { transform: translateY(-4px); background: var(--cream); }
.milestone.current { color: #fff9eb; background: var(--coral); border-color: var(--coral); box-shadow: 0 18px 40px rgba(222,105,77,.2); }
.milestone.done { opacity: .62; }
.milestone.optional.hidden { display: none; }
.milestone-day { display: inline-block; margin-bottom: 35px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.milestone-icon { position: absolute; right: 18px; top: 19px; font-size: 27px; }
.milestone h3 { margin: 0 0 10px; font-family: "Iowan Old Style", Palatino, serif; font-size: 28px; font-weight: 500; line-height: 1.05; }
.milestone p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.milestone.current p { color: rgba(255,255,255,.8); }
.milestone time { display: block; margin-top: 20px; font-size: 12px; font-weight: 750; }
.calendar-section { padding-bottom: 16px; }
.compact { align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 15px; color: var(--ink-soft); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.legend-dot.past { background: var(--sage); }.legend-dot.today { background: var(--coral); }.legend-dot.hatch { background: var(--yolk); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.calendar-day { min-height: 112px; position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,250,240,.38); }
.calendar-day.past { background: rgba(152,173,146,.11); }
.calendar-day.current { color: white; background: var(--coral); border-color: var(--coral); box-shadow: 0 12px 28px rgba(222,105,77,.2); transform: translateY(-3px); }
.calendar-day.lockdown { border-color: var(--yolk-dark); }
.calendar-day.hatch { background: var(--yolk); border-color: var(--yolk); }
.calendar-day .day-index { font-family: "Iowan Old Style", Palatino, serif; font-size: 29px; line-height: 1; }
.calendar-day .day-date { float: right; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.calendar-day.current .day-date { color: rgba(255,255,255,.72); }
.calendar-day .day-note { position: absolute; left: 14px; bottom: 13px; max-width: calc(100% - 28px); color: var(--ink-soft); font-size: 10px; line-height: 1.3; font-weight: 650; }
.calendar-day.current .day-note { color: rgba(255,255,255,.82); }
.two-column { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; padding-bottom: 82px; }
.egg-card, .care-card { padding: 32px; border-radius: var(--radius); background: var(--cream); box-shadow: 0 12px 36px rgba(45,49,35,.06); }
.care-card { color: #fff9eb; background: var(--ink); }
.card-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.card-heading h2, .care-card h2 { font-size: 38px; }
.card-intro { margin: 13px 0 26px; color: var(--ink-soft); font-size: 14px; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--coral); font-size: 11px; font-weight: 750; cursor: pointer; }
.egg-tray { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #e9e1cf; box-shadow: inset 0 3px 12px rgba(75,61,38,.1); }
.egg { aspect-ratio: .76; position: relative; border: 0; border-radius: 50% 50% 47% 47% / 58% 58% 42% 42%; background: #fff8e7; box-shadow: inset -4px -5px 8px rgba(118,92,51,.12), 0 4px 5px rgba(81,66,44,.1); cursor: pointer; transition: transform .15s, filter .15s; }
.egg:hover { transform: translateY(-3px) rotate(-2deg); }
.egg::after { content: attr(data-number); position: absolute; inset: 0; display: grid; place-items: center; color: rgba(23,63,53,.55); font-size: 10px; font-weight: 800; }
.egg.watch { background: #f5cc74; }
.egg.removed { filter: grayscale(.7); opacity: .38; transform: scale(.88); }
.egg.removed::before { content: "×"; position: absolute; inset: -2px; display: grid; place-items: center; color: var(--coral); font-size: 28px; z-index: 1; }
.egg.hatched { border-radius: 45% 50% 48% 52%; background: var(--sage); }
.egg.hatched::before { content: "✓"; position: absolute; inset: -2px; display: grid; place-items: center; color: white; font-size: 20px; z-index: 1; }
.egg.hatched::after, .egg.removed::after { display: none; }
.egg-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 17px; color: var(--ink-soft); font-size: 10px; }
.egg-legend span { display: flex; align-items: center; gap: 6px; }
.egg-mini { width: 10px; height: 13px; display: block; border-radius: 50% 50% 45% 45% / 58% 58% 42% 42%; background: #fff; border: 1px solid var(--line); }
.egg-mini.watch { background: #f5cc74; }.egg-mini.removed { background: #aaa; opacity: .45; }.egg-mini.hatched { background: var(--sage); }
.care-card .eyebrow { color: #e4b66b; }
.care-list { margin: 27px 0 30px; padding: 0; list-style: none; }
.care-list li { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45; }
.care-list li::before { content: "✓"; flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(243,173,54,.15); color: #f3c77e; font-size: 11px; font-weight: 800; }
.temperature-note { display: flex; gap: 13px; align-items: center; padding: 17px; border-radius: 16px; background: rgba(255,255,255,.08); }
.temperature-note svg { width: 29px; flex: 0 0 auto; fill: none; stroke: #f3c77e; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.temperature-note span, .temperature-note strong { display: block; }
.temperature-note span { margin-bottom: 3px; color: rgba(255,255,255,.52); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.temperature-note strong { font-family: "Iowan Old Style", Palatino, serif; font-size: 17px; font-weight: 500; }
.source-note { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 35px; padding: 22px 25px; border-block: 1px solid var(--line); color: var(--ink-soft); }
.source-note span { color: var(--yolk-dark); }
.source-note p { margin: 0; font-size: 13px; line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 34px; color: var(--ink-soft); font-size: 10px; }
footer a { text-underline-offset: 3px; }
dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--cream); box-shadow: 0 35px 90px rgba(15,38,31,.32); }
dialog::backdrop { background: rgba(13,38,31,.5); backdrop-filter: blur(5px); }
dialog[open] { animation: dialog-in .24s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(15px) scale(.97); } }
#settingsForm { padding: 30px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.dialog-heading h2 { margin: 0; font-size: 41px; font-weight: 400; }
.close-button { border: 0; background: transparent; font-size: 28px; }
#settingsForm > label:not(.toggle-row) { display: grid; gap: 8px; margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
input[type="datetime-local"], input[type="number"] { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 15px; text-transform: none; }
input:focus { outline: 2px solid rgba(222,105,77,.25); border-color: var(--coral); }
.field-help { margin: 7px 0 4px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 13px; }.toggle-row small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
input[type="checkbox"] { width: 42px; height: 23px; appearance: none; position: relative; flex: 0 0 auto; border-radius: 99px; background: #c9c8bc; cursor: pointer; transition: .2s; }
input[type="checkbox"]::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .2s; }
input[type="checkbox"]:checked { background: var(--coral); }
input[type="checkbox"]:checked::after { transform: translateX(19px); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.primary-button, .secondary-button { padding: 12px 17px; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; }
.primary-button { border: 1px solid var(--ink); color: white; background: var(--ink); }
.secondary-button { border: 1px solid var(--line); background: transparent; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 20; padding: 11px 17px; border-radius: 99px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.reveal { opacity: 0; animation: reveal .65s ease-out forwards; }
.delay-1 { animation-delay: .12s; }.delay-2 { animation-delay: .22s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 48px; }
  .lead { margin-inline: auto; }.progress-shell { width: 275px; }.egg-orbit { transform-origin: 0 134px; }
  .milestones { grid-template-columns: repeat(2, 1fr); }.two-column { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }.egg-tray { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 580px) {
  .topbar, main, footer { width: min(100% - 24px, 1180px); }
  .topbar { padding-top: 18px; }.hero { min-height: auto; padding: 42px 0 72px; }.hero::before { left: -25vw; right: -25vw; }
  h1 { font-size: 55px; }.lead { font-size: 16px; }.progress-shell { width: 245px; }.egg-orbit { transform-origin: 0 119px; }
  .ring-center strong { font-size: 62px; }
  .next-action { grid-template-columns: 62px 1fr; gap: 16px; padding: 19px; }.action-date { width: 58px; height: 66px; }.action-countdown { display: none; }
  .action-copy h2 { font-size: 21px; }.action-copy p { font-size: 12px; }
  .section { padding-top: 70px; }.section-heading { display: block; }.section-heading > p { margin-top: 14px; }.section-heading.compact { display: block; }.legend { margin-top: 18px; }
  .milestones { grid-template-columns: 1fr; }.milestone { min-height: 210px; }.calendar-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }.calendar-day { min-height: 100px; padding: 11px; }.calendar-day .day-note { left: 11px; bottom: 10px; }
  .egg-card, .care-card { padding: 24px 19px; }.egg-tray { grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 15px; }.card-heading { align-items: flex-start; }.card-heading h2 { font-size: 32px; }
  footer { flex-direction: column; }.dialog-actions { flex-direction: column-reverse; }.dialog-actions button { width: 100%; }
}
