/* ============================================================
   THE NIGHT OF FORGOTTEN TREATS — Updated to match site theme
   ============================================================ */

:root {
  --ft-accent: #e0862f;
  --ft-accent-deep: #b45c14;
  --ft-ink: #281b3d;
  --ft-ink-soft: #30234d;
  --ft-muted: #716787;
  --ft-paper: #fffaf5;
  --ft-lav: #f5efff;
  --ft-blue: #f7faff;
  --ft-dream: radial-gradient(120% 120% at 50% 0%, #f8f5ff 0%, #f5efff 100%);
  --ft-line: rgba(130, 104, 170, 0.22);
  --ft-line-soft: rgba(130, 104, 170, 0.22);
  --ft-glow-a: rgba(250, 183, 94, 0.28);
  --ft-glow-b: rgba(152, 113, 221, 0.26);
  --ft-shadow: 0 24px 70px rgba(91, 58, 133, 0.12);
  --ft-shadow-strong: 0 34px 90px rgba(142, 104, 205, 0.28);
}

/* Base */
.forgotten-treats-body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ft-ink);
  background: var(--ft-paper);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.forgotten-treats-body * {
  box-sizing: border-box;
}

.forgotten-treats-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 0;
  z-index: 10000;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(115deg, var(--ft-accent), var(--ft-accent-deep));
  border-radius: 0 0 12px 0;
  transition: top 180ms ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Progress */
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9f1a 0%, #ff6b1c 50%, #f97316 100%);
  box-shadow: 0 0 14px rgba(240, 140, 60, 0.55);
  transition: width 120ms ease-out;
}

/* Navbar */
.ft-navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 245, 0.92);
  border-bottom: 1px solid var(--ft-line-soft);
}

/* Hero */
.ft-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(90px, 12vw, 150px) 20px clamp(80px, 10vw, 120px);
  background:
    radial-gradient(120% 120% at 50% 0%, #fffaf5 0%, #fff8f2 40%, #f8f5ff 100%);
}

.ft-ambient {
  position: absolute;
  width: clamp(220px, 24vw, 320px);
  height: clamp(220px, 24vw, 320px);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.8;
}

.ft-ambient-one {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(250, 183, 94, 0.26), transparent 70%);
}

.ft-ambient-two {
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(178, 150, 240, 0.24), transparent 70%);
}

.ft-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ft-web {
  position: absolute;
  width: clamp(90px, 12vw, 150px);
  opacity: 0.7;
  filter: drop-shadow(0 10px 18px rgba(91, 58, 133, 0.12));
}

.ft-web-left {
  top: 8%;
  left: 4%;
}

.ft-web-right {
  top: 6%;
  right: 4%;
  transform: scaleX(-1);
}

.ft-spider {
  position: absolute;
  top: 0;
  left: 16%;
}

.ft-spider-swing {
  position: relative;
  padding-top: clamp(60px, 9vw, 90px);
  transform-origin: 50% 0;
  animation: ft-sway 5.8s ease-in-out infinite;
}

.ft-spider-swing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.6px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(101, 72, 163, 0.9), rgba(101, 72, 163, 0.4));
  transform: translateX(-50%);
}

.ft-spider-swing img {
  width: clamp(24px, 3vw, 32px);
  filter: drop-shadow(0 6px 10px rgba(91, 58, 133, 0.18));
}

.ft-ghost-hero {
  position: absolute;
  bottom: 14%;
  right: 6%;
  width: clamp(90px, 10vw, 130px);
  animation: ft-float 6.4s ease-in-out infinite;
  filter: drop-shadow(0 14px 24px rgba(91, 58, 133, 0.16));
}

.ft-bat {
  position: absolute;
  width: clamp(54px, 7vw, 84px);
  animation: ft-float 5.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(91, 58, 133, 0.14));
}

.ft-bat-left {
  top: 34%;
  left: 6%;
  animation-delay: -0.8s;
}

.ft-bat-right {
  top: 46%;
  right: 10%;
  animation-delay: -2.2s;
}

.ft-sparkle {
  position: absolute;
  width: clamp(18px, 2.6vw, 26px);
  animation: ft-twinkle 2.8s ease-in-out infinite;
}

.ft-sparkle-1 {
  top: 18%;
  left: 28%;
}

.ft-sparkle-2 {
  top: 26%;
  right: 24%;
  animation-delay: 1.2s;
}

.ft-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  max-width: min(880px, 90vw);
}

.ft-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ft-accent-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--ft-line);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(180, 92, 20, 0.1);
}

.ft-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ft-accent);
  box-shadow: 0 0 0 6px rgba(224, 134, 47, 0.14);
}

.ft-hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.06;
  letter-spacing: -1.8px;
}

.ft-accent {
  background: linear-gradient(100deg, var(--ft-accent) 10%, var(--ft-accent-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ft-hero-lede {
  margin: 0 auto;
  max-width: 720px;
  color: var(--ft-ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
  font-weight: 600;
  text-wrap: pretty;
}

.ft-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(6px, 1vw, 10px);
}

.ft-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ft-accent-deep);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1.5px solid var(--ft-line);
  border-radius: 999px;
}

.ft-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: clamp(10px, 2vw, 16px) auto 0;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(115deg, var(--ft-accent), var(--ft-accent-deep));
  border-radius: 999px;
  box-shadow: 0 16px 36px var(--ft-glow-a);
  transition: transform 220ms ease, box-shadow 220ms ease;
  text-decoration: none;
}

.ft-primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(217, 119, 6, 0.28);
}

.ft-primary-btn svg {
  transition: transform 220ms ease;
}

.ft-primary-btn:hover svg {
  transform: translateX(4px);
}

.ft-scroll {
  position: absolute;
  bottom: clamp(20px, 4vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ft-muted);
  text-decoration: none;
  opacity: 0.9;
}

.ft-scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ft-accent);
  box-shadow: 0 0 0 8px rgba(224, 134, 47, 0.14);
  animation: ft-pulse 2.4s ease-in-out infinite;
}

/* Scenes */
.ft-scene {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 10vw, 120px) clamp(18px, 6vw, 40px);
}

.ft-scene-alt {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 243, 224, 0.6) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.9) 0%, #fffaf5 100%);
}

.ft-scene-dream {
  --ft-dream: radial-gradient(120% 120% at 50% 0%, #f8f5ff 0%, #f5efff 100%);
}

.ft-scene-eerie {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(247, 242, 255, 0.9) 0%, transparent 70%),
    linear-gradient(180deg, #f8f5ff 0%, #f6f3ff 100%);
}

.ft-scene-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 6vw, 60px);
  align-items: center;
  max-width: min(1180px, 92vw);
  margin: 0 auto;
}

.ft-scene-media {
  grid-column: 1 / span 6;
}

.ft-scene:nth-child(even) .ft-scene-media {
  grid-column: 7 / span 6;
}

.ft-scene:nth-child(even) .ft-scene-content {
  grid-column: 1 / span 5;
  order: -1;
}

.ft-scene-content {
  grid-column: 7 / span 5;
  display: grid;
  gap: clamp(12px, 2vw, 18px);
}

.ft-frame {
  position: relative;
  border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--ft-shadow);
  background: radial-gradient(120% 120% at 30% 20%, #fff3e0, #ffe0b2 60%, #ffcc80);
}

.ft-frame-dream {
  background: radial-gradient(120% 120% at 30% 20%, #f3f0ff, #e9e3ff 60%, #ddd6ff);
}

.ft-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms ease;
}

.ft-frame:hover .ft-img {
  transform: scale(1.05);
}

.ft-figcap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ft-ink-soft);
  background: linear-gradient(180deg, transparent 0%, rgba(20, 16, 36, 0.5) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.ft-scene-header {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
}

.ft-scene-num {
  display: inline-grid;
  place-items: center;
  width: clamp(44px, 5vw, 52px);
  height: clamp(36px, 4vw, 42px);
  font-weight: 900;
  font-size: clamp(13px, 1.6vw, 15px);
  color: #fff;
  background: linear-gradient(115deg, var(--ft-accent), var(--ft-accent-deep));
  border-radius: 999px;
  box-shadow: 0 10px 22px var(--ft-glow-a);
  letter-spacing: 2px;
}

.ft-scene-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.8px;
}

.ft-scene-sub {
  margin: -4px 0 0 clamp(56px, 7vw, 68px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ft-accent-deep);
  opacity: 0.9;
}

.ft-prose {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  margin-top: clamp(6px, 1vw, 10px);
}

.ft-prose p {
  margin: 0;
  color: var(--ft-ink-soft);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.95;
  font-weight: 600;
  text-wrap: pretty;
}

.ft-quote {
  margin: clamp(6px, 1vw, 10px) 0;
  padding: clamp(14px, 2vw, 18px) clamp(18px, 3vw, 26px);
  border-left: 4px solid var(--ft-accent);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 249, 240, 0.98) 0%, rgba(255, 243, 224, 0.9) 100%);
  box-shadow: 0 12px 28px rgba(180, 92, 20, 0.12);
  color: var(--ft-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
  font-style: italic;
}

/* Closing */
.ft-closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(80px, 12vw, 130px) 20px;
  background:
    radial-gradient(120% 120% at 50% 100%, rgba(178, 150, 240, 0.22) 0%, transparent 60%),
    radial-gradient(120% 120% at 50% 0%, #fffaf5 0%, #f8f5ff 100%);
}

.ft-closing-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ft-sparkle-c1 {
  position: absolute;
  top: 16%;
  left: 18%;
  width: clamp(18px, 2.6vw, 26px);
  animation: ft-twinkle 3s ease-in-out infinite;
}

.ft-sparkle-c2 {
  position: absolute;
  top: 22%;
  right: 16%;
  width: clamp(18px, 2.6vw, 26px);
  animation: ft-twinkle 3s ease-in-out infinite 1s;
}

.ft-ghost-closing {
  position: absolute;
  bottom: 12%;
  left: 12%;
  width: clamp(80px, 9vw, 110px);
  animation: ft-float 6s ease-in-out infinite;
  filter: drop-shadow(0 14px 24px rgba(91, 58, 133, 0.16));
}

.ft-closing-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  max-width: min(880px, 90vw);
}

.ft-closing-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.ft-closing-sub {
  margin: 0 auto;
  color: var(--ft-ink-soft);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.9;
  font-weight: 600;
}

.ft-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(8px, 1.6vw, 14px);
}

.ft-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--ft-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--ft-line-soft);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(91, 58, 133, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
  text-decoration: none;
}

.ft-secondary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(91, 58, 133, 0.14);
}

.ft-secondary-btn svg {
  transition: transform 220ms ease;
}

.ft-secondary-btn:hover svg {
  transform: translateX(4px);
}

/* Footer */
.ft-footer {
  border-top: 1px solid var(--ft-line-soft);
  background: rgba(255, 250, 245, 0.95);
  padding: clamp(22px, 4vw, 30px) 20px;
}

.ft-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: min(1180px, 92vw);
  margin: 0 auto;
}

.ft-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ft-ink);
  text-decoration: none;
}

.ft-footer-brand img {
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(91, 58, 133, 0.12);
}

.ft-footer-note {
  margin: 0;
  color: var(--ft-muted);
  font-size: 13px;
  font-weight: 600;
}

.ft-footer-link {
  color: var(--ft-accent-deep);
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
}

/* Reveal */
.reveal-ready {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes ft-sway {
  0%, 100% { rotate: -1.6deg; }
  50% { rotate: 1.6deg; }
}

@keyframes ft-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes ft-twinkle {
  0%, 100% { opacity: 0.7; scale: 0.9; }
  50% { opacity: 1; scale: 1.08; }
}

@keyframes ft-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(224, 134, 47, 0.12); }
  50% { box-shadow: 0 0 0 10px rgba(224, 134, 47, 0.08); }
}

/* Responsive */
@media (max-width: 1080px) {
  .ft-scene-media,
  .ft-scene:nth-child(even) .ft-scene-media {
    grid-column: 1 / span 12;
  }
  .ft-scene-content,
  .ft-scene:nth-child(even) .ft-scene-content {
    grid-column: 1 / span 12;
    order: 1;
  }
  .ft-scene-sub {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .ft-web-left,
  .ft-web-right {
    display: none;
  }
  .ft-spider {
    left: 10%;
  }
  .ft-bat-left {
    left: 4%;
  }
  .ft-bat-right {
    right: 6%;
  }
  .ft-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@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;
  }
  .ft-frame:hover .ft-img {
    transform: scale(1.01);
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
