:root {
  color-scheme: light;
  --paper: #fcfaf5;
  --card: #fffefa;
  --ink: #332e2a;
  --muted: #655e54;
  --line: #e4dfd4;
  --rose: #a22f4c;
  --rose-dark: #81223c;
  --blush: #f7e5e5;
  --green: #3c5b49;
  --sage: #eaf0e3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 16px/1.55 var(--sans); -webkit-text-size-adjust: 100% }
button, input, textarea, select { font: inherit }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .62 }
a { color: var(--rose); text-underline-offset: 3px }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #637e9d; outline-offset: 3px }
main:focus { outline: none }
.skip { position: fixed; z-index: 50; top: 5px; left: 10px; transform: translateY(-160%); padding: 9px 15px; background: white }
.skip:focus { transform: translateY(0) }
#header { border-bottom: 1px solid var(--line); background: var(--card) }
.topbar { max-width: 1256px; min-height: 86px; padding: 12px clamp(22px,5vw,72px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 600 29px/1 var(--serif); letter-spacing: -1.5px; color: var(--ink); text-decoration: none; white-space: nowrap }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: #f7e5e6; border: 1px solid #edd3d7; border-radius: 15px 15px 17px 15px; transform: rotate(-4deg) }
.brand-mark .glyph { width: 29px; height: 29px; transform: rotate(4deg) }
.nav { display: flex; gap: 5px; align-items: center }
.nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; min-height: 45px; text-decoration: none; color: var(--muted); border-radius: 100px; font-size: 14px; font-weight: 650 }
.nav a[aria-current="page"] { color: var(--rose-dark); background: var(--blush) }
.nav a:hover, .plain:hover { color: var(--rose-dark); background: #f6eeea }
.icon, .glyph { width: 21px; height: 21px; display: inline-block; flex-shrink: 0; vertical-align: middle }
.nav .icon { width: 18px; height: 18px }
#main { max-width: 1256px; padding: clamp(26px, 4.2vw, 58px) clamp(22px,5vw,72px) 65px; margin: 0 auto }
.loading { color: var(--muted); margin: 8vh auto; text-align: center }
h1, h2, h3, p, figure { margin: 0 }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: pretty }
h1 { font-size: clamp(39px, 4.7vw, 64px) }
h2 { font-size: clamp(25px, 2.5vw, 33px) }
h3 { font-size: 23px }
p { text-wrap: pretty; overflow-wrap: anywhere }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.07fr 1fr; align-items: stretch; border: 1px solid #e8cec8; border-radius: 30px; overflow: hidden; background: #f8eae6 }
.hero-copy { align-self: center; padding: clamp(30px, 4.25vw, 64px) 0 clamp(30px, 4.25vw, 64px) clamp(27px, 4.3vw, 64px); position: relative; z-index: 1 }
.hero h1 { max-width: 550px; color: #392f2c; font-size: clamp(39px, 4.55vw, 65px); line-height: 1.06; letter-spacing: -.055em }
.date-line, .overline { display: flex; align-items: center; gap: 9px; color: #715349; font-weight: 700; font-size: 12px; letter-spacing: .10em; text-transform: uppercase }
.date-line { margin-bottom: 20px }
.date-line .icon { color: #98682e; width: 20px; height: 20px }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.hero-art { margin: 0; overflow: hidden; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 18px 18px 30px 4px }
.hero-art img { display: block; width: 100%; max-height: 365px; object-fit: contain; mix-blend-mode: multiply }
.botanical-caption { position: absolute; bottom: 13px; right: 25px; color: #71584c; font: italic 14px/1.2 var(--serif) }
.button, .plain { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 13px; background: transparent; font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none }
.primary { background: var(--rose); color: white; border-color: var(--rose) }
.primary:hover { background: var(--rose-dark); border-color: var(--rose-dark) }
.yes { min-width: 140px; min-height: 60px; font-size: 24px; border-radius: 15px; gap: 12px; box-shadow: 0 3px 0 #7c253b }
.yes .icon { width: 25px; height: 25px }
.secondary { border-color: #dbc5c7; background: var(--card); color: var(--rose-dark) }
.secondary:hover { background: #fff6f2; border-color: #bb929b }
.plain { color: var(--rose-dark); min-height: 42px; padding: 8px 12px }
.checked { color: #345b3d; border-color: #b9ceb1; background: #e8efdf; display: inline-flex; gap: 9px; align-items: center; padding: 12px 17px; border-radius: 13px; font-weight: 750 }
.dashboard { margin-top: 23px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.65vw, 36px); min-width: 0 }
.section-head, .row, .page-head, .toolbar, .footline { display: flex; align-items: center; justify-content: space-between; gap: 15px }
.heading-with-icon { display: flex; gap: 10px; align-items: center }
.heading-with-icon > .icon { color: var(--rose); width: 23px; height: 23px }
.section-head { margin-bottom: 19px; flex-wrap: wrap; row-gap: 6px }
.section-head .plain { margin-right: -8px }
.note-empty, .body-copy, .subtitle, .stage-copy { color: var(--muted); line-height: 1.6 }
.note-empty { margin-bottom: 17px; max-width: 42ch }
.stage-panel { background: #f1f4e9; border-color: #dce4d2 }
.stage-panel .heading-with-icon > .icon { color: var(--green) }
.stage-line { display: flex; gap: 12px; align-items: center }
.glyph-tile { display: inline-grid; flex: 0 0 auto; place-items: center; background: #fffaf0; width: 48px; height: 48px; border: 1px solid #dadcc9; border-radius: 15px }
.glyph-tile .glyph { width: 32px; height: 32px }
.stage-line strong { display: block; font-size: 17px }
.stage-line small, .small { font-size: 13px; color: var(--muted) }
.stage-copy { margin: 15px 0 8px }
.text-link { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; padding: 9px 0; text-decoration: none }
.text-link:hover { text-decoration: underline }
.text-link .icon { width: 16px; height: 16px }
.page-head { align-items: end; margin: 0 0 28px; flex-wrap: wrap }
.page-head h1 { margin: 0 0 8px; color: #43382f }
.subtitle { max-width: 62ch }
.list { display: grid; gap: 16px }
.entry-top { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.entry-title { display: flex; gap: 14px; align-items: center }
.calendar-tile { flex: 0 0 auto; width: 55px; background: #fcf0ef; border: 1px solid #ead6d4; border-radius: 13px; display: grid; text-align: center; padding: 5px 3px 6px; line-height: 1 }
.calendar-tile small { font: 750 10px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--rose-dark) }
.calendar-tile strong { font: 500 27px/1 var(--serif) }
.entry-title h2 { font-size: 25px }
.entry-title p { margin-top: 3px; font-size: 14px; color: var(--muted) }
.note-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px }
.entry .note-list { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line) }
.note { display: grid; gap: 5px; overflow-wrap: anywhere }
.note + .note { border-top: 1px dashed var(--line); padding-top: 12px }
.note time { color: var(--muted); font-weight: 600; font-size: 12px }
.note p { white-space: pre-wrap }
.tags { display: flex; gap: 6px; flex-wrap: wrap }
.tag { display: inline-flex; align-items: center; gap: 6px; background: #f6f1e7; color: #514b40; border-radius: 9px; padding: 3px 8px; font-size: 13px; font-weight: 650; overflow-wrap: anywhere }
.tag .glyph { width: 21px; height: 21px }
.note-list + .button { margin-top: 17px }
.empty-journal { text-align: center; padding: 40px 24px }
.empty-journal .glyph-tile { margin: 0 auto 15px; background: var(--blush); border-color: #e9d7d4; width: 60px; height: 60px }
.empty-journal p { color: var(--muted); margin: 10px auto 16px; max-width: 46ch }
.more-row { text-align: center; margin-top: 20px }
.care-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px }
.stage-summary { background: #eef2e5; border-color: #d7e1ce; margin-bottom: 20px }
.stage-summary .section-head { margin-bottom: 10px }
.stage-summary p { margin: 7px 0; max-width: 80ch }
.stage-summary strong { color: var(--green) }
.steps { padding: 0; list-style: none; display: grid; gap: 20px; margin: 20px 0 0 }
.steps li { display: flex; gap: 12px; align-items: flex-start }
.steps .glyph-tile { width: 40px; height: 40px; border-radius: 12px; border-color: var(--line) }
.steps .glyph { width: 25px; height: 25px }
.steps strong, .reading h2 { display: block }
.steps p { margin-top: 3px; color: var(--muted) }
.reading p { color: var(--muted); margin-top: 9px; max-width: 76ch }
.reading { display: grid; gap: 15px }
.family-tools { margin-top: 24px; display: flex; justify-content: flex-end }
.login-wrap { max-width: 1020px; margin: 10px auto }
.login { grid-template-columns: 1.05fr 1fr }
.login .hero-copy { padding: clamp(26px,4vw,55px) 12px clamp(26px,4vw,55px) clamp(26px,4vw,55px) }
.login h1 { font-size: clamp(40px,4.3vw,61px); max-width: 8.5em }
.login .subtitle { margin-top: 13px }
.login .hero-art img { max-height: 420px }
.login form { margin-top: 22px; display: grid; gap: 12px; max-width: 352px }
label.field { display: grid; gap: 6px; color: #4c423c; font-size: 14px; font-weight: 700 }
input:not([type=radio]):not([type=checkbox]), textarea, select { width: 100%; border: 1px solid #c9beb2; color: var(--ink); background: var(--card); border-radius: 11px; padding: 11px 13px; outline-offset: 2px; font-size: 16px; min-height: 46px }
textarea { resize: vertical; min-height: 95px; max-height: 45vh; line-height: 1.5 }
input[type=date] { min-width: 0; max-width: 100% }
.login form > .button { margin-top: 4px }
.error { color: #942f42; font-size: 14px; font-weight: 650 }
.error:empty { display: none }
#notice { z-index: 10; position: fixed; pointer-events: none; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: min(90vw, 480px); background: #374d3d; color: white; border-radius: 13px; padding: 12px 18px; box-shadow: 0 4px 18px #263b2a28; font-size: 15px; font-weight: 650 }
#notice:empty { display: none }
dialog { border: 1px solid var(--line); border-radius: 23px; padding: 0; color: var(--ink); background: var(--card); width: min(490px, calc(100vw - 28px)); max-height: min(90dvh, 780px); overflow-y: auto; box-shadow: 0 20px 75px #30282338 }
dialog::backdrop { background: #352b2868 }
.dialog-inner { padding: clamp(22px,4vw,31px) }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px }
.dialog-top h2 { margin-top: 4px }
.close { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: var(--paper) }
.close:hover { background: var(--blush) }
.dialog-form, .dialog-body { display: grid; gap: 17px }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0 }
legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 14px }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px }
.choice, .stage-choice { position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fbf8f0; border-radius: 12px; padding: 8px; gap: 4px; cursor: pointer; color: #4c453a; font-size: 13px; font-weight: 650 }
.choice { flex-direction: column; text-align: center; min-height: 66px }
.choice .glyph, .stage-choice .glyph { width: 28px; height: 28px }
.sr-only, .choice input, .stage-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.choice:has(:checked), .stage-choice:has(:checked) { color: var(--rose-dark); background: var(--blush); border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose) }
.choice:has(:focus-visible), .stage-choice:has(:focus-visible) { outline: 3px solid #637e9d; outline-offset: 2px }
.stage-choices { display: grid; gap: 7px }
.stage-choice { justify-content: flex-start; padding: 10px 13px; font-size: 15px; gap: 10px }
.stage-choice:has(:checked)::after { content: "✓"; margin-left: auto; font-weight: 800 }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px }
.past-result { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f7f6ee; display: grid; gap: 12px }
.past-result h3 { font-size: 22px }
@media (max-width: 800px) {
  .topbar { padding-inline: 22px }
  .nav { gap: 0 }
  .nav a { padding-inline: 10px }
  #main { padding-inline: 22px }
  .dashboard { gap: 14px }
  .hero-copy { padding-left: 30px }
}
@media (max-width: 620px) {
  .topbar { min-height: 64px; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 13px 10px 7px }
  .topbar:has(.nav) { padding-bottom: 8px }
  .brand { font-size: 26px }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px }
  .brand-mark .glyph { width: 25px; height: 25px }
  .nav { width: 100%; justify-content: center; gap: 3px }
  .nav a { min-height: 42px; gap: 5px; padding: 7px 10px; font-size: 13px }
  .nav .icon { width: 16px; height: 16px }
  #main { padding: 18px 14px 45px }
  .hero { grid-template-columns: 1fr; border-radius: 23px }
  .hero-copy { padding: 25px 23px 2px }
  .hero h1 { font-size: clamp(36px,9vw,49px); max-width: 11.4em }
  .date-line { margin-bottom: 10px; font-size: 10px }
  .hero-actions { margin-top: 17px }
  .yes { min-height: 51px; min-width: 113px; font-size: 22px }
  .hero-art { height: clamp(148px, 43vw, 230px); padding: 2px 15px 22px }
  .hero-art img { height: 100%; width: 100% }
  .botanical-caption { bottom: 8px; right: 16px; font-size: 12px }
  .dashboard, .care-grid { grid-template-columns: 1fr }
  .dashboard { margin-top: 14px }
  .panel { padding: 20px; border-radius: 18px }
  .page-head { margin: 8px 2px 20px }
  .page-head h1 { font-size: 39px }
  .entry-top { gap: 10px }
  .entry-title { gap: 9px }
  .entry-title h2 { font-size: 21px }
  .entry .plain { padding-inline: 5px }
  .calendar-tile { width: 43px }
  .login-wrap { margin: 0 }
  .login .hero-copy { padding: 24px 22px 4px }
  .login h1 { max-width: 11em }
  .login form { max-width: none; margin-top: 16px }
  .login .hero-art { height: clamp(130px,40vw,185px) }
}
@media (max-width: 355px) {
  .nav a { padding-inline: 6px }
  .choice-grid { grid-template-columns: repeat(2,1fr) }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .nav a, .choice, .stage-choice { transition: background .15s, border-color .15s }
  dialog[open] { animation: arrive .15s ease-out }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
}
.care-stage-detail { display: flex; align-items: center; justify-content: space-between; gap: 22px }
.lamp-figure { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 14px 18px; background: #fbfbf2; border: 1px solid #d4decb; border-radius: 16px }
.lamp-sketch { position: relative; width: 54px; height: 80px; display: grid; justify-items: center; align-content: space-between }
.lamp-bar { width: 44px; height: 7px; background: #829a79; border: 1px solid #56724e; border-bottom: 2px solid #e6bb64; border-radius: 5px }
.lamp-gap { color: #8a6e35; font: 29px/1 var(--serif) }
.lamp-target .glyph { width: 30px; height: 30px }
.lamp-figure figcaption { display: grid; color: var(--green); font-size: 13px }
.lamp-figure figcaption strong { font: 500 24px/1.3 var(--serif) }
.timeline { margin-top: 20px }
.timeline > p { margin-top: 9px }
.growth-path { padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; list-style: none }
.growth-path li { min-width: 0 }
.growth-path li strong { display: block; margin: 9px 0 3px }
.growth-path p { color: var(--muted); font-size: 15px }
@media (max-width: 650px) {
  .care-stage-detail { display: grid; gap: 8px }
  .lamp-figure { justify-self: start; padding: 8px 16px }
  .growth-path { grid-template-columns: repeat(2,1fr); gap: 14px }
}
