:root {
  color-scheme: dark;
  --bg: #0d171d;
  --surface: #17252d;
  --ink: #f2f0e9;
  --muted: #b9c8cb;
  --line: #52646b;
  --accent: #9fd2f0;
  --brass: #e5bf85;
  --paper: #f5f1e8;
  --dark-ink: #193139;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { background: #b7dff4; color: #102129; }
a { color: var(--accent); text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption { margin-top: .7rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
h1, h2, h3 { margin: 0 0 1.25rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(3.6rem, 6.3vw, 6.5rem); }
h2 { font-size: clamp(2.55rem, 4.4vw, 4.45rem); }
h3 { font-size: clamp(1.65rem, 2.9vw, 2.65rem); }
h3 a { color: var(--ink); text-decoration: none; }
h3 a:hover { text-decoration: underline; }
p { margin: 0 0 1.25rem; }
main { max-width: 1376px; margin: auto; padding: 0 clamp(20px, 4.4vw, 70px); }
main:focus { outline: none; }
.reading { max-width: 46rem; }
.lead { color: var(--ink); font-size: clamp(1.18rem, 1.65vw, 1.48rem); line-height: 1.5; }
.meta { margin-top: 1.2rem; color: var(--muted); font-size: .88rem; }
.eyebrow, .status { color: var(--accent); font-size: .76rem; font-weight: 760; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.65rem; }
.status { margin-bottom: .95rem; letter-spacing: .09em; }

.skip { position: fixed; top: -8rem; left: 1rem; z-index: 50; padding: .75rem 1rem; background: var(--paper); color: var(--dark-ink); font-weight: 700; }
.skip:focus { top: 1rem; }
.masthead { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; max-width: 1376px; margin: auto; padding: .95rem clamp(20px, 4.4vw, 70px); border-bottom: 1px solid var(--line); background: #0d171df5; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 43px; height: 43px; padding: 4px; border-radius: 4px; background: var(--paper); object-fit: contain; }
.masthead nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .2rem clamp(.8rem, 1.7vw, 1.7rem); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; color: var(--ink); font-size: .88rem; text-decoration: none; white-space: nowrap; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .45em; }
.masthead nav .nav-shop { min-height: 42px; padding: .45rem .85rem; border: 1px solid var(--line); color: var(--ink); }
.masthead nav .nav-shop:hover { background: var(--paper); border-color: var(--paper); color: var(--dark-ink); text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.8rem; min-height: 52px; margin-top: .6rem; padding: .75rem 1.1rem; border: 1px solid var(--accent); background: var(--accent); color: #12232b; font-size: .9rem; font-weight: 750; line-height: 1.4; text-decoration: none; }
.button:hover { background: #c7e8f9; border-color: #c7e8f9; color: #12232b; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.text-link { display: inline-block; padding: .6rem 0; font-weight: 670; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.6rem; }
.hero-actions .button { margin-top: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2.5rem, 5.5vw, 6rem); padding: clamp(4rem, 7vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 38rem; }
.hero-copy > p:not(.eyebrow):not(.lead) { max-width: 32rem; color: var(--muted); }
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border: 1px solid var(--line); }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 1rem; }
.section { padding: clamp(3.6rem, 6vw, 6rem) 0; border-top: 1px solid var(--line); }
.hero + .section { border-top: 0; }
.section-heading { display: grid; grid-template-columns: minmax(11rem, .35fr) minmax(0, 1fr); align-items: start; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { max-width: 16ch; }
.game-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, .3fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); padding: 2.1rem 0; border-top: 1px solid var(--line); }
.game-row:hover { background: #ffffff07; }
.game-row h3 { margin-bottom: .7rem; }
.game-row p:not(.status) { max-width: 38rem; margin: 0; color: var(--muted); }
.game-row .text-link { justify-self: end; }

.play-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .65fr); align-items: center; gap: 2rem; margin: 1rem 0 0; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid #b9c7bd; background: #f1eee5; color: #213b38; }
.play-teaser .eyebrow { color: #9c4214; }
.play-teaser h2 { max-width: 12ch; }
.play-teaser .lead { max-width: 35rem; color: #26423e; }
.play-teaser p:not(.eyebrow):not(.lead) { color: #365751; }
.play-teaser .button { background: #9c4214; border-color: #9c4214; color: #fff; }
.play-teaser .button:hover { background: #742c0a; border-color: #742c0a; color: #fff; }
.play-teaser-art { justify-self: center; width: min(100%, 22rem); }
.play-teaser-art img { width: 100%; }
.play-teaser-art figcaption { color: #365751; text-align: center; }

.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .8fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.studio-copy { max-width: 40rem; }
.studio-copy p:not(.eyebrow):not(.lead) { color: var(--muted); }
.studio-identity { width: 100%; padding: clamp(1.2rem, 3vw, 2.4rem); background: var(--paper); }
.studio-identity img { width: 100%; }
.studio-identity figcaption { color: #294347; font-size: .85rem; }
.merch-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
.merch-band .lead { max-width: 45rem; }
.merch-band .button { white-space: nowrap; }
.help-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 0 4.5rem; border-top: 1px solid var(--line); }
.help-band h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.help-band p { margin: 0; color: var(--muted); }
.help-band .button { margin: 0; white-space: nowrap; }

.page-intro { padding: clamp(3.5rem, 6vw, 6rem) 0 3rem; }
.featured-game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: 1.5rem 0 5rem; border-bottom: 1px solid var(--line); }
.featured-game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); }
.featured-game h2 { font-size: clamp(3.2rem, 5.3vw, 5.5rem); }
.ember-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); padding: 5rem 0; border-bottom: 1px solid var(--line); }
em { color: var(--brass); font-weight: 400; }
.ember-intro { padding: clamp(4rem, 7vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.ember-intro h1 { font-size: clamp(3.6rem, 7vw, 7rem); }
.development-note { display: inline-block; margin-top: 1rem; padding: .4rem 0 .4rem 1rem; border-left: 2px solid var(--brass); color: var(--muted); font-size: .9rem; }
.split-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.split-copy p { color: var(--muted); }
.split-copy .lead { color: var(--ink); }
.feature-list { margin: 2.5rem 0 0; }
.feature-list > div { display: grid; grid-template-columns: minmax(11rem, .4fr) minmax(0, 1fr); gap: 2rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.feature-list dt { font: 1.55rem/1.2 Georgia, serif; }
.feature-list dd { margin: 0; color: var(--muted); }
.resource-links { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 1rem; }
.resource-links a { display: inline-block; min-height: 44px; padding: .55rem 0; }

.document { max-width: 920px; padding-top: clamp(3rem, 5vw, 5rem); padding-bottom: 5rem; }
.document h1 { font-size: clamp(3rem, 5.5vw, 5rem); }
.document h2 { margin-top: 3rem; font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.15; }
.document h3 { margin-top: 2rem; font-size: 1.35rem; line-height: 1.3; }
.document p, .document li { color: #d3dcdc; }
.document li { margin-bottom: .7rem; }
.document strong { color: var(--ink); }
.document .lead { color: var(--ink); }
.email { overflow-wrap: anywhere; }
.notice { margin: 2rem 0; padding: 1.35rem 1.6rem; border-left: 3px solid var(--accent); background: var(--surface); }
.document details { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.document details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 32px; font-size: 1.07rem; font-weight: 650; }
details p:first-of-type { margin-top: 1rem; }
details p:last-child { margin-bottom: 0; }
.support-shortcuts { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; padding: 1rem 0 1.4rem; }
.support-shortcuts a { display: inline-block; min-height: 44px; padding: .55rem 0; }

.merch-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .72fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: clamp(4rem, 7vw, 7rem) 0; }
.merch-hero .lead { max-width: 35rem; }
.merch-art { width: 100%; padding: clamp(1.2rem, 3vw, 2rem); background: var(--paper); }
.merch-art figcaption { color: #294347; }
.merch-setup { max-width: 48rem; padding: 3rem 0 5rem; border-top: 1px solid var(--line); }
.merch-setup h2 { max-width: 20ch; }

footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; max-width: 1376px; margin: 0 auto; padding: 3.1rem clamp(20px, 4.4vw, 70px) 3.5rem; border-top: 1px solid var(--line); }
footer p, footer small { display: block; margin: .9rem 0 0; color: var(--muted); font-size: .83rem; }
footer nav { display: grid; grid-template-columns: repeat(2, minmax(9rem, 1fr)); gap: .2rem 1.5rem; }
footer nav a { display: inline-block; min-height: 40px; padding: .45rem 0; font-size: .84rem; }

@media (max-width: 950px) {
  .masthead { align-items: flex-start; flex-wrap: wrap; }
  .masthead nav { width: 100%; justify-content: flex-start; }
  .hero, .featured-game, .ember-feature, .studio, .merch-hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 39rem; }
  .hero-art img { aspect-ratio: 5 / 4; }
  .studio-identity, .merch-art { max-width: 32rem; }
  .section-heading { grid-template-columns: 1fr; gap: .4rem; }
  .section-heading h2 { max-width: none; }
  .split-copy { grid-template-columns: 1fr; gap: 1rem; }
  .ember-feature { gap: 0; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 10rem; }
  body { font-size: 16px; }
  .masthead { padding-block: .75rem; }
  .masthead nav { gap: 0 .95rem; }
  .masthead nav a { min-height: 40px; font-size: .82rem; }
  .hero { padding: 3rem 0 3.8rem; }
  .hero h1 { font-size: clamp(3.25rem, 14vw, 5rem); }
  .section { padding: 3.5rem 0; }
  .game-row { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .game-row .text-link { grid-column: 1; justify-self: start; }
  .play-teaser { grid-template-columns: 1fr; }
  .play-teaser-art { width: min(100%, 18rem); }
  .merch-band, .help-band { display: block; }
  .merch-band .button, .help-band .button { margin-top: 1rem; }
  .help-band p { margin-top: .5rem; }
  .feature-list > div { grid-template-columns: 1fr; gap: .4rem; }
  .resource-links { flex-direction: column; gap: 0; }
  footer { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  html { scroll-padding-top: 13rem; }
  .brand { font-size: .7rem; }
  .brand-mark { width: 39px; height: 39px; }
  .masthead nav { gap: 0 .7rem; }
  .masthead nav a { font-size: .78rem; }
  footer nav { grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep content and controls usable at narrow widths and increased text sizes. */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
footer nav a, .document a { overflow-wrap: anywhere; }
:target { scroll-margin-top: 1rem; }
@media (max-width: 650px) {
  .masthead nav a, footer nav a { min-height: 44px; }
}
