:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --card: #fffcf5;
  --ink: #172f28;
  --muted: #506459;
  --forest: #102e27;
  --pine: #235a46;
  --gold: #d4b679;
  --line: #ded8c9;
  --red: #872c35;
  --radius: 1.25rem;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
a { color: #225a46; text-underline-offset: .22em; }
:focus-visible { outline: .18rem solid #aa6a17; outline-offset: .2rem; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 8vw, 5.2rem); margin: 0 0 .65rem; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.12rem); margin: 0 0 .55rem; }
h3, p { margin: 0 0 .5rem; }
small, .lede, .empty { color: var(--muted); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.shell, .header-inner, .nav-inner { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }
main.shell { min-height: calc(100svh - 13rem); padding-block: clamp(1rem, 4vw, 2rem) 2.75rem; }
.site-header { background: var(--forest); color: var(--card); }
.header-inner, .header-actions, .actions, .badges, .gift-meta, .footer-inner, .person-head {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.header-inner { justify-content: space-between; min-height: 4.25rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-family: Georgia, serif; font-size: clamp(1rem, 3.9vw, 1.35rem); }
.quiet { background: transparent; border: 1px solid #ffffff43; color: var(--card); padding: .5rem .7rem; border-radius: .7rem; min-height: 44px; font: inherit; cursor: pointer; }
.snow-toggle { min-width: 44px; }
.snow-toggle[aria-pressed=true] { background: #e7c98d; color: var(--forest); }
.nav { background: #15382e; border-top: 1px solid #ffffff20; }
.nav-inner { display: flex; gap: .4rem; overflow: auto; padding-block: .4rem; }
.nav a { flex: none; padding: .6rem .85rem; border-radius: .6rem; color: #f4eddd; text-decoration: none; }
.nav a[aria-current=page] { background: #e9d3a5; color: var(--forest); font-weight: 700; }
.skip { position: absolute; z-index: 3; left: .75rem; top: -5rem; background: var(--card); padding: .7rem; }
.skip:focus { top: .6rem; }
.card, .hero { border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.card { background: var(--card); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.6rem); box-shadow: 0 8px 26px #27352908; }
.hero { display: grid; grid-template-columns: 1fr; background: var(--forest); color: #fff5df; position: relative; overflow: hidden; isolation: isolate; min-height: 20rem; }
.hero-copy { padding: clamp(1.5rem, 5vw, 3.4rem); z-index: 1; }
.hero-art { width: min(64%, 540px); height: auto; position: absolute; right: -8%; bottom: -10%; opacity: .48; pointer-events: none; }
.hero-greeting { font-size: 1.12rem; }
.hero-dates { color: #e6d7b9; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 750; color: #526d5c; margin-bottom: .65rem; }
.hero .eyebrow { color: #edd39e; }
.countdown { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #d4b6797f; color: #f3d9a4; padding: .38rem .75rem; border-radius: .65rem; margin-top: .65rem; }
.countdown strong { font-size: 1.4rem; }
.overview-grid, .people-grid, .day-grid, .count-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .95rem; margin-block: .95rem; }
.row, .meal, .gift, .check-row { padding: .9rem 0; border-top: 1px solid var(--line); }
.row:first-of-type, .meal:first-of-type { margin-top: .7rem; }
.row > :last-child, .gift > :last-child { margin-bottom: 0; }
.empty { margin: .7rem 0; }
.page-heading { margin: .5rem 0 1.35rem; }
.page-heading h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-block: 1.6rem .8rem; }
.text-link { display: inline-block; font-weight: 700; padding-block: .6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .58rem 1rem; border: 1px solid transparent; border-radius: .68rem; font: inherit; font-weight: 680; text-decoration: none; background: var(--pine); color: #fff; cursor: pointer; text-align: center; }
.button:hover { background: #163e31; }
.button.secondary { background: #eeeee4; color: var(--ink); border-color: #c9d1c4; }
.button.secondary:hover { background: #dee7dc; }
.button.danger { background: var(--red); }
.button.small { padding-inline: .7rem; font-size: .91rem; }
.stack, .stack > div, .filters label { display: grid; gap: .4rem; }
.stack { gap: .85rem; margin-block: 1rem .55rem; }
.stack > .button { justify-self: start; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; max-width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: #fffefa; border: 1px solid #aebbad; border-radius: .65rem; padding: .56rem .67rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--pine); width: 1.15rem; height: 1.15rem; vertical-align: middle; }
textarea { min-height: 7rem; resize: vertical; }
label { font-weight: 650; }
.helptext { color: var(--muted); font-size: .9rem; }
.errorlist, .error, .message.error { color: var(--red); }
.message, .archive-note { border: 1px solid #c6d2c3; background: #e8f0e6; border-radius: .7rem; padding: .6rem .9rem; margin-bottom: .85rem; }
.archive-note, .message.warning { background: #fff0d4; border-color: #d8bb88; }
.filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: end; }
.filters label { flex: 1 1 9rem; }
.person-head { margin-bottom: .8rem; }
.person-head h2 { margin-bottom: 0; }
.initial { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #e5eee4; font: 1.45rem Georgia, serif; }
.badge { display: inline-flex; border-radius: 20rem; padding: .2rem .57rem; margin-bottom: .3rem; background: #e6efde; color: #234d36; font-size: .82rem; font-weight: 680; }
.badge.neutral { background: #f2e7d0; color: #58462c; }
.gift-image { display: block; width: 100%; max-height: 15rem; object-fit: contain; border-radius: .7rem; background: #eeeee5; margin-bottom: .65rem; }
.available, .reserved { font-size: .93rem; margin-top: .6rem; }
.available { color: #3d614b; }
.reserved { color: #6a4418; }
.plain-list { list-style: none; padding: 0; }
.done { text-decoration: line-through; color: var(--muted); }
.narrow { max-width: 44rem; margin-inline: auto; }
.narrow h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.login { display: grid; padding: 0; overflow: hidden; max-width: 60rem; margin: clamp(0rem, 4vw, 2rem) auto; }
.login-art { background: #102e27; overflow: hidden; max-height: 11rem; }
.login-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; display: block; }
.login-content { padding: clamp(1.25rem, 4vw, 3rem); }
.login h1 { font-size: clamp(2.4rem, 6vw, 4.35rem); }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-inner { justify-content: space-between; padding-block: 1rem; }
.footer nav { display: flex; gap: .75rem; }
.snowfield { display: none; position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.snowing .snowfield { display: block; }
.snowfield::before, .snowfield::after { content: ''; position: absolute; inset: -100% 0 0; background: radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0 / 67px 73px; opacity: .55; animation: snowfall 25s linear infinite; }
.snowfield::after { background-size: 111px 123px; opacity: .65; animation-duration: 39s; }
@keyframes snowfall { to { transform: translateY(40vh); } }
@media (min-width: 42rem) {
  .overview-grid, .people-grid, .day-grid, .count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { opacity: 1; right: 0; bottom: -4%; }
  .login { grid-template-columns: 43% 1fr; }
  .login-art { max-height: none; }
}
@media (min-width: 65rem) { .people-grid, .day-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .snowing .snowfield { display: none; } }
@media (max-width: 24rem) { .header-actions { gap: .3rem; } .brand { gap: .3rem; } .brand img { width: 29px; } }
