:root {
  --night: #0c2a20;
  --night-2: #133a2c;
  --night-3: #1b4a38;
  --on-night: #f6eedf;
  --on-night-soft: #c9d6cc;
  --paper: #fbf5e9;
  --paper-2: #f3e9d6;
  --ink: #2b2118;
  --ink-soft: #6b5b4b;
  --berry: #b3202f;
  --berry-dark: #8e1424;
  --pine: #1f5a3a;
  --gold: #e2b85a;
  --line: #e0d2b8;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--on-night); font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--night); }
body.is-site { background: radial-gradient(900px 520px at 78% 0%, rgba(226, 184, 90, .16), transparent 70%), radial-gradient(1100px 700px at 10% 30%, #164536 0%, transparent 60%), var(--night); }
body.is-viewer { background: #081120; overflow: hidden; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--on-night); }
h1 { font-size: 48px; margin: 0 0 16px; }
h2 { font-size: 36px; margin: 64px 0 16px; }
h3 { font-size: 22px; margin: 32px 0 8px; }

/* string lights */
.lights { position: relative; z-index: 2; height: 36px; overflow: hidden; pointer-events: none; }
.lights::before { content: ""; position: absolute; left: -2%; right: -2%; top: -18px; height: 34px; border-bottom: 2px solid #23362c; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.lights ol { list-style: none; margin: 0; padding: 0 12px; display: flex; justify-content: space-between; }
.lights li { width: 10px; height: 16px; margin-top: 12px; border-radius: 50% 50% 45% 45%; position: relative; animation: twinkle 2.4s ease-in-out infinite; }
.lights li::before { content: ""; position: absolute; top: -5px; left: 2px; width: 6px; height: 6px; background: #2c3b33; border-radius: 2px; }
.lights li:nth-child(4n+1) { background: #ff5a5f; box-shadow: 0 2px 14px 3px rgba(255, 90, 95, .55); }
.lights li:nth-child(4n+2) { background: #ffd56a; box-shadow: 0 2px 14px 3px rgba(255, 213, 106, .55); animation-delay: .6s; }
.lights li:nth-child(4n+3) { background: #5fd38d; box-shadow: 0 2px 14px 3px rgba(95, 211, 141, .5); animation-delay: 1.2s; }
.lights li:nth-child(4n) { background: #6cb8ff; box-shadow: 0 2px 14px 3px rgba(108, 184, 255, .5); animation-delay: 1.8s; }
.lights li:nth-child(odd) { margin-top: 15px; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }


/* falling snow (two drifting layers of dots) */
.snowfall { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.snowfall::before, .snowfall::after { content: ""; position: absolute; inset: -200px 0 0 0;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.8), transparent 60%), radial-gradient(2px 2px at 120px 90px, rgba(255,255,255,.6), transparent 60%), radial-gradient(3px 3px at 200px 160px, rgba(255,255,255,.7), transparent 60%), radial-gradient(2px 2px at 60px 210px, rgba(255,255,255,.5), transparent 60%), radial-gradient(2px 2px at 170px 20px, rgba(255,255,255,.55), transparent 60%);
  background-size: 240px 240px; animation: snow 18s linear infinite; }
.snowfall::after { background-size: 340px 340px; opacity: .6; animation-duration: 28s; }
@keyframes snow { from { transform: translateY(0); } to { transform: translateY(240px); } }

/* header */
.site-header { position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--on-night); text-decoration: none; font: 400 30px/1 "Great Vibes", "Snell Roundhand", cursive; }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--on-night-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-header nav a:hover { color: var(--on-night); }

/* hero */
.hero { padding: 32px 0 48px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.hero h1 { font-size: 48px; }
.hero h1::after { content: "Merry Christmas"; display: block; margin-top: 8px; font: 400 36px/1.1 "Great Vibes", "Snell Roundhand", cursive; color: var(--gold); }
.lede { color: var(--on-night-soft); font-size: 18px; max-width: 46ch; margin: 0 0 16px; }
.demo { margin: 0 0 24px; }
.demo a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-mini li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.steps-mini span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d4505c, var(--berry-dark) 70%); color: #f7e3c4; font: 700 16px "Cormorant Garamond", Georgia, serif; box-shadow: 0 1px 2px rgba(0,0,0,.3); }


/* the maker sits on a sheet of airmail stationery */
.maker-card { position: relative; padding: 12px; border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  background: repeating-linear-gradient(135deg, var(--berry) 0 18px, var(--paper) 18px 30px, var(--pine) 30px 48px, var(--paper) 48px 60px); }

/* content */
.prose { padding-bottom: 16px; }
.prose p, .prose li { max-width: 70ch; color: #e6ecdf; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--on-night); }
.prose h2 { display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; flex: 0 0 34px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cpath d='M17 13C11 3 3 4 1 9c5 0 7 2 9 6 2-1 4-1 7-2z' fill='%232c7048'/%3E%3Cpath d='M17 13c6-10 14-9 16-4-5 0-7 2-9 6-2-1-4-1-7-2z' fill='%231f5a3a'/%3E%3Ccircle cx='14' cy='15' r='3.2' fill='%23c41e2e'/%3E%3Ccircle cx='20' cy='15' r='3.2' fill='%23c41e2e'/%3E%3Ccircle cx='17' cy='19' r='3.2' fill='%23b3202f'/%3E%3C/svg%3E") no-repeat center / contain; }
.prose table { border-collapse: collapse; margin: 16px 0; max-width: 100%; background: rgba(19, 58, 44, .6); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { border-bottom: 1px solid rgba(226, 184, 90, .25); padding: 12px 16px; text-align: left; vertical-align: top; }
.prose th { color: var(--gold); font-weight: 600; }
.prose blockquote { margin: 16px 0; padding: 16px 24px; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-2); }
.prose blockquote p { margin: 0; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 22px; }
.page { padding-top: 48px; padding-bottom: 64px; }
.page h1 { font-size: 48px; }
.page h2 { font-size: 30px; margin-top: 48px; }

.faq { padding-bottom: 72px; }
.faq details { background: var(--night-2); border: 1px solid rgba(226, 184, 90, .2); border-radius: var(--radius); padding: 16px 20px; max-width: 820px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font: 600 22px/1.3 "Cormorant Garamond", Georgia, serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 28px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; color: #e6ecdf; max-width: 70ch; }


/* snowy footer */
.site-footer { position: relative; z-index: 1; margin-top: 32px; padding: 56px 0 32px; color: #4b5a52; font-size: 14px; background: #eef3f0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: radial-gradient(60px 40px at 30px 40px, #eef3f0 98%, transparent 100%) repeat-x; background-size: 90px 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-row a { color: var(--pine); font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1, .hero h1, .page h1 { font-size: 32px; }
  .hero h1::after { font-size: 28px; }
  h2 { font-size: 28px; margin-top: 48px; }
  .hero { padding-top: 16px; }
  .lede { font-size: 16px; margin-bottom: 8px; }
  .demo { margin-bottom: 0; }
  .steps-mini { display: none; }
  .maker-card { padding: 8px; }
  .site-header nav { gap: 16px; }
  .brand { font-size: 26px; }
  .lights li:nth-child(n+17) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .lights li, .snowfall::before, .snowfall::after { animation: none !important; }
}
