:root {
  color-scheme: dark;
  --night: #06131c;
  --night-2: #0b1e2b;
  --ink: #f6efe2;
  --muted: #9eb5be;
  --gold: #f4c26b;
  --gold-soft: rgba(244, 194, 107, 0.22);
  --rule: #183444;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right));
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
}

.hero-art,
.hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-art {
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  transform: scale(1.015);
  animation: heroBreathe 22s ease-in-out infinite alternate;
}

@keyframes heroBreathe {
  0% { transform: scale(1.015) translateY(0px); }
  100% { transform: scale(1.045) translateY(-6px); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 55% at 22% 92%, rgba(6, 19, 28, 0.72) 0%, rgba(6, 19, 28, 0) 70%),
    linear-gradient(
      to bottom,
      rgba(6, 19, 28, 0.38) 0%,
      rgba(6, 19, 28, 0.04) 30%,
      rgba(6, 19, 28, 0.34) 64%,
      var(--night) 100%
    );
  pointer-events: none;
}

.hero-fx {
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-block: 4rem 4.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.05rem;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1;
  font-size: clamp(3.6rem, 13vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-shadow: 0 6px 36px rgba(6, 19, 28, 0.65);
}

.tagline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 90, "WONK" 1;
  font-size: clamp(1.45rem, 3.6vw, 2.3rem);
  line-height: 1.18;
  max-width: 24ch;
  color: var(--gold);
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(6, 19, 28, 0.65);
}

.lede {
  margin: 0;
  max-width: 48ch;
  color: rgba(246, 239, 226, 0.9);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(6, 19, 28, 0.75);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 0.5rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--night);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.store .meta {
  font-weight: 500;
  opacity: 0.68;
}

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
section {
  padding-block: 4.75rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 44rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 70, "WONK" 1;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

/* ── STORIES GALLERY ──────────────────────────────────────────────────── */
.stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.15rem;
}

@media (min-width: 42rem) {
  .stories {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem 1.35rem;
  }
}

.story {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.story-frame {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--night-2);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(246, 239, 226, 0.12);
}

.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 19, 28, 0.76);
  color: var(--gold);
  border: 1px solid rgba(244, 194, 107, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.story-title {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 60, "WONK" 1;
  font-size: 1.06rem;
  line-height: 1.2;
  color: var(--ink);
}

.story-sub {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (prefers-reduced-motion: no-preference) {
  .story-frame {
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease;
  }
  .story:hover .story-frame {
    transform: translateY(-5px);
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(244, 194, 107, 0.38);
  }
}

/* ── FEATURE BAND ─────────────────────────────────────────────────────── */
.band {
  background: var(--night-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 2.25rem 2.75rem;
}

.point h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 32, "SOFT" 70, "WONK" 1;
  font-size: 1.5rem;
  line-height: 1.18;
  color: var(--ink);
}

.point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ── PALACE INTERLUDE BANNER ──────────────────────────────────────────── */
.interlude {
  position: relative;
  min-height: 25rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-block: 4rem;
  border-bottom: 1px solid var(--rule);
}

.interlude-art,
.interlude-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.interlude-art {
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
}

.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(6, 19, 28, 0.52) 0%,
    rgba(6, 19, 28, 0.14) 36%,
    rgba(6, 19, 28, 0.56) 72%,
    var(--night) 100%
  );
  pointer-events: none;
}

.interlude-fx {
  z-index: 2;
}

.interlude-inner {
  position: relative;
  z-index: 3;
}

.interlude-quote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 90, "WONK" 1;
  font-size: clamp(1.55rem, 3.8vw, 2.45rem);
  line-height: 1.22;
  max-width: 28ch;
  color: var(--ink);
  text-shadow: 0 4px 26px rgba(6, 19, 28, 0.78);
}

/* ── PRICING ──────────────────────────────────────────────────────────── */
.price {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem 3.5rem;
  align-items: baseline;
}

.price > div {
  flex: 1 1 18rem;
}

.price h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 70, "WONK" 1;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--ink);
}

.price p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.6rem;
}

.email {
  color: var(--muted);
  user-select: all;
}

/* ── SUBPAGES (PRIVACY / SUPPORT) ─────────────────────────────────────── */
.subhead {
  padding-block: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.subhead .brand-link {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 32, "SOFT" 80, "WONK" 1;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.subhead .brand-link:hover {
  color: var(--gold);
}

.prose {
  padding-block: 3.5rem 5rem;
  max-width: 46rem;
}

.prose h1 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 75, "WONK" 1;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.prose .updated {
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin: 2.4rem 0 0.65rem;
  font-size: 1.45rem;
}

.prose p,
.prose li {
  color: rgba(246, 239, 226, 0.86);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.support-card {
  margin-top: 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  background: var(--night-2);
  border: 1px solid var(--rule);
}

@media (prefers-reduced-motion: reduce) {
  .hero-art {
    animation: none;
    transform: none;
  }
}
