/* ==========================================================================
   christmas.css — additive skin for /christmas/ only.
   Loaded from the page's own layout; no shared partial or global CSS touched.
   Palette/type tokens come from zine.css. Presentation only.
   ========================================================================== */

.xmas-page { display: block; }

/* ---- header ------------------------------------------------------------- */
/* main.css styles every <header> and its .container for the site nav: sticky
   at top:0 plus a flex row (logo left, links right). The christmas hero is
   also a <header>, so it inherited both: it pinned over half the viewport
   while scrolling and squeezed kicker/title/lede/meta into narrow flex
   columns (the masthead stacked 5 lines in a 273px column). Undo both. */
.xmas-hero { position: static; }
.xmas-hero .container { display: block; }
.xmas-hero h1 {
  max-width: 46rem;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.08;
}
.xmas-hero h1 .nb,
.xmas-updated .nb { white-space: nowrap; }
/* Anchor jumps must clear the still-sticky site nav (~74px). */
.xmas-page [id] { scroll-margin-top: 96px; }
/* main.css gives .page-header a tall 70px/60px frame; the zine hero is tighter. */
.xmas-hero { padding: 2.5rem 0 1.25rem; }
.xmas-hero .xmas-lede {
  max-width: 44rem;
  margin: 0.9rem 0 0.6rem;
  font: 400 0.92rem/1.7 var(--font-body);
  color: #57524A; /* AA contrast on cream; main.css grey sat at ~4:1 */
}
.xmas-hero .xmas-updated {
  margin: 0;
  font: 600 0.74rem/1.6 var(--font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.xmas-hero .xmas-updated a { color: var(--terracotta); text-decoration: none; }
.xmas-hero .xmas-updated a:hover { text-decoration: underline; }

/* ---- free section ------------------------------------------------------- */
.xmas-free { padding: 1.5rem 0 0; }
.xmas-free__intro {
  max-width: 46rem;
  margin: 0 0 1.5rem;
  font: 400 0.88rem/1.7 var(--font-body);
  color: #57524A;
}
.xmas-group {
  margin: 0 0 2.25rem;
  padding: 1.25rem 1.4rem 1.35rem;
  border: 2px solid var(--sand);
  border-radius: var(--radius);
  background: var(--white);
}
.xmas-group__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--sand);
  font: 800 1.05rem/1.25 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.xmas-group p {
  margin: 0 0 0.7rem;
  font: 400 0.85rem/1.7 var(--font-body);
  color: var(--ink);
}
.xmas-group p:last-child { margin-bottom: 0; }
.xmas-group strong { color: var(--ink); }
.xmas-list {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
  font: 400 0.85rem/1.7 var(--font-body);
}
.xmas-list li { margin: 0 0 0.35rem; }
.xmas-source {
  font: 400 0.72rem/1.6 var(--font-body) !important;
  color: var(--muted) !important;
}
.xmas-source a { color: var(--terracotta); }
.xmas-note {
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--mustard);
  background: #FBF6EC;
  font: 400 0.8rem/1.65 var(--font-body) !important;
  color: var(--ink) !important;
}
.xmas-gaps { border-left: 4px solid var(--teal); }

/* ---- tables (scrollable on narrow screens) ------------------------------ */
.xmas-table-wrap { width: 100%; overflow-x: auto; margin: 0 0 0.9rem; }
.xmas-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font: 400 0.82rem/1.55 var(--font-body);
}
.xmas-table th,
.xmas-table td {
  padding: 0.6rem 0.75rem;
  border: 0;
  border-bottom: 2px solid var(--sand);
  text-align: left;
  vertical-align: top;
}
.xmas-table thead th {
  background: var(--teal);
  color: var(--ink);
  font: 600 0.7rem/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.xmas-table tbody tr:nth-child(even) { background: #FBF6EC; }
.xmas-table tbody tr:last-child td { border-bottom: 2px solid var(--ink); }

/* ---- gated section ------------------------------------------------------ */
.xmas-gated { margin: 3.25rem 0 1.5rem; }
.xmas-gated__intro {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  font: 400 0.88rem/1.7 var(--font-body);
  color: var(--muted);
}
.xmas-gated__stage {
  position: relative;
  min-height: 640px;
  padding: 1.6rem 1.7rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--zine-shadow);
  overflow: hidden;
}
.xmas-gated__content {
  filter: blur(6px);
  opacity: 0.92;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: filter .35s ease, opacity .35s ease;
}
.xmas-gated__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(243, 237, 227, 0.62); /* cream overlay */
  pointer-events: none;
  transition: opacity .35s ease;
}
.xmas-gate {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100% - 32px));
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--zine-shadow);
  text-align: center;
}
.xmas-gate .section-kicker { display: block; margin-bottom: 0.5rem; }
.xmas-gate h3 {
  margin: 0 0 0.6rem;
  font: 800 clamp(1.3rem, 3vw, 1.7rem)/1.2 var(--font-display);
  color: var(--ink);
}
.xmas-gate p {
  margin: 0 0 0.7rem;
  font: 400 0.82rem/1.6 var(--font-body);
  color: var(--ink);
}
.xmas-gate__note { color: var(--muted) !important; font-size: 0.74rem !important; }

/* Fused email + button, matching the hero / newsletter capture. */
.xmas-gate .signup-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 0.5rem;
}
.xmas-gate .signup-row input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--cream);
  color: var(--ink);
  font: 500 0.85rem/44px var(--font-body);
}
.xmas-gate .signup-row .btn-zine {
  flex: 0 0 auto;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 0 6px 6px 0;
  background: var(--mustard);
  color: var(--ink);
  font: 600 0.75rem/1.2 var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--zine-shadow);
}

/* Unlocked state: remove blur + veil, hide the gate box. */
html.xmas-unlocked .xmas-gated__content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  -webkit-user-select: auto;
  user-select: auto;
}
html.xmas-unlocked .xmas-gated__veil { opacity: 0; visibility: hidden; }
html.xmas-unlocked .xmas-gate { display: none; }
html.xmas-unlocked .xmas-gated__stage { min-height: 0; }

/* Gated list styling */
.xmas-gated__content h3 {
  margin: 1.4rem 0 0.7rem;
  font: 800 1.15rem/1.25 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.xmas-gated__content h3:first-child { margin-top: 0; }
.xmas-gotchas,
.xmas-days {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  font: 400 0.84rem/1.7 var(--font-body);
}
.xmas-gotchas li,
.xmas-days li { margin: 0 0 0.6rem; padding-left: 0.2rem; }
.xmas-gotchas { list-style: decimal; }
.xmas-gotchas li::marker { color: var(--terracotta); font-weight: 700; }
.xmas-days { list-style: none; padding-left: 0; counter-reset: xmasday; }
.xmas-days li {
  padding: 0.6rem 0 0.6rem 2.5rem;
  border-bottom: 1px solid var(--sand);
  position: relative;
}
.xmas-days li::before {
  counter-increment: xmasday;
  content: counter(xmasday);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  font: 700 0.72rem/1.5rem var(--font-body);
  text-align: center;
}
.xmas-days .xmas-source { display: inline; }

.xmas-footnote {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--sand);
  font: 400 0.74rem/1.6 var(--font-body);
  color: var(--muted);
}

/* ---- mobile ------------------------------------------------------------- */
@media (max-width: 760px) {
  .xmas-gated__stage { padding: 1.2rem; }
  .xmas-gate { width: calc(100% - 24px); }
}
@media (max-width: 640px) {
  .xmas-group { padding: 1rem; }
  .xmas-gated__stage { min-height: 720px; }
  .xmas-gate { padding: 1.15rem; }
  .xmas-days li { padding-left: 2.3rem; }
}
@media (max-width: 479px) {
  /* Stack the gate's email field and button like the hero / newsletter card. */
  .xmas-gate .signup-row { flex-wrap: wrap; gap: 10px 0; }
  .xmas-gate .signup-row input {
    flex: 1 1 100%;
    width: 100%;
    height: 46px;
    border-right: 2px solid var(--ink);
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 42px;
  }
  .xmas-gate .signup-row .btn-zine {
    flex: 1 1 100%;
    width: 100%;
    height: 46px;
    border-radius: 6px;
  }
  .xmas-gated__stage { min-height: 800px; }
  .xmas-source { overflow-wrap: anywhere; }
}
