/* Santa's Mailer. Palette and type carried over from the 2013 site (cranberry red, white script
   wordmark, black nav) and brought up to date. */
:root {
  --red: #b3122e;
  --red-deep: #6e0a1c;
  --red-ink: #8d0f25;
  --green: #1d5b3a;
  --green-deep: #123b26;
  --gold: #c9a24a;
  --gold-soft: #efe0b5;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2a1d17;
  --muted: #6d5c52;
  --line: #eadfcd;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(60, 10, 20, .45);
  --script: 'Great Vibes', cursive;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.kicker { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; box-shadow: 0 10px 24px -12px rgba(179, 18, 46, .9);
  transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--red-ink); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.gold { background: var(--gold); color: var(--red-deep); box-shadow: 0 10px 24px -12px rgba(201, 162, 74, .9); }
.btn.gold:hover { background: #d9b45e; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.block { width: 100%; justify-content: center; }
.btn.small { padding: .6em 1em; font-size: .9rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(110, 10, 28, .92); backdrop-filter: blur(10px); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 400 2.1rem/1 var(--script); }
.brand-tag { font: 600 .62rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-top: 2px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55em .9em; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .12); }
.nav .basket-link { background: var(--gold); color: var(--red-deep); }
.nav .basket-link:hover { background: #d9b45e; }
.basket-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; margin-left: .35em; border-radius: 999px; background: var(--red-deep); color: #fff; font-size: .75rem; }
@media (max-width: 720px) {
  .nav a:not(.basket-link):not(.keep) { display: none; }
  .brand-name { font-size: 1.8rem; }
  .brand-tag { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 500px at 85% 10%, rgba(255, 120, 140, .25), transparent 60%),
  radial-gradient(700px 600px at 10% 100%, rgba(201, 162, 74, .18), transparent 60%),
  linear-gradient(160deg, #c3162f 0%, #8d0f25 45%, #5a0817 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 96px; position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 em { font: 400 1.25em/1 var(--script); color: var(--gold-soft); font-style: normal; }
.hero .lead { color: rgba(255, 255, 255, .85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas .btn.ghost { color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.trust li::before { content: '✦'; color: var(--gold); margin-right: .5em; }
.hero-art { position: relative; min-height: 460px; }
.hero-art [data-hero-sheet] { position: absolute; right: 4%; top: 0; width: 360px; transform: rotate(3deg); }
.hero-art .sheet { box-shadow: var(--shadow); }
.hero-art .envelope-art { position: absolute; left: 0; bottom: -10px; width: 330px; transform: rotate(-6deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .hero-art { min-height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-art [data-hero-sheet] { width: 300px; right: 0; }
  .hero-art .envelope-art { width: 260px; }
}
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 140px 80px, rgba(255,255,255,.8), transparent),
    radial-gradient(3px 3px at 90px 160px, #fff, transparent), radial-gradient(2px 2px at 200px 220px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 60px 260px, #fff, transparent), radial-gradient(2.5px 2.5px at 240px 120px, rgba(255,255,255,.9), transparent);
  background-size: 280px 300px; opacity: .55; animation: snow 18s linear infinite; }
.snow.slow { background-size: 420px 420px; opacity: .35; animation-duration: 30s; }
@keyframes snow { from { background-position: 0 -300px; } to { background-position: 60px 300px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }

/* Deadline ribbon */
.ribbon { background: var(--green); color: #fff; text-align: center; padding: 12px 16px; font-weight: 600; font-size: .95rem; }
.ribbon b { color: var(--gold-soft); }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--paper); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font: 700 1.2rem var(--serif); margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.story p { font-size: 1.07rem; }
.story .sig { font: 400 2.2rem/1 var(--script); color: var(--red); }

/* Letter cards */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: .5em 1.1em; font: 600 .92rem var(--sans); cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--red); border-color: var(--red); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin-top: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-art { height: 250px; overflow: hidden; background: linear-gradient(180deg, #f3e9d8, #ead9bd); position: relative; }
.card-art .sheet { position: absolute; left: 50%; top: 18px; width: 612px; transform: translateX(-50%) scale(.36); transform-origin: top center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .tag { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.card-body h3 { margin: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font: 700 1.15rem var(--serif); color: var(--red-ink); }

/* Feature: certificate */
.feature { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.feature p { color: rgba(255, 255, 255, .85); }
.feature .kicker { color: var(--gold-soft); }
.feature [data-cert-sheet] { transform: rotate(-3deg); max-width: 380px; margin: 0 auto; width: 100%; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 32px 24px; } }

/* FAQ */
.faq { max-width: 780px; margin: 36px auto 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font: 600 1.05rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { padding: 72px 0; text-align: center; position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* Footer */
.site-foot { background: #2a0a10; color: rgba(255, 255, 255, .7); padding: 48px 0 36px; font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-foot a { color: #fff; }
.site-foot .brand-name { font-size: 1.9rem; color: #fff; }

/* Page header (inner pages) */
.page-head { background: linear-gradient(160deg, #b3122e, #6e0a1c); color: #fff; position: relative; overflow: hidden; }
.page-head .wrap { padding: 56px 0 48px; position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: rgba(255, 255, 255, .85); margin: 10px 0 0; }

/* Personalize */
.builder { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; padding: 44px 0 88px; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.builder .panel { position: sticky; top: 88px; }
@media (max-width: 960px) { .builder .panel { position: static; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: .3em; }
.field input { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; font: 1rem var(--sans); background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 18, 46, .12); }
.addon { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px dashed var(--gold); border-radius: 14px; background: #fffaf0; margin: 18px 0; cursor: pointer; }
.addon input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); }
.addon small { display: block; color: var(--muted); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 16px; }
.preview-stage { background: linear-gradient(180deg, #efe3cc, #e3d0ad); border-radius: 24px; padding: 36px 20px; display: flex; justify-content: center; overflow: hidden; }
.preview-stage .sheet { width: 612px; flex: none; }
.preview-stage { padding: 28px 16px; }
.letter-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.letter-switch select { width: 100%; padding: .7em 1em; border-radius: 12px; border: 1.5px solid var(--line); font: 600 1rem var(--sans); background: #fff; }
.msg { padding: 12px 16px; border-radius: 12px; background: #fdecee; color: var(--red-ink); font-weight: 600; margin: 12px 0; }
.msg.ok { background: #e7f4ec; color: var(--green); }

/* Basket */
.basket { display: grid; grid-template-columns: 1fr 360px; gap: 36px; padding: 44px 0 88px; align-items: start; }
@media (max-width: 900px) { .basket { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.line-thumb { height: 116px; overflow: hidden; border-radius: 8px; position: relative; background: #efe3cc; }
.line-thumb .sheet { position: absolute; left: 50%; top: 6px; width: 612px; transform: translateX(-50%) scale(.135); transform-origin: top center; }
.line h3 { margin: 0 0 2px; font-size: 1.1rem; }
.line small { color: var(--muted); display: block; }
.line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.linkbtn { background: none; border: 0; color: var(--red); font: 600 .88rem var(--sans); cursor: pointer; padding: 0; text-decoration: underline; }
.empty { text-align: center; padding: 60px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 18px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .grand { font: 700 1.3rem var(--serif); color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.postmark-badge { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #f1f7f3; color: var(--green); font-size: .92rem; margin-bottom: 18px; }
.postmark-badge svg { width: 54px; flex: none; }

/* Admin desk */
body.admin { background: #f6f1e7; }
.desk { width: min(1200px, 100% - 32px); margin: 24px auto; }
.desk h1 { font-size: 1.8rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.tab.on { background: var(--red); color: #fff; border-color: var(--red); }
.desk-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.selall { font-size: .9rem; color: var(--muted); }
table.orders { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: .92rem; }
table.orders th, table.orders td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.orders small { color: var(--muted); }
.pill { font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; background: #e7f4ec; color: var(--green); white-space: nowrap; }
.pill.charlotte { background: #fdf1dc; color: #8a5a00; }
.print-bar { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.print-stack { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 0 80px; }
