:root {
  color-scheme: light;
  --paper: #faf7f1;
  --ink: #262031;
  --muted: #554d60;
  --plum: #59317d;
  --line: #dcd0e4;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--plum); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #66578d; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 2; left: 1rem; top: 1rem; padding: .75rem; background: white; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 850; font-size: 1.35rem; text-decoration: none; min-height: 44px; }
.brand img { border-radius: .75rem; }
.language-choice { margin-inline-start: auto; }
select { font: inherit; font-size: .85rem; color: var(--plum); min-height: 44px; max-width: 8rem; border: 1px solid var(--line); border-radius: .65rem; background: white; padding-inline: .45rem; }
.header-link { font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; min-height: 44px; }
.hero { display: grid; gap: 1.5rem; padding-block: 1.5rem 2.5rem; align-items: center; }
h1, h2, p { margin: 0; }
h1, h2 { letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 9vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-copy > p, .feature-copy > p:last-child { color: var(--muted); margin-top: .8rem; max-width: 48ch; }
.hero-copy > .subhead { color: var(--plum); font-weight: 750; font-size: clamp(1.05rem, 2.4vw, 1.47rem); }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--plum); border-radius: .8rem; text-decoration: none; font-weight: 750; text-align: center; }
.primary { background: var(--plum); color: white; }
.secondary { background: white; }
.button:hover { box-shadow: 0 0 0 2px var(--plum); }
.feature { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.1rem, 4vw, 3rem); border-radius: 1.4rem; background: #f0e8f5; margin-block-end: 1.25rem; scroll-margin-top: 1rem; }
.friends { background: #f5ebdf; }
.planner { background: #e9ede2; }
.section-label { color: var(--plum); font-size: .82rem; font-weight: 800; margin-bottom: .5rem; }
.install { display: grid; gap: 1.25rem; border-block-start: 1px solid var(--line); padding-block: 2rem; margin-block-start: 2.5rem; }
.install h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin-bottom: .6rem; }
.install p, .install ol { color: var(--muted); }
.note { margin-top: .6rem; }
summary { cursor: pointer; padding-block: .7rem; font-weight: 700; min-height: 44px; }
details + details { border-top: 1px solid var(--line); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
@media (min-width: 48rem) {
  .wrap { width: min(100% - 4rem, 72rem); }
  .hero { grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4.5rem); padding-block: 2.25rem 3.5rem; }
  .feature, .install { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
  .family-calendar { grid-area: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.hero-copy > .hero-plan { color: var(--ink); font-weight: 750; }
.story-visual, .family-calendar { min-width: 0; }
.story-frame { background: #eee1f6; border: 1px solid var(--line); border-radius: 1.05rem; overflow: hidden; }
.story-photo { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.story-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: .65rem; }
.story-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: .7rem; overflow-wrap: anywhere; }
.story-label { font-size: .875rem; font-weight: 700; color: var(--plum); }
.story-title { margin-top: .15rem; font-weight: 800; line-height: 1.25; }
.story-card ul { margin: .4rem 0 0; padding: .45rem 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.story-card li + li { margin-top: .2rem; }
.story-arrow { color: var(--plum); font-size: 1.35rem; font-weight: 800; justify-self: center; line-height: 1; transform: rotate(90deg); }
.story-visual figcaption, .family-calendar figcaption { margin-top: .45rem; color: var(--muted); font-size: .875rem; }
.family-flow-image { width: 100%; height: auto; border-radius: .85rem; }
.family-calendar > .story-card { margin-top: .5rem; }
@media (min-width: 34rem) {
  .story-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .story-arrow { align-self: center; transform: none; }
}
