:root { color-scheme: light; --green: #174b3b; --red: #a92e3f; --ink: #18352d; --muted: #51665e; --line: #cbdad2; }
* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.6 "Segoe UI", sans-serif; background: #f3f8f5; color: var(--ink); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--red); }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.2rem max(5vw, calc((100vw - 1100px) / 2)); background: var(--green); }
.site-header a { color: white; font-weight: 600; }
.christmas { max-width: 1100px; padding: 3rem 1.5rem; margin: auto; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .875rem; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-family: Georgia, serif; font-size: clamp(2.5rem, 7vw, 4.5rem); margin: .6rem 0 1rem; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.3rem; }
.intro { font-size: 1.15rem; max-width: 650px; margin-bottom: 2rem; }
.panel, .gift { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; }
.panel { margin: 1.5rem 0; }
.sharing { border-top: 5px solid var(--green); }
.public-note { border-left: 5px solid var(--red); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; }
.section-heading h2 { margin: 0; }
.count, .muted { color: var(--muted); }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.gift { display: flex; flex-direction: column; align-items: flex-start; }
.gift-image { position: relative; width: 100%; height: 220px; margin-bottom: 1rem; border-radius: .65rem; background: #f7faf8; overflow: hidden; }
.gift-image img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; background: white; }
.gift-image-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; color: var(--muted); }
.gift-image-placeholder svg { width: 64px; height: 64px; }
.gift h2, .gift h3 { margin: 1rem 0 .5rem; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 0; }
.badge { background: #e3f0e8; color: #174b3b; border: 1px solid #bdd2c5; border-radius: 2rem; padding: .25rem .8rem; font-weight: 700; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.gift-actions, .purchase-form { margin-top: auto; padding-top: 1.5rem; }
input, textarea, button, .button { font: inherit; }
input, textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #80998b; background: white; color: var(--ink); border-radius: .4rem; margin-bottom: 1rem; }
textarea { resize: vertical; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
button, .button { display: inline-block; border: 1px solid var(--green); border-radius: .4rem; background: var(--green); color: white; padding: .65rem 1.1rem; cursor: pointer; font-weight: 600; text-decoration: none; }
button:hover, .button:hover { background: #0e382b; color: white; }
button:disabled { background: #e2e9e5; color: #42584b; border-color: #b7c9bd; cursor: default; }
.secondary { background: white; color: var(--green); }
.text-button { background: white; border-color: transparent; color: var(--red); text-decoration: underline; }
:focus-visible { outline: 3px solid #b84930; outline-offset: 3px; }
#share-link { flex: 1 1 100%; margin: 0; }
details { margin-top: 1.5rem; }
summary { cursor: pointer; font-weight: 600; }
details form { margin-top: 1.5rem; }
.editor { max-width: 720px; }
.kid-picker select { font: inherit; flex: 1 1 12rem; min-width: 0; padding: .7rem 2.5rem .7rem .85rem; border: 1px solid #80998b; border-radius: .4rem; color: var(--ink); appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23174b3b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .85rem center; }
.selected-list-title { margin: 2rem 0 1rem; font-size: 2rem; font-family: Georgia, serif; }
.empty { text-align: center; padding: 3rem 1rem; }
.notice { background: #e2f0e7; border: 1px solid #86a892; border-radius: .5rem; padding: 1rem; }
.validation-summary-valid { display: none; }
.validation-summary-errors { background: #fff0f0; color: #8e2434; padding: 1rem; border: 1px solid #b25362; }
footer { text-align: center; color: var(--muted); padding: 2rem 1rem; }
[hidden] { display: none !important; }
@media (max-width: 540px) { .christmas { padding: 2rem 1rem; } .section-heading { align-items: flex-start; flex-direction: column; } .panel, .gift { padding: 1.2rem; } }
