/* Shared holiday stationery: evergreen, cranberry, gilt and warm paper. */
:root {
  --pine: #183e32;
  --berry: #a8263f;
  --gilt: #b38c48;
  --parchment: #fffaf0;
  --airmail: repeating-linear-gradient(125deg, #a92f40 0 10px, #fff4dc 10px 18px, #37614e 18px 28px, #fff4dc 28px 36px);
}

body[data-page] {
  position: relative;
  background: radial-gradient(ellipse 80% 430px at 50% 120px, #fffdf7 20%, transparent 90%), #faf4e6;
}
body::before, body::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: 62px;
  left: 0;
  width: clamp(90px, 21vw, 360px);
  aspect-ratio: 1.5;
  background: url("/fir-garland.webp") left top / contain no-repeat;
}
body::after { left: auto; right: 0; transform: scaleX(-1); }
.site-header {
  background: var(--pine);
  border-bottom: 2px solid #c6a261;
  box-shadow: 0 2px 10px #12372d18;
}
.site-header .brand-wordmark { color: #fff8e7; }
.site-header .brand-wordmark em { color: #f2cf94; }
.site-header .brand img, .footer-brand img { border-radius: 22%; }
.site-header .site-nav .btn-outline, .site-header .lang-switch-menu { background: var(--parchment); color: var(--pine); }
.site-header .lang-switch-menu { padding: 0; }
.hero-experience .hero-title { color: var(--pine); text-wrap: balance; }
.hero-experience .hero-title em { color: var(--berry); }
.hero-experience .hero-copy, .owner-tools, .cal-intro-card, .guest-composer {
  background-color: var(--parchment);
  border-color: #d8c7a4;
  box-shadow: 0 5px 0 -2px #ede0bf, 0 12px 32px -22px #59402999;
}
.hero-experience .hero-copy {
  border-radius: 12px;
  background-image: var(--airmail);
  background-size: 100% 4px;
  background-repeat: no-repeat;
}
.board[data-appearance] {
  border-radius: 14px;
  background-image: repeating-linear-gradient(0deg, transparent 0 13px, #ffffff12 13px 15px),
                    repeating-linear-gradient(90deg, transparent 0 13px, #475b4310 13px 15px);
  background-color: var(--board-paper);
  box-shadow: inset 0 0 0 3px var(--board-paper), inset 0 0 0 4px var(--board-line), 0 4px 0 -1px var(--board-line), 0 14px 30px -22px #2b3e28cc;
}
.board[data-appearance="spruce"] { --board-paper: #e2eada; --board-line: #94a889; }
.board[data-appearance] :is(.wrap-crimson,.demo-door:nth-child(4n)) { --paper: #b9444a; --ribbon: #f7da97; }
.board[data-appearance] :is(.wrap-spruce,.demo-door:nth-child(4n + 1)) { --paper: #417758; --ribbon: #f6dbab; }
.board[data-appearance] :is(.wrap-frost,.demo-door:nth-child(4n + 2)) { --paper: #91b4b4; --ribbon: #fff1cf; }
.board[data-appearance] :is(.wrap-gold,.demo-door:nth-child(4n + 3)) { --paper: #dfb26f; --ribbon: #a43c4a; }

.how-section, .holiday-faq, .holiday-guides { width: min(100%, 1120px); margin-inline: auto; }
.how-section { margin-block: 18px 0; border-top: 1px solid #d9c7a2; }
.section-head h2, .holiday-faq h2, .holiday-guides h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: var(--pine);
}
.preview-step { border-radius: 10px; border-color: #d9c9ac; background-color: var(--parchment); }
.preview-step-copy h3 a { color: var(--pine); }
.holiday-faq {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .62fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(24px, 6vw, 90px);
  margin-block: clamp(36px, 6vw, 76px);
  padding: clamp(24px, 4vw, 60px);
  background: var(--airmail) left top / 100% 5px no-repeat, var(--parchment);
  border: 1px solid #d6c39e;
  border-radius: 10px;
  box-shadow: 0 5px 0 -2px #f4e9d3, 0 6px 0 -2px #d6c39e;
  scroll-margin-top: 85px;
}
.faq-stamp {
  padding: 9px;
  background: #fffef8;
  outline: 1px dashed #b9a577;
  outline-offset: -5px;
  box-shadow: 0 4px 12px #332b1a25;
  transform: rotate(-3deg);
}
.faq-stamp img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.faq-body { min-width: 0; }
.holiday-faq h2 { margin: 0 0 18px; }
.faq-item { border-top: 1px solid #dbcfb8; }
.faq-item:last-child { border-bottom: 1px solid #dbcfb8; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  min-height: 48px;
  color: var(--pine);
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--berry); }
.faq-item summary:focus-visible, .holiday-guides a:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
.faq-toggle {
  width: 24px;
  height: 24px;
  flex: none;
  background: linear-gradient(currentColor,currentColor) center / 10px 2px no-repeat,
              linear-gradient(currentColor,currentColor) center / 2px 10px no-repeat;
  border: 1px solid #c6b798;
  border-radius: 50%;
}
.faq-item[open] .faq-toggle { background-size: 10px 2px, 0 0; }
.faq-item p { margin: -4px 32px 18px 2px; max-width: 64ch; line-height: 1.65; color: #4b4d40; }
.holiday-guides h2 { margin: 0 0 18px; }
.holiday-guides ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.holiday-guides li { min-width: 0; }
.holiday-guides a {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  gap: 14px;
  align-items: center;
  height: 100%;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid #d3c2a0;
  border-radius: 8px;
  background: var(--parchment);
  color: var(--pine);
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.holiday-guides a:hover { border-color: var(--berry); color: var(--berry); }
.guide-sticker svg { width: 42px; height: 42px; }
.site-footer { border-top: 3px double #cfae72; background: var(--pine); }
.site-footer-inner { width: min(1120px, calc(100% - 32px)); padding: 25px 0; gap: 10px 26px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff5dc; font-size: 1.22rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 42px; color: #fff4dc; }
.footer-links a:hover { color: white; text-decoration: underline; }

@media (max-width: 760px) {
  body::before, body::after { width: clamp(68px, 18vw, 136px); top: 58px; }
  .hero-experience > .hero-title { padding-inline: 18px; text-align: center; }
  .holiday-faq { display: block; padding: 24px 18px 20px; }
  .faq-stamp { float: right; width: 66px; margin: -2px 2px 12px 14px; padding: 5px; outline-offset: -3px; }
  .holiday-faq h2 { display: flex; align-items: center; min-height: 60px; margin: 0 0 14px; }
  .faq-item { clear: both; }
  .holiday-guides ul { grid-template-columns: 1fr; gap: 9px; }
  .holiday-guides a { min-height: 62px; }
  .footer-links { gap: 0 16px; }
}

/* The frame belongs to the chosen calendar theme; its doors keep their own paper. */
.board[data-appearance="spruce"] {
  background-color: #214c3d;
  background-image: repeating-linear-gradient(90deg, transparent 0 12px, #d2dca514 12px 14px),
                    repeating-linear-gradient(0deg, transparent 0 12px, #d2dca512 12px 14px);
  box-shadow: inset 0 0 0 3px #264b3e, inset 0 0 0 4px #b8a574, 0 4px 0 -1px #46593f, 0 14px 30px -22px #2b3e28cc;
}
.board[data-appearance="spruce"] :is(.board-name,.board-month,.board-foot,.board-foot svg) { color: #fff4d8; }
.board[data-appearance="spruce"] .board-head { border-color: #b8a57477; }
.board[data-appearance="spruce"] .door-empty:not(.demo-door) { background-color: #e4eada; }
.board[data-appearance="spruce"] .door-empty[aria-pressed="true"] { background-color: #fff5dc; }
.holiday-intro { display: flex; align-items: center; gap: 14px; }
.hero-experience .holiday-intro .parcel-art {
  flex: none;
  width: clamp(70px, 7vw, 98px);
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
}
.holiday-intro .hero-lead { margin: 0; }
@media (min-width: 761px) {
  .hero-experience > .hero-title { text-align: center; padding-inline: clamp(28px, 4vw, 70px); }
}
@media (max-width: 760px) {
  .holiday-intro { gap: 10px; }
  .hero-experience .holiday-intro .parcel-art { display: block; width: 56px; }
}

/* Alternating amber bulbs hang from a shallow scalloped wire. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 13px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 3px 4px at 27px 6px, #fff8cd 32%, #e6af50 75%, transparent),
    radial-gradient(ellipse 3px 4px at 83px 6px, #ffe8b4 32%, #d59643 75%, transparent),
    radial-gradient(ellipse 9px 7px at 27px 6px, #f2c67596, transparent),
    radial-gradient(ellipse 9px 7px at 83px 6px, #f2c67580, transparent),
    radial-gradient(ellipse 57px 12px at 55px -7px, transparent 94%, #7f704d 98%, transparent 100%);
  background-size: 110px 13px;
}
/* Brass pinheads and an inset rim make the calendar read as a keepsake box. */
.board[data-appearance]::before {
  content: "";
  position: absolute;
  inset: 6px;
  height: auto;
  border-radius: 8px;
  pointer-events: none;
  background-size: 6px 6px;
  background-position: left top, right top, left bottom, right bottom;
  background-repeat: no-repeat;
  background-image: var(--brass-pin), var(--brass-pin), var(--brass-pin), var(--brass-pin);
  --brass-pin: radial-gradient(circle, #ffebac 0 1px, #b28b4b 1.5px 2px, transparent 2.5px);
}
.hero-experience .create-submit {
  background-image: linear-gradient(180deg, #c73145, #aa2037);
  box-shadow: inset 0 1px 0 #ffd7ad70, 0 3px 0 #811d30, 0 7px 15px -8px #831b31a6;
}
.holiday-guides .guide-sticker {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2e9d6;
}
.holiday-faq .faq-stamp {
  box-shadow: 0 0 0 1px #e5d5b6, 0 5px 12px #332b1a25;
}
@media (hover: hover) {
  .board .door:is(:hover, :focus-visible):not(:disabled) {
    outline: 2px solid #e1b75e;
    outline-offset: 1px;
    box-shadow: 0 3px 12px #48271538;
  }
}
.site-footer {
  background-image: radial-gradient(ellipse at 85% 10%, #345d45, transparent 52%);
}

.snow-canvas { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .snow-canvas {
    position: fixed;
    inset: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    /* Most snow falls visibly at the sides; the centre stays clear for reading. */
    mask-image: linear-gradient(to right, #000 0%, #000 7%, #0004 29%, #0002 50%, #0004 71%, #000 93%);
  }
  .snow-canvas i {
    --drift: 26px;
    --fall-time: 14s;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px #acbdbe77, 0 1px 3px #778f9440;
    animation: december-snow var(--fall-time) linear infinite;
  }
  .snow-canvas i:nth-child(3n) { --fall-time: 18s; --drift: -24px; width: 3px; height: 3px; }
  .snow-canvas i:nth-child(4n + 1) {
    --fall-time: 11s;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
    filter: drop-shadow(0 1px 1px #839ca8b3);
  }
  .snow-canvas i:nth-child(4n + 1)::before,
  .snow-canvas i:nth-child(4n + 1)::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    transform: rotate(60deg);
  }
  .snow-canvas i:nth-child(4n + 1)::after { transform: rotate(-60deg); }
  .snow-canvas i:nth-child(7n + 1) { animation-delay: -6.4s; }
  .snow-canvas i:nth-child(7n + 2) { animation-delay: -1.7s; }
  .snow-canvas i:nth-child(7n + 3) { animation-delay: -10.4s; }
  .snow-canvas i:nth-child(7n + 4) { animation-delay: -4s; }
  .snow-canvas i:nth-child(7n + 5) { animation-delay: -8.8s; }
  .snow-canvas i:nth-child(7n + 6) { animation-delay: -.4s; }
  .snow-canvas i:nth-child(7n) { animation-delay: -12.3s; }
  body:has(textarea:focus, input:focus, dialog[open]) .snow-canvas { visibility: hidden; }
  body:has(textarea:focus, input:focus, dialog[open]) .snow-canvas i { animation-play-state: paused; }

  @keyframes december-snow {
    0% { transform: translate3d(0, -16px, 0) rotate(0deg); opacity: 0; }
    6%, 90% { opacity: .9; }
    52% { transform: translate3d(var(--drift), 52vh, 0) rotate(65deg); }
    100% { transform: translate3d(0, calc(100vh + 16px), 0) rotate(120deg); opacity: 0; }
  }
}
@media (max-width: 600px) {
  .snow-canvas i:nth-child(n + 17) { display: none; }
}
