/* Crown & Grail: crownandgrail.com
   Palette from the release campaign (artwork/batch-22): ink, navy, gold, vellum. Baskerville throughout. */

@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/libre-baskerville-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/libre-baskerville-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/libre-baskerville-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #090f17;
  --navy: #0d1f26;
  --gold: #e0b866;
  --gold-dim: #a9884a;
  --vellum: #f2ede0;
  --muted: #b9b3a5;
  --line: rgba(224, 184, 102, .28);
  --serif: Baskerville, 'Libre Baskerville', 'Baskerville Old Face', Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--vellum);
  font: 400 1.0625rem/1.7 var(--serif);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vellum); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); padding: 8px 12px; }

.eyebrow, .tracked {
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold);
  font-size: .82rem;
}
.rule { width: 120px; height: 1px; margin: 1.4rem auto; border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.site-head { position: absolute; inset: 0 0 auto; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--vellum); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.site-head nav { display: flex; gap: clamp(.9rem, 3vw, 1.8rem); font-size: .9rem; }
.site-head nav a { color: var(--vellum); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--gold); }
.page .site-head { position: static; border-bottom: 1px solid var(--line); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px 0 72px;
  background: var(--ink) url('/img/key-art-wide.webp') center 38% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,15,23,.55) 0%, rgba(9,15,23,.05) 35%, rgba(9,15,23,.35) 70%, var(--ink) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero .wordmark { width: min(88vw, 640px); margin: 0 auto .4rem; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.hero .tagline { font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin: 1.2rem 0 .4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero .soon { margin-top: 1.6rem; }
.hero-spacer { height: 34vh; }
@media (max-width: 700px) {
  .hero { background-image: url('/img/key-art-tall.webp'); background-position: center 30%; }
  .hero-spacer { height: 38vh; }
}

.badge-soon {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .7rem 1.4rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .82rem;
  background: rgba(9,15,23,.6);
}
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem 1.4rem; color: var(--vellum); font-size: .95rem; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.facts li + li::before { content: '•'; color: var(--gold); margin-right: 1.4rem; }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section h2 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
.intro { max-width: 680px; margin: 0 auto; text-align: center; font-size: 1.12rem; }

/* Acts */
.act {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0;
  background: var(--navy) center / cover no-repeat;
  border-top: 1px solid var(--line);
}
.act::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,15,23,.92) 0%, rgba(9,15,23,.75) 45%, rgba(9,15,23,.35) 100%); }
.act.s1 { background-image: url('/img/act-s1.webp'); }
.act.s2 { background-image: url('/img/act-s2.webp'); }
.act.s3 { background-image: url('/img/act-s3.webp'); }
.act .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.act h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.act .count { color: var(--gold); font-size: .95rem; letter-spacing: .08em; }
.packs { display: flex; justify-content: center; gap: clamp(6px, 1.5vw, 14px); }
.packs figure { margin: 0; flex: 0 1 150px; text-align: center; }
.packs img { filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); transition: transform .3s ease; }
.packs figure:nth-child(odd) img { transform: rotate(-2deg); }
.packs figure:nth-child(even) img { transform: rotate(2deg) translateY(8px); }
.packs figure:hover img { transform: translateY(-6px); }
.packs figcaption { font-size: .78rem; color: var(--muted); margin-top: .7rem; line-height: 1.3; }
@media (max-width: 820px) {
  .act .wrap { grid-template-columns: 1fr; }
  .act::before { background: rgba(9,15,23,.8); }
}

/* Card fan */
.fan { display: flex; justify-content: center; margin: 3rem auto 0; padding-inline: 4%; }
.fan img { width: min(22%, 210px); margin-inline: -1.6%; filter: drop-shadow(0 12px 22px rgba(0,0,0,.7));
  transition: transform .3s ease; }
.fan img:nth-child(1) { transform: rotate(-12deg) translateY(28px); }
.fan img:nth-child(2) { transform: rotate(-6deg) translateY(6px); }
.fan img:nth-child(4) { transform: rotate(6deg) translateY(6px); }
.fan img:nth-child(5) { transform: rotate(12deg) translateY(28px); }
.fan img:hover { z-index: 1; translate: 0 -14px; }

/* Leaders */
.leaders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); margin-top: 2.6rem; }
.leaders figure { margin: 0; text-align: center; }
.leaders img { border-radius: 999px 999px 6px 6px; border: 1px solid var(--gold-dim); aspect-ratio: 5 / 7; object-fit: cover; width: 100%; }
.leaders figcaption { margin-top: .6rem; font-size: .9rem; }
@media (max-width: 700px) { .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feature trio */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 2.6rem; }
.feature { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.feature h3 { font-size: 1.3rem; color: var(--gold); }
.feature p { color: var(--muted); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Fair by design */
.fair { background: var(--ink) url('/img/vellum.webp') center / cover no-repeat; border-block: 1px solid var(--line); }
.fair .emblem { width: 120px; margin: 0 auto 1rem; }
.fair ul { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 620px; }
.fair li { padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.fair li::before { content: '✦'; color: var(--gold); position: absolute; left: 0; top: .95rem; font-size: .85rem; }

/* Closing */
.closing { text-align: center; }
.closing .emblem { width: 150px; margin: 0 auto 1.4rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--gold); }

/* Prose pages */
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 5vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.prose { padding-block: clamp(40px, 6vw, 72px); }
.prose h2 { font-size: 1.4rem; color: var(--gold); margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--vellum); font-weight: 700; }
.prose li { margin-bottom: .7rem; }
.prose ul { padding-left: 1.2rem; }
.small { font-size: .88rem; }

/* Press */
.fact-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.fact-table th, .fact-table td { text-align: left; vertical-align: top; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--line); }
.fact-table th { color: var(--gold); font-weight: 400; width: 34%; }
.fact-table td { color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; margin-top: 1rem; }
.downloads a { display: block; border: 1px solid var(--line); padding: 10px; text-decoration: none; font-size: .88rem; }
.downloads img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--navy); margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.hero-title { margin: 0; }

/* Review fixes */
.hero .tracked { text-shadow: 0 1px 3px #000, 0 0 14px rgba(9,15,23,.9); font-weight: 700; }
.fair ul { text-align: left; }
.site-head nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .brand span { display: none; }
  .facts { flex-direction: column; gap: .2rem; }
  .facts li + li::before { content: none; }
}
