:root {
  --app: #151713;
  --panel: #20231d;
  --raised: #2b2f27;
  --text: #f5efe3;
  --muted: #b7b89d;
  --line: #4b553f;
  --primary: #9fb48c;
  --secondary: #d29362;
  --tertiary: #76b6ba;
  --accent: #e0c15a;
  --paper: #f6f1e8;
  --paper-line: #d7c1aa;
  --paper-text: #2f332d;
  --paper-muted: #687061;
  color-scheme: dark;
  font-family: "Source Sans 3", "Avenir Next", Avenir, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--app);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--tertiary);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(18px, 5vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(188px, 52vw);
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.32));
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: color-mix(in srgb, var(--text), transparent 20%);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 116px clamp(18px, 6vw, 80px) 58px;
  isolation: isolate;
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.03);
  animation: hero-breathe 12000ms ease-in-out infinite alternate;
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 10, 8, 0.94) 0%, rgba(13, 14, 11, 0.76) 32%, rgba(13, 14, 11, 0.24) 70%, rgba(13, 14, 11, 0.48) 100%),
    linear-gradient(0deg, rgba(21, 23, 19, 0.94) 0%, rgba(21, 23, 19, 0.24) 44%, rgba(21, 23, 19, 0.6) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 36%;
  background: linear-gradient(0deg, var(--app), rgba(21, 23, 19, 0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  animation: rise-in 760ms cubic-bezier(.16, 1, .3, 1) both;
}

.eyebrow,
.section-kicker,
.world-poster p,
.proof-list,
.policy-effective,
.policy-callout > strong,
.policy-content h3,
.store-button span {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 760;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.6rem, 13vw, 11.5rem);
  line-height: 0.86;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

h2 {
  max-width: 940px;
  font-size: clamp(2.25rem, 5.7vw, 6rem);
  line-height: 0.95;
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--primary);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(1.48rem, 3.1vw, 2.8rem);
  line-height: 1.08;
}

.hero-body,
.storyline-heading p,
.poster-copy p,
.cast-copy p,
.play-copy p,
.closing p,
.admin-shell p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.38vw, 1.24rem);
  line-height: 1.58;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--text), transparent 68%);
  background: rgba(21, 23, 19, 0.42);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms cubic-bezier(.16, 1, .3, 1),
    border-color 180ms cubic-bezier(.16, 1, .3, 1),
    background 180ms cubic-bezier(.16, 1, .3, 1);
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(21, 23, 19, 0.72);
}

.store-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #17150e;
}

.store-button.primary:hover {
  background: #f0cd61;
}

.store-button span {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-posters {
  position: absolute;
  right: clamp(-72px, -3vw, -24px);
  bottom: clamp(18px, 7vw, 84px);
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 180px;
  gap: 18px;
  opacity: 0.92;
  transform: rotate(-5deg);
  animation: poster-arrive 900ms 120ms cubic-bezier(.16, 1, .3, 1) both;
}

.hero-posters img {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(224, 193, 90, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.hero-posters img:nth-child(2) {
  margin-top: 42px;
}

.storyline,
.poster-cinema,
.cast-section,
.play-section,
.closing {
  padding: clamp(76px, 12vw, 150px) clamp(18px, 6vw, 80px);
}

.storyline {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  border-top: 1px solid var(--line);
}

.storyline-heading {
  display: grid;
  gap: 22px;
}

.path-list {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.path-list li {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.path-list span {
  color: var(--secondary);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.path-list strong {
  margin-top: 30px;
  color: var(--text);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.06;
}

.path-list p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.poster-cinema {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.97), rgba(246, 241, 232, 0.86)),
    var(--paper);
  color: var(--paper-text);
}

.poster-copy {
  position: sticky;
  top: 34px;
  align-self: start;
}

.poster-copy .section-kicker,
.cast-copy .section-kicker {
  color: var(--secondary);
}

.poster-copy p,
.cast-copy p {
  color: var(--paper-muted);
}

.poster-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
}

.world-poster {
  position: relative;
  min-width: 0;
  margin: 0;
  color: var(--text);
  overflow: hidden;
  background: #0f120e;
  box-shadow: 0 24px 60px rgba(47, 51, 45, 0.2);
  transition:
    transform 220ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 220ms cubic-bezier(.16, 1, .3, 1);
}

.world-poster:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 86px rgba(47, 51, 45, 0.28);
}

.world-poster.offset {
  margin-top: 46px;
}

.world-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.4;
  object-fit: cover;
}

.world-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(10, 12, 9, 0.94), rgba(10, 12, 9, 0));
}

.world-poster div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
}

.world-poster p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-poster h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.55rem);
  line-height: 0.98;
}

.cast-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: end;
  color: var(--paper-text);
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
}

.character-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.character-row figure {
  margin: 0;
}

.character-row img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  border: 1px solid var(--paper-line);
  filter: saturate(0.95) contrast(1.02);
  transition:
    transform 220ms cubic-bezier(.16, 1, .3, 1),
    filter 220ms cubic-bezier(.16, 1, .3, 1);
}

.character-row figure:hover img {
  transform: translateY(-6px);
  filter: saturate(1.06) contrast(1.04);
}

.character-row figcaption {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: var(--paper-text);
  font-weight: 700;
}

.character-row span {
  color: var(--paper-muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.play-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(21, 23, 19, 0.95), rgba(32, 35, 29, 0.9)),
    var(--app);
}

.phone-frame {
  justify-self: center;
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 54%);
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.42),
    0 0 0 12px rgba(15, 17, 14, 0.32);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: center top;
}

.play-copy {
  display: grid;
  gap: 20px;
}

.proof-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--primary);
  font-size: 0.88rem;
  line-height: 1.55;
  list-style: none;
}

.proof-list li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.closing {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 17, 14, 0.98), rgba(15, 17, 14, 0.72)),
    url("/assets/world-npc-quest-log.jpg") center / cover;
}

.closing h2 {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.policy-page {
  background:
    linear-gradient(135deg, rgba(159, 180, 140, 0.1), transparent 38%),
    var(--app);
}

.policy-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.policy-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(40px, 8vw, 112px);
}

.policy-summary {
  position: sticky;
  top: 32px;
}

.policy-summary h1 {
  max-width: 520px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.9;
}

.policy-summary > p:not(.eyebrow),
.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.policy-effective {
  margin: 28px 0;
  font-size: 0.78rem !important;
  line-height: 1.8 !important;
}

.policy-callout {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.policy-callout > strong {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-callout ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.policy-content {
  min-width: 0;
}

main.policy-page {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

main.policy-page .policy-content > h1 {
  margin: 10px 0 32px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.9;
}

main.policy-page .policy-content > h2 {
  margin-top: 36px;
}

.policy-content section {
  padding: 0 0 42px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
  border-bottom: 0;
}

.policy-content h2 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.policy-content h3 {
  margin: 28px 0 8px;
  color: var(--primary);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-content p {
  margin: 0 0 18px;
}

.policy-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.policy-content li + li {
  margin-top: 8px;
}

.policy-content a:hover,
.policy-footer a:hover {
  color: var(--text);
}

.admin-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-shell {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-shell h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.95;
}

.admin-shell code {
  color: var(--accent);
}

.admin-checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes poster-arrive {
  from {
    opacity: 0;
    transform: translateY(32px) rotate(-8deg);
  }
  to {
    opacity: 0.92;
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes hero-breathe {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.07);
  }
}

@supports (animation-timeline: view()) {
  .path-list li,
  .world-poster,
  .character-row figure,
  .phone-frame {
    animation: reveal-up both cubic-bezier(.16, 1, .3, 1);
    animation-timeline: view();
    animation-range: entry 8% cover 30%;
  }

  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero-posters {
    right: -92px;
    grid-template-columns: 140px 140px;
  }

  .hero-posters img {
    width: 140px;
  }

  .storyline,
  .poster-cinema,
  .cast-section,
  .play-section,
  .policy-shell {
    grid-template-columns: 1fr;
  }

  .poster-copy {
    position: static;
  }

  .path-list {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 14px 18px;
  }

  .brand {
    width: min(168px, 62vw);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 90svh;
    padding: 102px 18px 44px;
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero-vignette {
    background:
      linear-gradient(0deg, rgba(10, 12, 9, 0.96) 0%, rgba(10, 12, 9, 0.76) 40%, rgba(10, 12, 9, 0.18) 100%),
      linear-gradient(90deg, rgba(10, 12, 9, 0.82), transparent 92%);
  }

  .hero-posters {
    display: none;
  }

  h1 {
    font-size: clamp(4.2rem, 24vw, 7.1rem);
  }

  h2 {
    font-size: clamp(2.15rem, 12vw, 4.1rem);
  }

  .store-actions {
    width: 100%;
  }

  .store-button {
    width: 100%;
  }

  .path-list,
  .poster-wall,
  .character-row {
    grid-template-columns: 1fr;
  }

  .path-list li {
    min-height: auto;
  }

  .world-poster.offset {
    margin-top: 0;
  }

  .world-poster img {
    aspect-ratio: 4 / 5;
  }

  .character-row {
    gap: 24px;
  }

  .character-row img {
    aspect-ratio: 4 / 4.6;
  }

  .phone-frame {
    width: min(360px, 100%);
  }

  .site-footer {
    flex-direction: column;
  }
}
