:root {
  color-scheme: light;
  --paper: #e9e4d9;
  --paper-light: #f4f0e7;
  --ink: #272c2d;
  --muted: #60666a;
  --rule: #c6c2b7;
  --blue: #394f5a;
  --blue-hover: #293c47;
  --dark: #20282d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #a26b36; outline-offset: 5px; }
button:focus-visible { outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.13; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: 1.15rem; line-height: 1.35; }
.page-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { margin-bottom: .8rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .6rem 1rem; background: var(--paper-light); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: absolute; top: 0; left: 50%; z-index: 5; transform: translateX(-50%); width: min(1360px, calc(100% - 64px)); min-height: 92px; display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); padding: 8px 16px; background: rgb(233 228 217 / .82); font-size: .9rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header .header-download { font-weight: 700; }
.header-download span { margin-left: .4rem; }
.hero { position: relative; isolation: isolate; min-height: 42.857vw; }
.hero-art { position: absolute; inset: 0 0 auto; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to bottom, #000 0%, #000 56%, rgb(0 0 0 / .88) 70%, rgb(0 0 0 / .38) 86%, transparent 100%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(233 228 217 / .94), rgb(233 228 217 / .9) 38%, transparent 64%); mask-image: linear-gradient(to bottom, transparent 8%, #000 32%, #000 77%, transparent 96%); }
.hero-landscape { width: 100%; height: auto; aspect-ratio: 21 / 9; }
.hero-wordmark { width: min(390px, 90%); height: auto; margin-bottom: 24px; }
.hero-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: min(1360px, calc(100% - 64px)); padding-block: 136px 68px; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { font-size: clamp(1.9rem, 2.5vw, 2.45rem); }
.hero-copy > p:last-child { margin-top: 20px; color: #353e40; }
.hero-action { text-align: left; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--blue); padding: 13px 22px; background: var(--blue); color: #fff9ee; font-size: .96rem; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .15s; }
.button:hover { background: var(--blue-hover); }
.button span { font-size: 1.3rem; font-weight: 400; }
.play-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.button-secondary { background: rgb(244 240 231 / .72); color: var(--blue); }
.button-secondary:hover { background: var(--paper-light); }
.hero-action p { margin-top: 11px; color: var(--muted); font-size: .75rem; }
.quiet-link { display: inline-block; margin-top: 18px; font-size: .86rem; text-decoration-thickness: 1px; }
.quiet-link span { margin-left: 8px; }
.game-section { padding-block: 64px 76px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.section-intro h2 { max-width: 470px; }
.section-intro > p { color: #4d5557; }
.game-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; margin-top: 42px; }
.game-details article { border-top: 1px solid var(--rule); padding-top: 22px; }
.game-details p { margin-top: 12px; font-size: .94rem; color: #4d5557; }
.screenshots-section { padding-block: 62px 64px; background: var(--dark); color: var(--paper-light); }
.screenshots-section .eyebrow { color: #b3bbb9; }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.gallery-heading > p { max-width: 300px; color: #c4cac7; font-size: .9rem; }
.gallery-feature { overflow: hidden; border: 1px solid #57615f; }
.gallery-fullsize { position: relative; display: block; background: #11171b; }
.gallery-fullsize > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.enlarge-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; background: rgb(21 28 31 / .9); color: #f4eee4; font-size: .75rem; }
.gallery-feature figcaption { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; padding: 18px 22px; background: #2a3439; }
.gallery-caption { display: grid; gap: 3px; line-height: 1.45; }
.gallery-caption strong { font-size: 1rem; }
.gallery-caption span { color: #bdc5c3; font-size: .85rem; }
.gallery-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gallery-controls > span { width: 56px; color: #c4cac7; text-align: center; font-size: .8rem; }
.gallery-controls button { width: 42px; height: 42px; padding: 0; color: var(--paper-light); background: transparent; border: 1px solid #6b7677; font-size: 1.25rem; line-height: 1; }
.gallery-controls button:hover { background: #455259; }
.gallery-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.gallery-choices a { display: block; border: 1px solid #535e62; background: #273136; text-decoration: none; transition: border-color .15s; }
.gallery-choices a:hover { border-color: #f2e5cd; }
.gallery-choices a[aria-current="true"] { outline: 2px solid #c7b896; outline-offset: 3px; border-color: #c7b896; }
.gallery-choices img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.gallery-choices span { display: block; padding: 8px 10px; color: #d9dcd4; font-size: .78rem; line-height: 1.4; }
.download-section { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 100px; padding-block: 76px; }
.download-section h2 { margin-bottom: 20px; }
.download-section > div > p:not(.eyebrow) { max-width: 570px; color: #4d5557; }
.download-section .play-actions { margin-top: 26px; }
.play-information { padding: 26px 30px; border: 1px solid var(--rule); background: rgb(255 255 255 / .18); }
.play-information h3 { margin-bottom: 18px; }
.play-information dl { margin: 0; }
.play-information dl > div { display: grid; grid-template-columns: 95px 1fr; gap: 16px; margin-bottom: 8px; font-size: .89rem; }
.play-information dt { color: var(--muted); }
.play-information dd { margin: 0; }
.play-information details { border-top: 1px solid var(--rule); padding-top: 15px; margin-top: 20px; font-size: .87rem; }
.play-information summary { width: fit-content; cursor: pointer; font-weight: 700; }
.play-information details p { margin-top: 14px; color: #4d5557; overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px 30px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .78rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.screenshot-dialog { width: min(1640px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #7d8785; color: var(--paper-light); background: #1b2327; }
.screenshot-dialog::backdrop { background: rgb(9 14 17 / .92); }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 18px; }
.dialog-toolbar p { font-size: .9rem; }
.dialog-toolbar button { flex-shrink: 0; padding: 4px 12px; border: 1px solid #7d8785; color: var(--paper-light); background: transparent; font-size: .85rem; }
.dialog-toolbar button span { margin-left: 10px; font-size: 1.1rem; }
.screenshot-dialog > img { width: 100%; max-height: calc(100dvh - 110px); height: auto; object-fit: contain; }
body:has(.screenshot-dialog[open]) { overflow: hidden; }

@media (max-width: 1000px) {
  .hero-copy { max-width: 530px; }
  .section-intro { gap: 40px; }
  .game-details { gap: 28px; }
  .download-section { gap: 48px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page-width, .site-header { width: calc(100% - 40px); }
  .site-header { min-height: 76px; gap: 15px; }
  .site-header nav { gap: 18px; padding: 6px 10px; font-size: .8rem; }
  .hero-intro { gap: 24px; padding-block: 142px 32px; }
  .hero-wordmark { width: min(330px, 90%); margin-bottom: 22px; }
  .hero-copy { max-width: none; }
  .hero-copy > p:last-child { margin-top: 16px; }
  .hero-action { text-align: left; padding-top: 0; }
  .hero-action .button { max-width: none; }
  .play-actions .button { flex: 1 1 220px; }
  .quiet-link { margin-top: 16px; }
  .game-section { padding-block: 42px 46px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .game-details { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .game-details article { padding-top: 20px; }
  .game-details p { margin-top: 9px; }
  .screenshots-section { padding-block: 40px; }
  .gallery-heading { display: block; margin-bottom: 24px; }
  .gallery-heading > p { max-width: none; margin-top: 14px; }
  .gallery-feature figcaption { align-items: start; flex-direction: column; gap: 14px; padding: 16px; }
  .gallery-controls { width: 100%; justify-content: flex-end; }
  .gallery-controls > span { margin-right: auto; text-align: left; }
  .gallery-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .gallery-choices span { font-size: .74rem; padding: 7px 8px; }
  .enlarge-hint { right: 8px; bottom: 8px; padding: 4px 8px; font-size: .68rem; }
  .download-section { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
  .play-information { padding: 24px; }
  .site-footer { align-items: start; flex-direction: column; gap: 8px; }
  .screenshot-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dialog-toolbar { padding: 10px 12px; }
}
@media (max-width: 440px) {
  .gallery-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
