/* ==========================================================================
   Piskit's Clockwork Christmas — Enchanted Victorian Storybook Theme
   ========================================================================== */

:root {
  --indigo-deep: #111528;
  --indigo: #15192e;
  --indigo-card: #1d2340;
  --indigo-elevated: #252d52;
  --brass: #d8a448;
  --brass-bright: #f2cf82;
  --brass-deep: #9c6c1b;
  --crimson: #a8322c;
  --crimson-deep: #781d18;
  --crimson-dark: #54100d;
  --parchment: #fdf8ef;
  --parchment-warm: #f6ecd8;
  --parchment-border: #e5d2ad;
  --ink: #241b15;
  --ink-soft: #564538;
  --starlight: #fbf5ea;
  --starlight-muted: #d6cdb9;
  --whatsapp: #25a755;
  --whatsapp-hover: #1e8e47;

  --font-serif: "Fraunces", "Georgia", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-card: 0 22px 55px rgba(7, 9, 20, 0.45);
  --shadow-soft: 0 12px 30px rgba(7, 9, 20, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--starlight);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(216, 164, 72, 0.16), transparent 65%),
    radial-gradient(ellipse 70% 50% at 85% 25%, rgba(168, 50, 44, 0.14), transparent 60%),
    linear-gradient(180deg, #101426 0%, var(--indigo) 38%, #12172c 100%);
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal; text-align: center;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--brass-bright);
  color: var(--ink);
  font-weight: 800;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Starry Twilight & Snow Backdrop ---------- */
.sky-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 240, 198, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 8%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 44% 24%, rgba(242, 207, 130, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 67% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 82% 20%, rgba(255, 236, 178, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 91% 38%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 19% 46%, rgba(242, 207, 130, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 56% 52%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 76% 68%, rgba(255, 238, 185, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 9% 79%, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.75;
}

.snowflake {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: rgba(255, 251, 240, 0.75);
  box-shadow: 0 0 6px rgba(255, 245, 220, 0.45);
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, -10px, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  88% {
    opacity: 0.65;
  }
  100% {
    transform: translate3d(24px, 105vh, 0);
    opacity: 0;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(17, 21, 40, 0.92);
  border-bottom: 1px solid rgba(216, 164, 72, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 64px;
  max-width: 100%;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.15;
  color: var(--starlight);
  letter-spacing: -0.01em;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; text-align: center;
}

.brand-mark strong {
  color: var(--brass-bright);
  font-weight: 700;
}

.brass-emblem {
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(216, 164, 72, 0.35));
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--starlight-muted);
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--brass-bright);
}

.visitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.65rem;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(216, 164, 72, 0.48);
  background: rgba(216, 164, 72, 0.12);
  color: var(--starlight);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  max-width: 142px;
  flex-shrink: 0;
}

.visitor-chip:hover {
  background: rgba(216, 164, 72, 0.22);
  border-color: var(--brass-bright);
}

#header-visitor-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; text-align: center;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 8px var(--brass);
  flex-shrink: 0;
}

.chip-action {
  color: var(--brass-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ---------- Shared Typography & Buttons ---------- */
main,
footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-bright);
}

.eyebrow-ink {
  color: var(--crimson);
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  color: var(--starlight);
  margin-bottom: 0.65rem;
}

.section-sub {
  margin: 0;
  color: var(--starlight-muted);
  font-size: 1.03rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: normal; text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.9rem 1.85rem;
  font-size: 1.05rem;
}

.btn-gold {
  background: linear-gradient(135deg, #f6db92 0%, var(--brass) 55%, #b88124 100%);
  color: #1f1609;
  box-shadow: 0 8px 22px rgba(216, 164, 72, 0.34);
}

.btn-gold:hover {
  box-shadow: 0 12px 28px rgba(242, 207, 130, 0.45);
}

.btn-gold-dark {
  background: linear-gradient(135deg, #d8a448 0%, #b57e1f 100%);
  color: #1c1306;
  box-shadow: 0 6px 16px rgba(156, 108, 27, 0.28);
}

.btn-crimson {
  background: linear-gradient(135deg, #c13d36 0%, var(--crimson) 55%, var(--crimson-deep) 100%);
  color: #fffaf2;
  box-shadow: 0 8px 22px rgba(168, 50, 44, 0.38);
}

.btn-crimson:hover {
  box-shadow: 0 12px 28px rgba(168, 50, 44, 0.52);
}

.btn-crimson-soft {
  background: rgba(168, 50, 44, 0.12);
  color: var(--crimson-deep);
  border-color: rgba(168, 50, 44, 0.3);
}

.btn-crimson-soft:hover {
  background: rgba(168, 50, 44, 0.2);
}

.btn-outline-gold {
  background: rgba(216, 164, 72, 0.08);
  color: var(--brass-bright);
  border-color: rgba(216, 164, 72, 0.55);
}

.btn-outline-gold:hover {
  background: rgba(216, 164, 72, 0.2);
  border-color: var(--brass-bright);
}

.btn-outline-ink {
  background: transparent;
  color: var(--ink);
  border-color: rgba(86, 69, 56, 0.35);
}

.btn-outline-ink:hover {
  background: rgba(86, 69, 56, 0.08);
  border-color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  color: var(--starlight-muted);
  border-color: rgba(251, 245, 234, 0.25);
}

.btn-ghost-light:hover {
  color: var(--starlight);
  border-color: rgba(251, 245, 234, 0.5);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 167, 85, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 1.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.hero-artwork {
  order: -1;
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  color: var(--starlight);
  margin-bottom: 1rem;
}

.gold-italic {
  color: var(--brass-bright);
  font-style: italic;
  font-weight: 600;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--starlight-muted);
  font-size: 1.04rem;
  max-width: 56ch;
}

.hero-lead strong {
  color: var(--starlight);
}

.welcome-card {
  background: linear-gradient(155deg, rgba(35, 43, 76, 0.94), rgba(24, 30, 56, 0.96));
  border: 1px solid rgba(216, 164, 72, 0.4);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.35rem;
}

.welcome-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.welcome-label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--starlight);
}

.welcome-greeting {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brass-bright);
}

.name-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.name-form input {
  flex: 1 1 190px;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(216, 164, 72, 0.42);
  background: rgba(15, 19, 36, 0.85);
  color: var(--starlight);
  font-size: 0.98rem;
}

.name-form input::placeholder {
  color: rgba(214, 205, 185, 0.68);
}

.quick-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.72rem;
}

.quick-label {
  font-size: 0.82rem;
  color: var(--starlight-muted);
  font-weight: 700;
}

.pill-mini {
  padding: 0.25rem 0.7rem;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(216, 164, 72, 0.35);
  background: rgba(216, 164, 72, 0.08);
  color: var(--starlight);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.pill-mini:hover {
  background: rgba(216, 164, 72, 0.24);
  border-color: var(--brass-bright);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.trust-strip {
  margin: 0;
  font-size: 0.86rem;
  color: var(--starlight-muted);
  font-weight: 600;
}

/* Hero Artwork Brass Frame */
.hero-artwork {
  margin: 0;
}

.brass-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 9px;
  background: linear-gradient(135deg, #f3d388 0%, #9b6c1b 45%, #e2b458 100%);
  box-shadow: var(--shadow-card);
}

.brass-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 7px);
}

.artwork-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--starlight-muted);
  padding: 0 0.2rem;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(168, 50, 44, 0.26);
  border: 1px solid rgba(242, 207, 130, 0.35);
  color: var(--brass-bright);
  font-weight: 800;
  font-size: 0.82rem;
}

/* ---------- Feature 2: Velvet Curtains Stage ---------- */
.theatre-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(216, 164, 72, 0.55);
  box-shadow: var(--shadow-card);
  background: var(--parchment);
}

.theatre-valance {
  background: linear-gradient(180deg, #5d120f 0%, #8f221d 60%, #631310 100%);
  border-bottom: 3px solid var(--brass);
  padding: 0.65rem 1rem;
  text-align: center;
  position: relative;
}

.valance-crest {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-bright);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.theatre-stage {
  position: relative;
  min-height: 440px;
  background: var(--parchment);
  color: var(--ink);
  overflow: hidden;
}

.stage-interior {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 440px;
}

.stage-art-col {
  background: #171c33;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-art-col img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 420px;
  object-fit: cover;
}

.stage-story-col {
  padding: 1.55rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(216, 164, 72, 0.14), transparent 55%),
    var(--parchment);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: var(--crimson);
  color: #fffaf2;
  font-size: 0.8rem;
  font-weight: 800;
}

.gear-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: rgba(216, 164, 72, 0.22);
  color: #6b460a;
  font-size: 0.8rem;
  font-weight: 800;
}

.story-title {
  font-size: clamp(1.38rem, 3vw, 1.85rem);
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.story-body {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #2f241c;
}

.story-signoff {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--crimson-deep);
}

.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Crimson Velvet Curtains Overlay */
.curtains-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(52, 7, 6, 0.52) 0px,
      rgba(168, 50, 44, 0.12) 22px,
      rgba(196, 62, 54, 0.26) 40px,
      rgba(74, 13, 11, 0.56) 64px
    ),
    linear-gradient(180deg, #8e211c 0%, #a8322c 45%, #651410 100%);
  box-shadow: inset 0 0 40px rgba(24, 2, 2, 0.55);
  transition: transform 0.95s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.curtain-left {
  left: 0;
  border-right: 2px solid rgba(242, 207, 130, 0.55);
}

.curtain-right {
  right: 0;
  border-left: 2px solid rgba(242, 207, 130, 0.55);
}

.curtain-tassel {
  position: absolute;
  top: 52%;
  width: 44px;
  height: 10px;
  background: linear-gradient(90deg, #9d6d1b, #f4d689, #9d6d1b);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.curtain-left .curtain-tassel {
  left: 0;
  border-radius: 0 999px 999px 0;
}

.curtain-right .curtain-tassel {
  right: 0;
  border-radius: 999px 0 0 999px;
}

.curtain-cta-layer {
  position: relative;
  z-index: 6;
  text-align: center;
  padding: 1.4rem 1.6rem;
  margin: 1rem;
  border-radius: var(--radius-md);
  background: rgba(17, 21, 40, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 207, 130, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.curtain-day-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass-bright);
  margin-bottom: 0.75rem;
}

.curtain-hint {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--starlight-muted);
}

.theatre-stage[data-open="true"] .curtain-left {
  transform: translateX(-103%);
}

.theatre-stage[data-open="true"] .curtain-right {
  transform: translateX(103%);
}

.theatre-stage[data-open="true"] .curtain-cta-layer {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.theatre-stage[data-open="true"] .curtains-overlay {
  pointer-events: none;
}

/* December Calendar Strip */
.calendar-panel {
  margin-top: 1.5rem;
  background: rgba(29, 35, 64, 0.9);
  border: 1px solid rgba(216, 164, 72, 0.34);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.calendar-title {
  font-size: 1.15rem;
  color: var(--starlight);
}

.calendar-note {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--starlight-muted);
}

.preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(216, 164, 72, 0.12);
  border: 1px solid rgba(216, 164, 72, 0.35);
}

.preview-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--starlight);
  transition: transform 0.2s ease;
}

.preview-toggle input:checked + .toggle-track {
  background: var(--brass);
}

.preview-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
  background: var(--ink);
}

.preview-toggle input:focus-visible + .toggle-track {
  outline: 3px solid var(--brass-bright);
  outline-offset: 2px;
}

.toggle-text {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brass-bright);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.cal-day-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 50px;
  padding: 0.38rem 0.25rem;
  border-radius: 12px;
  border: 1.5px solid rgba(216, 164, 72, 0.36);
  background: rgba(216, 164, 72, 0.14);
  color: var(--starlight);
  font-weight: 800;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}

.cal-day-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brass-bright);
}

.cal-day-btn.is-active {
  background: linear-gradient(135deg, #f6db92, var(--brass));
  color: #1f1609;
  border-color: #fff0c2;
  box-shadow: 0 6px 16px rgba(216, 164, 72, 0.38);
}

.cal-day-btn.is-locked {
  background: rgba(15, 19, 36, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(214, 205, 185, 0.55);
}

.cal-day-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.calendar-lock-toast {
  margin: 0.75rem 0 0;
  min-height: 1.35rem;
  font-size: 0.88rem;
  color: var(--brass-bright);
  font-weight: 700;
  text-align: center;
}

/* ---------- Feature 3: Golden Nice List Ledger ---------- */
.nicelist-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 164, 72, 0.18), transparent 62%),
    linear-gradient(180deg, #1d2340 0%, #161b32 100%);
  border: 1.5px solid rgba(216, 164, 72, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.35rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.nicelist-intro {
  max-width: 620px;
  margin: 0 auto 1.75rem;
}

.nicelist-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  margin-bottom: 0.65rem;
}

.nicelist-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.clockwork-button-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(242, 207, 130, 0.48);
  background: rgba(17, 21, 40, 0.75);
  color: var(--starlight);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.clockwork-button-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--brass-bright);
  box-shadow: 0 16px 38px rgba(216, 164, 72, 0.24);
}

.cog-ring {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.cog-ring.is-spinning .cog-outer {
  transform-origin: 60px 60px;
  animation: spinCW 0.9s linear infinite;
}

.cog-ring.is-spinning .cog-inner {
  transform-origin: 60px 60px;
  animation: spinCCW 0.6s linear infinite;
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.trigger-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brass-bright);
}

.trigger-sub {
  font-size: 0.84rem;
  color: var(--starlight-muted);
}

.nicelist-ledger {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius-md);
  border: 2px solid var(--brass);
  padding: 1.75rem 1.4rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  animation: revealUp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ledger-banner {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(216, 164, 72, 0.22);
  color: #6b460a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.ledger-verdict {
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  color: var(--crimson-deep);
  margin-bottom: 0.75rem;
}

.ledger-note {
  margin: 0 auto 1.25rem;
  max-width: 48ch;
  font-size: 1.03rem;
  color: var(--ink-soft);
}

.ledger-stamp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.inspector-stamp {
  display: inline-flex;
  transform: rotate(-5deg);
}

.stamp-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 2.5px double var(--crimson);
  border-radius: 12px;
  color: var(--crimson);
  background: rgba(168, 50, 44, 0.05);
}

.stamp-top,
.stamp-bot {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stamp-mid {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sparkle-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  animation: sparklePop 1s ease-out forwards;
}

@keyframes sparklePop {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2);
  }
}

/* ---------- Feature 4 & 6: Kindness Jar & Wishes (Parchment Cards) ---------- */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.parchment-panel {
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 2px solid var(--parchment-border);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow-card);
}

.parchment-panel h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.panel-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Visual Glass & Brass Kindness Jar */
.jar-showcase {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #1b223e 0%, #141930 100%);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
  color: var(--starlight);
  border: 1.5px solid rgba(216, 164, 72, 0.42);
}

.jar-vessel {
  position: relative;
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jar-lid {
  width: 58px;
  height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, #9a6918, #f4d689, #b88124);
  border: 1px solid #fff0c2;
}

.jar-neck {
  width: 50px;
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  border-right: 2px solid rgba(255, 255, 255, 0.35);
}

.jar-glass {
  position: relative;
  width: 88px;
  height: 98px;
  border-radius: 16px 16px 24px 24px;
  border: 2px solid rgba(255, 245, 225, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(216, 164, 72, 0.12));
  overflow: hidden;
  padding: 6px;
  display: flex;
  align-items: flex-end;
}

.jar-tokens {
  display: flex;
  flex-wrap: wrap-reverse;
  align-content: flex-start;
  justify-content: center;
  gap: 3px;
  width: 100%;
  z-index: 2;
}

.jar-button-token {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4c6, #e0aa45 60%, #9b6a15);
  border: 1px solid #fff2c2;
  box-shadow: 0 0 8px rgba(242, 207, 130, 0.75);
  animation: dropToken 0.35s cubic-bezier(0.22, 1.25, 0.36, 1);
}

@keyframes dropToken {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.jar-shine {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent);
  pointer-events: none;
}

.jar-counter-box {
  display: flex;
  flex-direction: column;
}

.jar-count-num {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brass-bright);
}

.jar-count-label {
  font-size: 0.9rem;
  color: var(--starlight-muted);
  font-weight: 700;
  margin-top: 0.25rem;
}

.inline-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.inline-add-form input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid #d5c19e;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.96rem;
}

.inline-add-form input::placeholder {
  color: #827060;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.chip-btn {
  padding: 0.38rem 0.82rem;
  min-height: 36px;
  border-radius: 999px;
  border: 1.5px solid #dcc59b;
  background: var(--parchment-warm);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.chip-btn:hover {
  background: #f2dfb9;
  border-color: var(--brass-deep);
  transform: translateY(-1px);
}

.wishes-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.wish-stat {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: var(--parchment-warm);
  border: 1px solid #dfcca8;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.wish-stat-star {
  background: rgba(216, 164, 72, 0.22);
  color: #6b460a;
  border-color: rgba(156, 108, 27, 0.38);
}

.entries-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.68rem 0.85rem;
  border-radius: 13px;
  background: #ffffff;
  border: 1.5px solid #e7d8bc;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.entry-item.is-starred {
  background: #fff9e8;
  border-color: var(--brass);
  box-shadow: 0 4px 12px rgba(216, 164, 72, 0.18);
}

.entry-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.entry-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fae096, #c98f29);
  flex-shrink: 0;
}

.entry-text {
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2d1b2;
  background: var(--parchment);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.icon-btn:hover {
  background: var(--parchment-warm);
  transform: scale(1.06);
}

.icon-btn.star-btn.is-starred {
  background: var(--brass);
  border-color: var(--brass-deep);
  color: #1f1609;
}

.icon-btn.remove-btn:hover {
  background: rgba(168, 50, 44, 0.14);
  color: var(--crimson-deep);
}

.empty-hint {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Feature 5: Wax-Sealed Letter ---------- */
.letter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.letter-illustration-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(216, 164, 72, 0.45);
  box-shadow: var(--shadow-card);
}

.letter-illustration-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.envelope-closed {
  position: relative;
  background: linear-gradient(160deg, #fbf3e2 0%, #f1e2c5 100%);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 2px solid #d5ba8a;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 2.3rem 1.5rem 2.1rem;
  text-align: center;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: linear-gradient(180deg, rgba(213, 186, 138, 0.34), rgba(241, 226, 197, 0.1));
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  border-bottom: 1px solid rgba(156, 108, 27, 0.25);
}

.envelope-body {
  position: relative;
  z-index: 2;
}

.envelope-postmark {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--crimson);
}

.envelope-address {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--ink);
}

.wax-seal-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(156, 108, 27, 0.38);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.18s ease;
}

.wax-seal-btn:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(156, 108, 27, 0.26);
}

.wax-cta {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--crimson-deep);
}

.envelope-hint {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
}

.keepsake-letter {
  animation: revealUp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.letter-paper {
  background:
    radial-gradient(circle at top left, rgba(216, 164, 72, 0.14), transparent 50%),
    var(--parchment);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 2px solid var(--brass);
  padding: 1.9rem 1.55rem;
  box-shadow: var(--shadow-card);
}

.letter-crest {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid #e4d1ad;
}

.letter-date {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.letter-salutation {
  font-size: 1.55rem;
  color: var(--ink);
  margin-bottom: 0.95rem;
}

.letter-paragraphs p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.72;
  color: #2b211a;
}

.letter-signature {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #dac49b;
}

.letter-signature p {
  margin: 0;
  color: var(--ink-soft);
}

.sig-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--crimson-deep) !important;
  margin-top: 0.25rem !important;
}

.sig-title {
  font-size: 0.84rem;
  font-weight: 700;
}

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.action-feedback,
.share-feedback {
  margin: 0.6rem 0 0;
  min-height: 1.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brass-bright);
}

/* ---------- Feature 7: Share Banner ---------- */
.share-banner {
  background: linear-gradient(135deg, rgba(168, 50, 44, 0.25) 0%, rgba(29, 35, 64, 0.95) 55%, rgba(216, 164, 72, 0.16) 100%);
  border: 1.5px solid rgba(216, 164, 72, 0.45);
  border-radius: var(--radius-lg);
  padding: 2rem 1.45rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.share-text {
  max-width: 640px;
  margin: 0 auto 1.35rem;
}

.share-text h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  margin-bottom: 0.55rem;
}

.share-text p:last-child {
  margin: 0;
  color: var(--starlight-muted);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Feature 8: Meet Piskit the Book ---------- */
.book-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
  align-items: center;
  background: var(--parchment);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 2px solid var(--brass);
  padding: 1.85rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.book-cover-wrap {
  display: flex;
  justify-content: center;
}

.book-cover-wrap img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(36, 27, 21, 0.26);
  background: #ffffff;
}

.book-details h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.book-author {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: var(--crimson-deep);
}

.book-blurb {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 1.01rem;
  line-height: 1.7;
  max-width: 58ch;
}

.book-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.teaser-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(216, 164, 72, 0.2);
  border: 1px solid rgba(156, 108, 27, 0.35);
  color: #6b460a;
  font-size: 0.9rem;
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(216, 164, 72, 0.22);
  padding: 2.1rem 0 2.6rem;
  text-align: center;
  background: rgba(13, 16, 32, 0.72);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brass-bright);
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--starlight-muted);
}

/* ---------- Desktop & Tablet Breakpoints ---------- */
@media (min-width: 720px) {
  .calendar-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .stage-interior {
    grid-template-columns: 1.05fr 1fr;
  }

  .stage-art-col img {
    max-height: none;
    height: 100%;
  }

  .stage-story-col {
    padding: 2.2rem 2.2rem;
  }

  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }

  .letter-layout {
    grid-template-columns: 0.95fr 1.15fr;
  }

  .book-card {
    grid-template-columns: 300px 1fr;
    padding: 2.4rem 2.5rem;
    gap: 2.4rem;
  }
}

@media (min-width: 960px) {
  .brand-mark {
    font-size: 1.08rem;
    flex: 0 0 auto;
  }

  .visitor-chip {
    font-size: 0.86rem;
    padding: 0.42rem 0.78rem;
    max-width: 205px;
  }

  .main-nav {
    display: flex;
  }

  .hero-section {
    padding: 3.2rem 0 4.1rem;
  }

  .hero-grid {
    grid-template-columns: 1.04fr 0.96fr;
    gap: 3rem;
  }

  .hero-artwork {
    order: 0;
  }

  .calendar-grid {
    grid-template-columns: repeat(13, minmax(0, 1fr));
  }

  .section {
    padding: 4.25rem 0;
  }

  .nicelist-card {
    padding: 3rem 2.5rem;
  }
}

/* ---------- Accessibility & Print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .snow-layer {
    display: none;
  }
}

@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .sky-backdrop,
  .site-header,
  .hero-section,
  .section-curtains,
  .section-nicelist,
  .section-twocol,
  .section-share,
  .section-book,
  .site-footer,
  .section-letter .section-head,
  .letter-illustration-card,
  .envelope-closed,
  .letter-actions,
  .action-feedback {
    display: none !important;
  }
  .section-letter {
    padding: 0 !important;
  }
  .letter-layout {
    display: block !important;
  }
  .keepsake-letter {
    display: block !important;
  }
  .letter-paper {
    box-shadow: none !important;
    border: 2px solid #9c6c1b !important;
    padding: 2rem !important;
  }
}
