/* ============================================================================
   FESTIVAL SKIN — the official-banner theme (plan-fiesta-mahal-tana D13)
   ----------------------------------------------------------------------------
   Scoped to .fm-theme: the festival campaign page and the homepage band. The
   site shell, type scale, red buttons and section-head pattern stay as they
   are (css/public/tokens.css, editorial.css, shell.css). Palette sampled from
   Docs/soc-med-banner.jpg (2026-10-21); text accents use darker steps so they
   pass contrast on the wall. Approved mockup: Docs/mockups/fiesta-mahal-tana.html.
   ============================================================================ */
:root {
  --fm-paper: #E7E1F0;        /* plaster wall, median */
  --fm-paper-2: #DDD6E8;      /* a step darker, for alternate sections */
  --fm-paper-3: #F3F0F8;      /* a step lighter */
  --fm-magenta: #D02F81; --fm-magenta-ink: #A11E62;
  --fm-yellow: #F8C543;
  --fm-teal: #31A9AB; --fm-teal-ink: #11787A;
  --fm-sky: #40C5EF;
  --fm-purple: #B173BC; --fm-purple-ink: #7B4387;
  --fm-blue: #7FA0D6;
  --fm-shadow: 0 18px 40px -18px rgba(60, 38, 92, .45);
  --fm-r: 18px;
  /* the banners' handwritten line; Allura is self-hosted once approved, system script until then */
  --f-script: "Allura", "Segoe Script", "Brush Script MT", cursive;
}

/* plaster wall: lavender base, slow mottling + faint hairline cracks, procedural (no stock texture) */
.fm-theme {
  background-color: var(--fm-paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .55 0 0 0 .5 -.17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg fill='none' stroke='%23887C9C' stroke-opacity='.22' stroke-width='.8' stroke-linecap='round'%3E%3Cpath d='M40 60l18 14 6 22-9 18M300 30l-12 20 10 16M420 260l22 8 9 20 18 4M120 380l-16 14 4 18-12 10M360 450l14-16 20-2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 640px 640px, 520px 520px;
  color: var(--ink);
  position: relative;
}
.fm-theme.alt { background-color: var(--fm-paper-2); }
.fm-theme .sec-head h2 em { color: var(--fm-magenta-ink); }

.fm-script { font-family: var(--f-script); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; color: var(--ink); margin: 0; }

/* die-cut sticker: white border, soft lilac shadow, optional dashed path (the tagline sticker's motif) */
.sticker { background: #fff; padding: 8px; border-radius: var(--fm-r); box-shadow: var(--fm-shadow); }
.sticker .ph, .sticker > img { border-radius: calc(var(--fm-r) - 8px); }
.dashed { position: relative; }
.dashed::after { content: ""; position: absolute; inset: 9px; border: 1.5px dashed rgba(23, 20, 15, .22); border-radius: calc(var(--fm-r) - 7px); pointer-events: none; }

/* corner bunting (the festival's own artwork) and the confetti layer js/festival/confetti.js draws */
.fm-bunting { position: absolute; z-index: 0; pointer-events: none; height: auto; }
.confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.confetti svg { width: 100%; height: 100%; }
/* content above the confetti; :where() keeps this at class weight so sticky / absolute rules still win */
.fm-theme > :where(:not(.confetti, .fm-bunting)) { position: relative; z-index: 1; }

/* countdown = the homepage's .stats figures, in the festival colours */
.cd { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; column-gap: clamp(24px, 5vw, 64px); margin-top: var(--s6); }
.cd > p { grid-column: 1 / -1; margin-bottom: 10px; }
.cd div { display: flex; flex-direction: column; }
.cd b { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 50, "opsz" 144; }
.cd span { font-size: .78rem; letter-spacing: .08em; color: var(--ink-3); margin-top: 6px; }
.cd div:nth-of-type(1) b { color: var(--fm-magenta-ink); }
.cd div:nth-of-type(2) b { color: var(--fm-teal-ink); }
.cd div:nth-of-type(3) b { color: var(--fm-purple-ink); }
.cd--sm { margin-top: 0; column-gap: 22px; justify-content: start; }
.cd--sm b { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.cd--sm span { margin-top: 2px; }

.fm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fm-magenta); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .fm-dot { animation: fm-pulse 1.8s var(--e-out) infinite; }
}
@keyframes fm-pulse { 0% { box-shadow: 0 0 0 0 rgba(208, 47, 129, .55); } 100% { box-shadow: 0 0 0 12px rgba(208, 47, 129, 0); } }
