/* Santa's Merry Mailbox: shared styles */
:root {
  --cream: #FBF1DF;
  --paper: #FFF8EC;
  --sage: #DCE6D4;
  --green: #1F4D36;
  --red: #9B1B1F;
  --red-bright: #C8262C;
  --red-dark: #7A1418;
  --ink: #2B2118;
  --muted: #3D3226;
  --line: #D9C8A6;
  --serif: 'EB Garamond', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --logo: 'Berkshire Swash', Georgia, serif;
  --script: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--red-dark); }
a:hover { color: #4F0D10; }
h1, h2, h3, p { margin: 0; }
.display { font-family: var(--display); font-style: italic; font-weight: 600; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 5%; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 1rem; }
.eyebrow { font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; color: var(--green); font-weight: 600; }

/* Banner and painted header */
.banner { background: var(--red); color: var(--paper); text-align: center; padding: 10px 5%; font-size: 1rem; font-weight: 600; letter-spacing: 1px; }
.painted { position: relative; background: var(--cream) url(snow-landscape.jpg) center top / cover no-repeat; }
.painted::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 36px; background: url(lights.svg) repeat-x; z-index: 1; pointer-events: none; }
.strip { padding: 44px 5% 16px 5%; border-bottom: 3px solid var(--green); background-color: #C9CDE8; }
.lockup { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; text-decoration: none; }
.lockup img { width: 140px; height: 140px; display: block; flex: none; }
.lockup-text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lockup-name { font-family: var(--logo); font-size: 3.5rem; line-height: 1; color: var(--red); text-align: center; }
.lockup-name span { display: inline-block; white-space: nowrap; }
.ribbon { background: var(--green); color: var(--paper); font-weight: 600; font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase; padding: 5px 18px; border-radius: 2px; }
.strip .lockup img { width: 84px; height: 84px; }
.strip .lockup-name { font-size: 2.5rem; }

/* Hero: everything inside scales with the screen width so it always fills the painting's clear middle */
.hero { aspect-ratio: 1426 / 1103; padding: 0 5%; }
.hero-inner { position: relative; font-size: clamp(17px, 1.5vw, 34px); max-width: 43em; margin: 0 auto; padding: 2.6em 0 2.5em 0; display: flex; flex-direction: column; gap: 1.6em; }
.hero .lockup { gap: 0.5em 1.15em; }
.hero .lockup img { width: 7.3em; height: 7.3em; }
.hero .lockup-text { gap: 0.4em; }
.hero .lockup-name { font-size: 2.9em; }
.hero .ribbon { font-size: 0.75em; padding: 0.35em 1.25em; }
.hero-cols { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.7em 2.3em; }
.hero-copy { flex: 1 1 19em; display: flex; flex-direction: column; align-items: flex-start; gap: 0.85em; }
.hero .eyebrow { font-size: 0.83em; }
.hero h1 { font-size: 2.75em; line-height: 1.06; color: var(--green); text-wrap: balance; }
.hero h1 span { color: var(--red); }
.hero-copy p.pitch { font-size: 1.08em; line-height: 1.45; text-wrap: pretty; }
.hero .btn { font-size: 1.125em; min-height: 2.8em; padding: 0 1.6em; border-radius: 0.5em; }
.hero .muted { font-size: 0.83em; }
.sheet { flex: 1 1 15.5em; max-width: 19.5em; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1.5em 1.6em; box-shadow: 0 10px 26px rgba(43,33,24,0.22); transform: rotate(2deg); display: flex; flex-direction: column; gap: 0.5em; font-size: 0.875em; line-height: 1.5; }
.sheet-head { text-align: center; font-size: 0.76em; letter-spacing: 3px; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: 0.6em; }
.sheet-dear { font-size: 1.15em; font-weight: 500; }
.signature { font-family: var(--script); font-size: 3.05em; line-height: 1; color: var(--red-dark); }

.points { list-style: none; margin: 0.4em 0 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6em 0.9em; }
.points li { flex: 1 1 11em; text-align: center; background: rgba(255,248,236,0.88); border: 1px solid var(--green); border-radius: 0.4em; padding: 0.6em 0.8em; font-size: 0.9em; font-weight: 600; color: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px; background: var(--red-bright); color: #fff; border: 0; border-radius: 10px; text-decoration: none; font: inherit; font-weight: 600; font-size: 1.35rem; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 0 var(--red-dark); cursor: pointer; }
.btn:hover { color: #fff; background: #B32025; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 2px solid var(--green); border-radius: 6px; background: var(--paper); color: var(--green); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { color: var(--green); background: var(--sage); }

/* Sections */
section.pad { position: relative; padding: 84px 0 78px 0; }
.band-flakes { background: var(--cream) url(flakes.svg); }
.band-green { background: var(--green) url(sparkle.svg); color: var(--paper); }
.band-red { background: var(--red) url(sparkle.svg); color: var(--paper); }
.band-green::before, .band-red::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 34px; background: url(snowcap.svg) repeat-x; background-size: 600px 34px; pointer-events: none; }
.band-scene { background: var(--cream) url(snow-landscape.jpg) center 46% / cover no-repeat; }
.band-scene.painted::before { top: 0; }
.holly-rule { display: flex; align-items: center; justify-content: center; gap: 12px; }
.holly-rule::before, .holly-rule::after { content: ""; height: 1px; width: min(170px, 22vw); background: var(--green); }
.band-red .holly-rule::before, .band-red .holly-rule::after { background: var(--paper); }
h2.title { font-size: 2.4rem; line-height: 1.15; color: var(--green); text-wrap: balance; }
.band-green h2.title, .band-red h2.title { color: var(--paper); }
.cols { display: flex; flex-wrap: wrap; gap: 28px; }
.cols > * { flex: 1 1 260px; }
.step { background: #1A4230; border: 1px solid rgba(255,248,236,0.4); border-radius: 10px; padding: 26px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.ornament { position: relative; width: 74px; height: 74px; margin-top: 12px; border-radius: 50%; background: var(--red-bright); box-shadow: inset -8px -10px 0 rgba(0,0,0,0.14), inset 6px 8px 0 rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 2.2rem; color: var(--paper); }
.ornament::before { content: ""; position: absolute; top: -11px; left: 50%; width: 22px; height: 13px; margin-left: -11px; border-radius: 3px 3px 0 0; background: #E3B341; }
.step:nth-child(2) .ornament { background: #E3B341; color: var(--green); }
.step:nth-child(2) .ornament::before { background: var(--paper); }
h3 { font-size: 1.35rem; font-weight: 600; }
.cards { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.card { position: relative; flex: 1 1 300px; max-width: 460px; background: var(--paper); border: 2px solid var(--green); border-radius: 8px; padding: 34px 30px 30px 30px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 24px rgba(43,33,24,0.16); }
.card::before { content: ""; position: absolute; top: -16px; left: 50%; width: 76px; height: 30px; margin-left: -38px; background: url(holly.svg) no-repeat; }
.card h3 { font-size: 1.5rem; color: var(--green); }
.price { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 2.6rem; line-height: 1.1; color: var(--red); }
.family { font-weight: 600; color: var(--green); }
.remember { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; }
.remember img { width: 190px; height: 190px; flex: none; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,248,236,0.25); }
.remember .stack { flex: 1 1 340px; max-width: 620px; }
.faq { display: flex; flex-direction: column; gap: 18px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px 20px 62px; background-image: url(holly.svg); background-repeat: no-repeat; background-position: 12px 22px; background-size: 40px auto; }
.faq h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--green); }
.closing { position: relative; background: var(--cream) url(snow-landscape.jpg) center bottom / cover no-repeat; padding: 70px 5% 190px 5%; text-align: center; }
.closing .stack { align-items: center; gap: 18px; }
footer { position: relative; background: var(--green) url(sparkle.svg); color: var(--paper); padding: 46px 0 30px 0; font-size: 1rem; }
footer::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 36px; background: url(lights.svg) repeat-x; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--paper); }
footer .fine { flex: 1 1 100%; font-size: 0.95rem; }

/* Forms */
main.form { max-width: 680px; margin: 0 auto; padding: 40px 5% 80px 5%; display: flex; flex-direction: column; gap: 26px; }
main.form h1 { font-size: 2.5rem; line-height: 1.12; color: var(--green); text-wrap: balance; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { font-size: 1rem; color: var(--muted); }
.field input, .field textarea { font: inherit; min-height: 48px; padding: 8px 12px; border: 1px solid var(--green); border-radius: 6px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid #E3B341; outline-offset: 1px; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.row .grow { flex: 2 1 240px; }
.row .small { flex: 1 1 100px; }
.child { display: flex; flex-direction: column; gap: 22px; }
.child + .child { border-top: 3px solid var(--green); padding-top: 26px; }
.child-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.child-head h2 { font-size: 1.5rem; color: var(--green); }
.optional-label { border-top: 1px solid var(--line); padding-top: 18px; font-size: 1.05rem; color: var(--green); font-weight: 600; }
.box-dashed { border: 2px dashed var(--green); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.box-sage { background: var(--sage); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.error { color: var(--red-dark); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red-dark); text-decoration: underline; cursor: pointer; min-height: 44px; }

@media (max-width: 700px) {
  .hero h1 { font-size: 2.35em; }
  .hero .lockup-name { font-size: 2.45em; }
  .hero .lockup img { width: 6.5em; height: 6.5em; }
  .hero .btn { width: 100%; padding: 0 1em; }
  .sheet { transform: rotate(1deg); }
  .btn { font-size: 1.15rem; padding: 0 22px; }
  .strip .lockup-name { font-size: 2.2rem; }
}
