/* Single stylesheet, no build step and no web fonts: the site should paint on
   the first round trip, because search ranking and patience both depend on it. */

:root {
  --ink: #ece9f2;
  --dim: #a29bb0;
  --faint: #6d6779;
  --bg: #0b0a10;
  --panel: #14121c;
  --line: #241f31;
  --gold: #e8b64c;
  --violet: #9d5ada;
  --measure: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--gold); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--dim); }
strong { color: var(--ink); }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- header ------------------------------------------------------------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, 4vw);
  background: rgba(11, 10, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.wordmark span { color: var(--faint); margin: 0 0.35em; font-size: 0.8em; }

.bar nav { display: flex; gap: clamp(12px, 2vw, 28px); }
.bar nav a { color: var(--dim); font-size: 0.92rem; }
.bar nav a:hover { color: var(--ink); text-decoration: none; }

/* --- sections ----------------------------------------------------------- */

main > section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) max(20px, 4vw);
}

.hero {
  max-width: none;
  padding: 0 0 clamp(48px, 8vw, 88px);
  position: relative;
}

.hero-art { position: relative; }

.hero-art img {
  width: 100%;
  max-height: min(68vh, 680px);
  object-fit: cover;
  object-position: center 40%;
}

/* A scrim rather than a mask: the title has to stay legible over whatever the
   screenshot happens to be showing, including a lantern-lit patch of grass. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 10, 16, 0.45) 0%,
    rgba(11, 10, 16, 0.10) 22%,
    rgba(11, 10, 16, 0.72) 62%,
    var(--bg) 98%);
}

.hero-text {
  max-width: 46rem;
  margin: clamp(-180px, -15vh, -90px) auto 0;
  padding: 0 max(20px, 4vw);
  position: relative;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}
.hero-text .lede { color: #cfc8dc; }

.lede { font-size: 1.12rem; color: var(--dim); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Story copy is read, not scanned: a narrower column and a taller line. */
.prose {
  max-width: 40rem;
  margin: 0 auto 34px;
}
.prose p {
  font-size: 1.06rem;
  line-height: 1.78;
}
/* One drop cap per chapter: the opening paragraph only. */
.prose:first-of-type p:first-child::first-letter {
  float: left;
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.86;
  padding: 4px 10px 0 0;
  color: var(--gold);
}

/* Chapters are read top to bottom like a book, so they get a numeral, a centred
   measure and far more air than a marketing section would. */
.chapter { text-align: center; }
.chapter h2 { margin-bottom: 28px; }
.chapter-num {
  margin: 0 0 6px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.chapter .prose,
.chapter .sides,
.chapter .grid { text-align: left; }
.chapter .prose + .sides,
.chapter .prose + .grid { margin-top: 40px; }
.chapter .sides + .prose { margin-top: 40px; }

.pull {
  max-width: 34rem;
  margin: 44px auto 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--gold);
  text-align: left;
}
.pull p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.62;
  font-style: italic;
  color: var(--ink);
}
.pull cite {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--faint);
}

.places article { background: transparent; border-color: var(--line); }
.places h3 { font-family: Georgia, serif; color: var(--gold); letter-spacing: 0.03em; }
.dark .places h3 { color: #c39bec; }

.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.sides article {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(232, 182, 76, 0.05), transparent 60%), var(--panel);
}
/* The second side is the dark one, and should feel it. */
.sides article + article {
  background: linear-gradient(180deg, rgba(157, 90, 218, 0.07), transparent 60%), var(--panel);
}
.sides h3 { color: var(--gold); font-size: 1.22rem; }
.sides article + article h3 { color: #c39bec; }
.sides em { color: var(--ink); font-style: italic; }

.dark h2 { color: #c39bec; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 12px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.button:hover { border-color: var(--gold); text-decoration: none; }
.button.primary {
  background: linear-gradient(#f0c25c, #d39b2c);
  border-color: #f3d489;
  color: #21170a;
  font-weight: 600;
}
.button.primary:hover { filter: brightness(1.07); }

.fineprint { font-size: 0.85rem; color: var(--faint); }

.grid {
  display: grid;
  /* Two columns on a desktop, one on a phone: four cards in a 3+1 row looks
     like a mistake rather than a layout. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 20px;
}
.grid article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.grid h3 { color: var(--ink); }
.grid p { margin: 0; font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

figure { margin: 0; }
figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--faint); }
figure img { border: 1px solid var(--line); border-radius: 4px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 22px; }

.play .terms {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 22px;
  margin: 30px 0 0;
  font-size: 0.95rem;
}
.play dt { color: var(--gold); font-family: Georgia, serif; }
.play dd { margin: 0; color: var(--dim); }
.play .cta { justify-content: flex-start; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary { cursor: pointer; color: var(--ink); font-size: 1.02rem; }
.faq summary::marker { color: var(--violet); }
.faq p { margin: 10px 0 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px max(20px, 4vw);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--faint);
  font-size: 0.86rem;
}
footer p { margin: 0; color: var(--faint); }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--dim); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .hero-text { margin-top: clamp(-70px, -8vh, -30px); }
  /* A wide letterbox becomes a sliver on a phone, so crop upward instead. */
  .hero-art img { height: 300px; }
  /* Six chapter links do not fit a phone header; the wordmark and the way in do. */
  .bar nav a { font-size: 0.82rem; }
  .bar nav a:not(:last-child) { display: none; }
  .play .terms { grid-template-columns: 1fr; gap: 4px 0; }
  .play dd { margin-bottom: 12px; }
}

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