:root {
  color-scheme: dark;
  --ink: #101013;
  --panel: #18181c;
  --ivory: #f3ebdd;
  --muted: #c1b9af;
  --gold: #ddbb81;
  --line: #443c33;
  font-family: system-ui, sans-serif;
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 65vh; }
img { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: .23em; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip { position: absolute; z-index: 8; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: #101013; }
.masthead, .footer-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.masthead { min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ivory); text-decoration: none; font: bold 1rem Georgia, serif; text-transform: uppercase; letter-spacing: .16em; }
.brand small { display: block; margin-top: .25rem; color: var(--gold); font: 600 .58rem system-ui, sans-serif; letter-spacing: .38em; }
nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.55rem, 2.4vw, 2.3rem); }
nav a { padding: .5rem 0; color: var(--muted); text-decoration: none; font-size: .87rem; }
nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; }
.studio-hero, .game-hero { position: relative; overflow: hidden; display: grid; align-items: center; isolation: isolate; background: #18171c; min-height: clamp(35rem, 73svh, 50rem); }
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.studio-hero::after, .game-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101013 2%, #101013df 30%, #1010133a 73%), linear-gradient(0deg, #101013, transparent 30%); }
.hero-copy { padding-block: 4rem; }
h1, h2, h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(3rem, 7.6vw, 7.4rem); letter-spacing: -.057em; }
h1 em { color: var(--gold); font-weight: 400; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); letter-spacing: -.047em; }
h3 { font-size: 1.7rem; letter-spacing: -.025em; }
p { margin: 1rem 0; color: var(--muted); }
.eyebrow { margin: 0 0 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .19em; font-size: .71rem; font-weight: 700; }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-copy .hero-tagline { color: var(--ivory); font: 1.5rem Georgia, serif; }
.button { display: inline-flex; gap: 1.7rem; align-items: center; margin-top: 1rem; padding: .75rem 1.1rem; border: 1px solid var(--gold); color: var(--ivory); background: #151416a8; text-decoration: none; font-size: .88rem; font-weight: 650; }
.button:hover { background: var(--gold); color: var(--ink); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-intro { margin-bottom: 1.8rem; }
.game-grid, .features { display: grid; gap: 1.25rem; }
.game-card { background: var(--panel); border: 1px solid var(--line); }
.card-art { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #24212a; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.art-label { position: absolute; right: .8rem; bottom: .8rem; padding: .25rem .55rem; background: #101013; color: var(--ivory); font-size: .68rem; }
.card-copy { padding: clamp(1.2rem, 3vw, 2rem); }
.card-copy h3 { font-size: clamp(2rem, 4.5vw, 3.45rem); }
.card-copy .tagline { color: var(--ivory); font-weight: 550; margin-bottom: .35rem; }
.card-copy .tagline + p { margin-top: 0; }
.status::before { display: inline-block; margin-right: .6rem; content: ""; width: .4rem; height: .4rem; transform: rotate(45deg); background: currentColor; vertical-align: .12em; }
.text-link { display: inline-block; margin-top: .5rem; font-weight: 650; }
.studio-note { border-block: 1px solid var(--line); background: var(--panel); }
.studio-note p { max-width: 48rem; }
.features { margin-top: 2rem; }
.features article { padding: 1.4rem; border: 1px solid var(--line); background: var(--panel); }
.features p { margin-bottom: 0; }
.interior h1 { font-size: clamp(2.8rem, 6.6vw, 6rem); max-width: 19ch; }
.prose { max-width: 44rem; }
.prose .lead { color: var(--ivory); font-size: 1.2rem; }
.prose h2 { margin-top: 2rem; font-size: 1.85rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.site-footer p { margin-bottom: 0; font-size: .8rem; }
/* Identity, game media and store availability */
.brand img { flex: none; }
.brand:hover span { color: var(--gold); }
.hero-lockup { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.35rem; }
.hero-lockup span { font: 600 .8rem Georgia, serif; letter-spacing: .2em; text-transform: uppercase; }
.studio-hero .hero-art { object-position: center 48%; }
.studio-hero .hero-copy > p:not(.eyebrow) { color: var(--ivory); }
.button:active { transform: translateY(1px); }
.game-page { --game-accent: #d6bcfa; --game-line: #5c4570; --game-panel: #1d1725; }
.game-page.afterbell { --game-accent: #c9d4a8; --game-line: #515d46; --game-panel: #191e18; }
.game-page .eyebrow, .game-page .text-link { color: var(--game-accent); }
.game-page .text-link:hover { color: var(--ivory); }
.game-hero { background-color: var(--game-panel); }
.game-hero .hero-tagline { color: var(--game-accent); }
.game-hero .hero-art { object-position: 67% center; }
.afterbell .game-hero .hero-art { object-position: 57% center; }
.game-page .features article { border-color: var(--game-line); background: var(--game-panel); }
.chainfall .game-hero h1 { letter-spacing: -.07em; }
.afterbell .game-hero h1 { letter-spacing: -.035em; }
.hero-actions, .store-actions { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; }
.hero-actions { margin-top: 1.5rem; }
.hero-actions .button, .hero-actions .text-link { margin-top: 0; }
.play-jump, .store-button { border-color: var(--game-accent); }
.play-jump:hover { background: var(--game-accent); }
.media-section { background: var(--game-panel); border-color: var(--game-line); }
.trailer { position: relative; isolation: isolate; margin-top: 1.6rem; display: grid; align-items: end; overflow: hidden; min-height: 15rem; width: 100%; aspect-ratio: 2.35; border: 1px solid var(--game-line); background: var(--ink); }
.trailer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.trailer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #101013 1%, #101013bb 28%, transparent 78%); z-index: -1; }
.trailer-copy { padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 2.7rem; }
.trailer-copy h3 { font-size: clamp(1.7rem, 4vw, 3rem); }
.trailer-copy p { margin: .25rem 0 0; color: var(--ivory); }
.gallery-heading { margin: 2rem 0 1rem; }
.capture-grid { display: grid; gap: .85rem; }
.capture { margin: 0; border: 1px solid var(--game-line); background: var(--ink); }
.capture-frame { position: relative; background: var(--game-panel); aspect-ratio: 16 / 9; }
.capture-frame::after { content: ""; position: absolute; inset: .8rem; border: 1px dashed var(--game-line); }
.capture figcaption { padding: .7rem .85rem; }
.capture figcaption span { display: block; font-size: .8rem; color: var(--muted); }
.release-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.release-panel h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.release-panel p:last-child { margin-bottom: 0; }
.store-button { margin-top: 0; gap: .9rem; font: inherit; font-weight: 650; text-align: left; }
.store-button small { display: block; font-size: .73rem; font-weight: 500; }
.store-button:disabled { border-color: var(--game-line); background: var(--game-panel); color: var(--muted); }
.store-button:disabled:active { transform: none; }
.store-actions .text-link { margin: 0; }
@media (min-width: 42rem) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .capture-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 41.99rem) {
  .masthead, .footer-inner { align-items: flex-start; flex-direction: column; }
  .masthead { width: 100%; gap: .3rem; padding-top: .65rem; }
  .masthead .brand { margin-inline: 1.25rem; }
  .masthead nav { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
  .masthead nav a { display: grid; place-items: center; min-height: 44px; padding: .2rem 0; font-size: .8rem; }
  .masthead nav a[aria-current="page"] { background: #211d19; }
  .studio-hero h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .game-hero h1 { font-size: clamp(3.5rem, 13vw, 5rem); }
  .hero-lockup { gap: .6rem; margin-bottom: .9rem; }
  .hero-lockup img { width: 43px; height: 43px; }
  .hero-copy > p:not(.eyebrow) { color: var(--ivory); }
  .features article, .card-copy { line-height: 1.65; }
  .capture { display: grid; grid-template-columns: 36% 1fr; align-items: center; }
  .capture-frame::after { inset: .45rem; }
  .studio-hero, .game-hero { min-height: 36rem; align-items: end; }
  .hero-copy { padding-block: 4rem 4.5rem; }
  .hero-art { object-position: 62% center; }
  .studio-hero::after, .game-hero::after { background: linear-gradient(0deg, #101013 5%, #101013dc 37%, #10101326 87%); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-art { animation: atmosphere 4s ease-out both; }
  .hero-copy { animation: hero-arrive .8s ease-out both; }
  nav a, .text-link { transition: color .2s, background-color .2s; }
  .game-card { transition: border-color .25s; }
  .button, .card-art img { transition: background-color .2s, color .2s, transform .35s; }
  .game-card:focus-within img, .game-card:hover img { transform: scale(1.035); }
  @keyframes atmosphere { from { opacity: .84; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
  @keyframes hero-arrive { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: translateY(0); } }
}

.game-card:hover, .game-card:focus-within { border-color: var(--gold); }
