@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/nunito-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/nunito-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #111b2e;
  --night-deep: #0d1524;
  --night-card: #1a2740;
  --cream: #fff5df;
  --muted: #cedaf0;
  --gold: #ffce61;
  --gold-ink: #3e200b;
  --font-sans: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); color: var(--cream); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { margin: 0; line-height: 1.55; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* Floating Pill Nav */
.pill-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: rgba(17, 27, 46, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 206, 97, 0.22);
  font-size: 14px;
  font-weight: 800;
}

.pill-brand { color: var(--cream); font-weight: 900; }
.pill-nav a:hover, .pill-nav a.is-active { color: var(--gold); }
.pill-cta { padding: 7px 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.pill-cta:hover { color: var(--gold-ink); filter: brightness(1.05); }

/* Twilight Hero */
.twilight-hero {
  position: relative;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding: 56px 0;
  overflow: hidden;
}

.twilight-bg { position: absolute; inset: 0; z-index: 0; }
.twilight-bg img { width: 100%; height: 100%; object-fit: cover; }

.twilight-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 27, 46, 0.9) 0%, rgba(17, 27, 46, 0.68) 55%, rgba(17, 27, 46, 0.45) 100%);
}

.twilight-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-title { margin: 0; }
.hero-logo {
  width: min(370px, 88%);
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 18px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.lamp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 850;
  transition: transform 140ms ease;
}

.lamp-btn--gold {
  border: 0;
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 4px 0 #c9962c, 0 12px 26px -8px rgba(255, 206, 97, 0.45);
}

.lamp-btn--ghost {
  border: 1.5px solid rgba(255, 245, 223, 0.3);
  background: rgba(255, 245, 223, 0.08);
  color: var(--cream);
}

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

/* Standard Black Store Badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: #000000;
  color: #ffffff;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.store-badge-text small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.88;
}

.store-badge-text strong {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

/* Lantern Video Frame */
.twilight-stage { display: flex; justify-content: center; }

.lantern-frame {
  position: relative;
  width: min(290px, 76vw);
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(255, 206, 97, 0.42);
  background: #0d1524;
  box-shadow:
    0 0 60px -12px rgba(255, 206, 97, 0.25),
    0 28px 56px -16px rgba(0, 0, 0, 0.7);
}

.lantern-video { width: 100%; height: auto; max-height: 78svh; object-fit: contain; display: block; margin-top: -12%; }

.lantern-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.lantern-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 27, 46, 0.85);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease;
}

.lantern-toggle:hover { background: rgba(26, 39, 64, 0.96); }
.lantern-toggle .icon-play,
.lantern-toggle .icon-sound { display: none; }
.lantern-toggle[aria-pressed='true'] .icon-pause,
.lantern-toggle[aria-pressed='true'] .icon-muted { display: none; }
.lantern-toggle[aria-pressed='true'] .icon-play,
.lantern-toggle[aria-pressed='true'] .icon-sound { display: block; }

/* Story Band */
.story-band {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--night-deep);
  border-top: 1px solid rgba(255, 206, 97, 0.14);
}

.story-text { max-width: 60ch; }
.amber-eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.story-text h2 { margin: 8px 0 0; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 900; }
.story-text p { margin: 14px 0 0; font-size: 17px; color: var(--muted); line-height: 1.7; }
.journal-link { display: inline-flex; margin-top: 20px; font-weight: 850; color: var(--gold); }
.journal-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Journal Page */
.journal-container { width: min(780px, calc(100% - 40px)); }

.journal-hero {
  padding: clamp(56px, 7vw, 84px) 0 clamp(28px, 4vw, 44px);
  background: radial-gradient(circle at 60% 25%, rgba(255, 206, 97, 0.14) 0%, transparent 55%), var(--night);
  border-bottom: 1px solid rgba(255, 206, 97, 0.14);
}

.journal-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
}

.journal-lead {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.journal-section {
  padding: clamp(44px, 6vw, 72px) 0;
  background: var(--night-deep);
}

.journal-entry {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 26px;
  background: var(--night-card);
  border: 1px solid rgba(255, 206, 97, 0.18);
}

.journal-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.post-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.post-back:hover { color: var(--gold); }

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--night-card);
  border: 1px solid rgba(255, 206, 97, 0.18);
  transition: transform 160ms ease, border-color 160ms ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 206, 97, 0.5);
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 206, 97, 0.14);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta { display: flex; align-items: center; gap: 12px; }
.blog-card h2 { margin: 14px 0 0; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 900; line-height: 1.2; color: var(--cream); }
.blog-card p { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.blog-read-more { display: inline-flex; margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 850; color: var(--gold); }
.journal-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 12.5px;
  font-weight: 850;
}
.journal-date { font-size: 14px; font-weight: 750; color: var(--muted); }

.journal-entry h2 { margin: 14px 0 0; font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 900; line-height: 1.15; }
.journal-entry p { margin: 16px 0 0; font-size: 16.5px; color: var(--muted); line-height: 1.7; }

.rules-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rule-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 206, 97, 0.2);
}

.rule-shot figcaption strong { display: block; font-size: 15px; font-weight: 850; color: var(--cream); }
.rule-shot figcaption span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.journal-footer-cta {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 245, 223, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.journal-back-link { font-weight: 800; font-size: 15px; color: var(--muted); }
.journal-back-link:hover { color: var(--gold); }

/* CTA */
.cta-section { padding: 52px 0; background: var(--night); border-top: 1px solid rgba(255, 245, 223, 0.08); }
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  background: var(--night-card);
  border: 1px solid rgba(255, 206, 97, 0.18);
}

.cta-band h2 { margin: 0; font-size: 1.85rem; font-weight: 900; }
.cta-band p { margin: 4px 0 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store-status { flex: 1 0 100%; margin: 0; font-size: 14px; font-weight: 750; color: var(--gold); }

.site-footer { padding: 22px 0; border-top: 1px solid rgba(255, 245, 223, 0.08); background: var(--night); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 10px; }
.footer-links a { color: var(--gold); font-weight: 800; }

@media (max-width: 900px) {
  .twilight-hero { min-height: auto; }
  .twilight-grid { grid-template-columns: 1fr; }
  .twilight-stage { order: -1; }
}

@media (max-width: 640px) {
  .rules-strip { grid-template-columns: 1fr; }
  .pill-brand { display: none; }
  .hero-actions, .cta-actions { flex-direction: column; width: 100%; }
  .lamp-btn { width: 100%; }
}
