/* ===================================================================
   Flyer page — "tacked to the camp notice board at night"
   Scoped styles for /flyer.html only. Uses brand tokens from style.css.
   Concept: a deep forest-night stage lit by an off-frame campfire,
   embers drifting up, the printable flyer pinned to a board and gently
   askew until you lean in. Bold but on-brand; CSS-only motion.
   =================================================================== */

/* ---------- The stage ---------- */
.flyer-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(120% 90% at 50% 118%, rgba(255, 107, 53, 0.20) 0%, rgba(255, 107, 53, 0) 46%),
    linear-gradient(180deg, var(--forest-900) 0%, #08160b 38%, var(--forest-800) 100%);
  color: var(--khaki-200);
}

/* off-frame campfire glow, breathing */
.flyer-stage__glow {
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: min(86vw, 980px);
  aspect-ratio: 1.4 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
      rgba(255, 184, 77, 0.55) 0%,
      rgba(255, 107, 53, 0.34) 34%,
      rgba(255, 107, 53, 0) 72%);
  filter: blur(18px);
  z-index: -2;
  animation: flyer-breathe 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* faint film grain for texture */
.flyer-stage__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* top + bottom vignette to seat the scene */
.flyer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 16, 5, 0.55) 0%, rgba(5, 16, 5, 0) 18%),
    radial-gradient(140% 80% at 50% 0%, rgba(5, 16, 5, 0) 60%, rgba(5, 16, 5, 0.45) 100%);
}

/* ---------- Embers ---------- */
.flyer-embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.flyer-embers span {
  position: absolute;
  bottom: -24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--campfire-yellow) 0%, var(--campfire-orange) 55%, rgba(255, 107, 53, 0) 72%);
  opacity: 0;
  animation: flyer-ember linear infinite;
  will-change: transform, opacity;
}
.flyer-embers span:nth-child(1)  { left: 6%;  animation-duration: 8.5s;  animation-delay: 0s;    transform: scale(.7); }
.flyer-embers span:nth-child(2)  { left: 14%; animation-duration: 6.8s;  animation-delay: 1.6s;  transform: scale(1.1); }
.flyer-embers span:nth-child(3)  { left: 22%; animation-duration: 9.6s;  animation-delay: .4s; }
.flyer-embers span:nth-child(4)  { left: 30%; animation-duration: 7.4s;  animation-delay: 3.1s;  transform: scale(.85); }
.flyer-embers span:nth-child(5)  { left: 38%; animation-duration: 10.2s; animation-delay: 2.2s;  transform: scale(1.25); }
.flyer-embers span:nth-child(6)  { left: 45%; animation-duration: 6.2s;  animation-delay: .9s;   transform: scale(.6); }
.flyer-embers span:nth-child(7)  { left: 52%; animation-duration: 8.9s;  animation-delay: 4.0s; }
.flyer-embers span:nth-child(8)  { left: 59%; animation-duration: 7.1s;  animation-delay: 1.2s;  transform: scale(1.05); }
.flyer-embers span:nth-child(9)  { left: 66%; animation-duration: 9.1s;  animation-delay: 2.8s;  transform: scale(.75); }
.flyer-embers span:nth-child(10) { left: 73%; animation-duration: 6.6s;  animation-delay: .2s;   transform: scale(1.15); }
.flyer-embers span:nth-child(11) { left: 80%; animation-duration: 10.6s; animation-delay: 3.6s; }
.flyer-embers span:nth-child(12) { left: 86%; animation-duration: 7.8s;  animation-delay: 1.9s;  transform: scale(.9); }
.flyer-embers span:nth-child(13) { left: 92%; animation-duration: 8.2s;  animation-delay: 4.6s;  transform: scale(.65); }
.flyer-embers span:nth-child(14) { left: 97%; animation-duration: 9.9s;  animation-delay: 2.5s;  transform: scale(1.0); }

/* ---------- Layout ---------- */
.flyer-stage__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

/* ---------- Intro column ---------- */
.flyer-eyebrow {
  font-family: var(--font-family-display);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--vintage-gold);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.flyer-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass));
}

.flyer-title {
  font-family: var(--font-family-heading);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  /* reset the site's base h1 green gradient text-clip */
  background: none;
  color: var(--neutral-100);
  -webkit-text-fill-color: var(--neutral-100);
  text-shadow: 0 6px 40px rgba(255, 107, 53, 0.28);
  margin-bottom: 1.5rem;
}
.flyer-title .spark {
  display: block;
  background: linear-gradient(100deg, var(--campfire-yellow) 0%, var(--campfire-orange) 55%, var(--sunset-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.flyer-lede {
  font-family: var(--font-family-sans);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.7;
  color: var(--khaki-300);
  max-width: 34ch;
  margin-bottom: 2.2rem;
}

/* ---------- Buttons ---------- */
.flyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.ember-btn {
  --glow: rgba(255, 107, 53, 0.55);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s ease, background 0.25s ease;
}
.ember-btn svg { width: 1.05em; height: 1.05em; }
.ember-btn--primary {
  color: #2a1402;
  background: linear-gradient(135deg, var(--campfire-yellow) 0%, var(--campfire-orange) 58%, var(--sunset-orange) 100%);
  box-shadow: 0 10px 28px -8px var(--glow), 0 0 0 1px rgba(255, 184, 77, 0.35) inset;
}
.ember-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px var(--glow), 0 0 22px -2px var(--glow), 0 0 0 1px rgba(255, 184, 77, 0.55) inset;
}
.ember-btn--ghost {
  color: var(--khaki-200);
  background: rgba(245, 222, 179, 0.04);
  box-shadow: 0 0 0 1.5px rgba(220, 196, 142, 0.4) inset;
}
.ember-btn--ghost:hover {
  transform: translateY(-3px);
  color: var(--neutral-50);
  background: rgba(245, 222, 179, 0.1);
  box-shadow: 0 0 0 1.5px var(--vintage-gold) inset;
}

/* ---------- "Good spots" checklist ---------- */
.flyer-spots {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.6rem;
  max-width: 30rem;
}
.flyer-spots li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--khaki-300);
}
.flyer-spots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  background: var(--campfire-orange);
  box-shadow: 0 0 8px 1px rgba(255, 107, 53, 0.7);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- The pinned poster ---------- */
.flyer-board {
  position: relative;
  display: flex;
  justify-content: center;
}
.flyer-poster {
  position: relative;
  display: block;
  width: min(100%, 430px);
  transform: rotate(-3.2deg);
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), filter 0.45s ease;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.6));
}
.flyer-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 7px solid #fbf6ea;
  outline: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}
.flyer-poster:hover,
.flyer-poster:focus-visible {
  transform: rotate(0deg) translateY(-12px) scale(1.015);
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(255, 140, 60, 0.35));
  outline: none;
}

/* push-pins */
.flyer-poster__pin {
  position: absolute;
  top: -13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  z-index: 2;
  background: radial-gradient(circle at 34% 30%, #ffd1b0 0%, var(--campfire-orange) 42%, #a8350f 100%);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 107, 53, 0.5);
}
.flyer-poster__pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(0.4px);
}
.flyer-poster__pin--left  { left: 16px; }
.flyer-poster__pin--right { right: 16px; background: radial-gradient(circle at 34% 30%, #d9f0d0 0%, var(--forest-400) 45%, var(--forest-700) 100%); box-shadow: 0 4px 7px rgba(0,0,0,0.5), 0 0 10px rgba(74,124,78,0.5); }

/* handwritten tape note */
.flyer-note {
  position: absolute;
  right: -6px;
  bottom: -26px;
  transform: rotate(5deg);
  padding: 0.35rem 1rem;
  font-family: var(--font-family-script);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brown-700);
  background: rgba(245, 222, 179, 0.92);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.flyer-note::before {
  content: "✦";
  color: var(--sunset-orange);
  margin-right: 0.3rem;
  font-family: var(--font-family-sans);
  font-size: 1.1rem;
}

/* ---------- footnote ---------- */
.flyer-foot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  font-family: var(--font-family-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--text-sm);
  color: var(--neutral-500);
}
.flyer-foot strong { color: var(--campfire-yellow); font-weight: 600; }

/* ---------- entrance reveals ---------- */
.flyer-reveal { opacity: 0; animation: flyer-up 0.85s cubic-bezier(.2, .75, .25, 1) both; }
.flyer-d1 { animation-delay: 0.05s; }
.flyer-d2 { animation-delay: 0.18s; }
.flyer-d3 { animation-delay: 0.32s; }
.flyer-d4 { animation-delay: 0.46s; }
.flyer-d5 { animation-delay: 0.60s; }
.flyer-board.flyer-reveal { animation-duration: 1s; animation-delay: 0.25s; }

/* ---------- keyframes ---------- */
@keyframes flyer-ember {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(var(--s, 1)); }
  10%  { opacity: 1; }
  85%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-78vh) translateX(18px) scale(var(--s, 1)); }
}
@keyframes flyer-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}
@keyframes flyer-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .flyer-stage__inner { grid-template-columns: 1fr; gap: 3rem; }
  .flyer-intro { text-align: center; }
  .flyer-eyebrow, .flyer-actions, .flyer-spots { justify-content: center; }
  .flyer-lede { margin-left: auto; margin-right: auto; }
  .flyer-spots { margin-left: auto; margin-right: auto; text-align: left; }
  .flyer-board { order: -1; }
}
@media (max-width: 520px) {
  .flyer-spots { grid-template-columns: 1fr; max-width: 22rem; }
  .flyer-actions { justify-content: center; }
  .flyer-note { font-size: 1.4rem; right: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .flyer-embers, .flyer-stage__glow { animation: none; }
  .flyer-embers span { display: none; }
  .flyer-reveal { opacity: 1; animation: none; }
  .flyer-poster { transition: none; }
}
