:root {
  color-scheme: light;
  --ink: #271c24;
  --muted: #67515c;
  --night: #21141d;
  --light: #fff0d8;
  --rose: #f5ada9;
  --berry: #842b45;
  --paper: #fff5e6;
  --rule: #d9c4bd;
  --display: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b54563; outline-offset: 4px; }
.hero :focus-visible, .masthead :focus-visible { outline-color: #ffdba6; }
.shell { width: min(calc(100% - 72px), 1312px); margin-inline: auto; }
section[id] { scroll-margin-top: 14px; }
.skip { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 10px 18px; transform: translateY(-160%); background: var(--light); color: var(--ink); }
.skip:focus { transform: none; }

.masthead { background: var(--night); color: var(--light); border-bottom: 1px solid #583445; }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 70px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; justify-self: start; text-decoration: none; font: 700 16px/.95 var(--display); }
.wordmark i { color: var(--rose); font-weight: normal; }
.masthead nav { display: flex; gap: 30px; align-items: center; }
.masthead nav a, .mast-play { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; font-weight: 700; text-decoration: none; }
.masthead nav a:hover, .mast-play:hover { text-decoration: underline; }
.mast-play { color: var(--rose); gap: 10px; justify-self: end; }

.hero { color: var(--light); background: var(--night); padding-block: clamp(40px, 6vw, 90px) 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(275px, .9fr) minmax(0, 1.55fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { font-size: .71rem; font-weight: 750; letter-spacing: .16em; color: var(--berry); }
.hero .eyebrow { color: var(--rose); }
.spark { display: inline-block; margin-right: 5px; font-size: .9rem; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.048em; }
h1 { margin-top: 19px; font-size: clamp(3.5rem, 6.25vw, 6.15rem); line-height: .94; }
h1 em { display: block; color: var(--rose); font-weight: 400; }
.premise { margin-top: 24px; max-width: 31ch; font-size: clamp(1rem, 1.36vw, 1.18rem); color: #f3ddce; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 24px; color: #e3bebc; font-size: .81rem; }
.byline span + span::before { content: '·'; color: var(--rose); margin-right: 14px; }

.player { min-width: 0; border: 1px solid #995469; background: #110e15; box-shadow: 0 14px 36px #0d09114d; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #100d13; }
.stage iframe, .poster, .poster > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster > img { object-fit: cover; }
.poster-action { position: absolute; inset: 0; display: grid; place-items: end center; padding: 0 14px clamp(14px, 4vw, 56px); }
.launch { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 11px 23px; border: 1px solid #ffe1be; border-radius: 4px; background: #ffe3c0; color: #301726; font-weight: 780; box-shadow: 0 4px 24px #110e15a8; }
.launch:hover { background: #fff0da; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 2px 14px; flex-wrap: wrap; min-height: 51px; padding: 4px 14px; border-top: 1px solid #5e3949; background: #281b25; color: #edd3ce; }
.player-bar p { padding-block: 7px; font-size: .78rem; }
.player-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.player-controls button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: #fff1db; font-size: .78rem; }
.player-controls button:hover { text-decoration: underline; }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; border: 0; background: #100d13; }
.player:fullscreen .stage { width: 100%; flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.no-script { padding: 10px 14px; }
.content-note { margin-top: 25px; color: #e5c3c4; font-size: .84rem; }
.content-note details { max-width: 69ch; }
.content-note summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 10px; color: #ffe4d3; }
.content-note p { padding-bottom: 8px; }
summary { cursor: pointer; }

.paper { background: var(--paper); }
.guide, .story, .answers { padding-block: clamp(44px, 6vw, 88px); }
.guide { border-top: 3px solid #a84d64; }
.story, .answers { border-top: 1px solid var(--rule); }
.story { background: #f5e6d9; }
.section-grid { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(0, 1.38fr); gap: 24px clamp(28px, 7vw, 110px); }
h2 { margin-top: 10px; font-size: clamp(2.35rem, 4.6vw, 4.4rem); line-height: 1.02; }
.section-intro { margin-top: 14px; max-width: 31ch; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.step-number { color: var(--berry); font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.4; }
.steps h3 { font-size: 1rem; }
.steps p { margin-top: 3px; color: var(--muted); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 6vw, 90px); align-items: center; }
.story-art { padding: 10px; border: 1px solid #c1a6aa; background: #fcf0e2; }
.story-art img { width: 100%; }
.story-art figcaption { margin: 8px 4px 0; font: italic 1rem/1.4 var(--display); color: var(--muted); }
.story-art figcaption span { color: var(--berry); font-style: normal; margin-right: 6px; }
.story-copy > p:not(.eyebrow) { margin-top: 16px; max-width: 52ch; }
.characters { margin-top: 19px; }
.characters div { padding: 11px 0; border-top: 1px solid #cfb8b3; }
.characters dt { font-weight: 760; }
.characters dt span { margin-left: 6px; color: var(--berry); font-weight: 650; font-size: .82rem; }
.characters dd { margin-top: 3px; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--berry); font-weight: 750; }
.questions { border-top: 1px solid var(--rule); }
.questions details { border-bottom: 1px solid var(--rule); }
.questions summary { min-height: 48px; padding-block: 12px; font-weight: 700; }
.questions details p { margin: 0 0 15px 18px; color: var(--muted); }
.questions a { color: var(--berry); }
.site-footer { border-top: 1px solid #593647; background: var(--night); color: var(--light); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; min-height: 76px; padding-block: 12px; font-size: .83rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-credit { color: #e5bfc1; margin-left: 10px; }
.plain { max-width: 68ch; padding-block: 60px; }
.plain h1 { margin: 0 0 22px; font-size: clamp(2.7rem, 7vw, 4.4rem); }
.plain p + p { margin-top: 15px; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 40px); }
  .hero { padding-top: 33px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin-top: 10px; }
  h1 em { display: inline; }
  .premise { margin-top: 12px; max-width: 50ch; }
  .byline { margin-top: 9px; }
  .story-layout { gap: 25px; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 60px; grid-template-columns: 1fr auto; }
  .masthead nav { display: none; }
  .wordmark img { width: 33px; height: 33px; }
  .hero { padding-block: 25px 14px; }
  .hero-grid { gap: 15px; }
  /* Keep the embedded Ren'Py toolbar from covering Start at narrow widths. */
  .stage iframe {
    --frame-scale: .67;
    width: calc(100% / var(--frame-scale));
    height: calc(100% / var(--frame-scale));
    transform: scale(var(--frame-scale));
    transform-origin: top left;
  }
  .poster-action { padding-bottom: 13px; }
  .launch { min-height: 48px; padding: 9px 15px; }
  .player-bar { padding-inline: 10px; }
  .content-note { margin-top: 7px; }
  .section-grid, .story-layout { grid-template-columns: minmax(0, 1fr); }
  .story-copy { grid-row: 1; }
}
