:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --ink: #271c16;
  --muted: #625248;
  --wine: #742c32;
  --wine-deep: #572027;
  --rule: #d7c8b5;
  --panel: #f1eadf;
  --panel-edge: #d7c8b5;
  --action: #742c32;
  --action-hover: #572027;
  --action-text: #fff9ef;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, sans-serif;
}
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #18130f;
  --ink: #f6ebdb;
  --muted: #c9b9a5;
  --wine: #edc487;
  --rule: #47392d;
  --panel: #221a14;
  --panel-edge: #49382a;
  --action: #edc487;
  --action-hover: #f7d6a4;
  --action-text: #291c12;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.skip { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 8px 12px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(calc(100% - 36px), 1120px); margin-inline: auto; }
.site-header, .site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 4px 20px; padding-block: 9px;
}
.site-header { min-height: 74px; border-bottom: 1px solid var(--rule); }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(13px, 2.6vw, 27px); }
.site-header a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a, .site-footer nav a { font-size: .88rem; font-weight: 600; }
.site-header nav a:hover, .site-footer nav a:hover, a[aria-current="page"] { color: var(--wine); text-decoration: underline; text-underline-offset: .26em; }
.theme-switch {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--wine); background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 50%;
  cursor: pointer;
}
.theme-switch[hidden] { display: none; }
.theme-switch:hover, .social-link:hover { color: var(--wine); border-color: currentColor; }
.theme-switch[aria-pressed="true"] svg { fill: #edc48722; }
.site-footer .social-link { justify-content: center; width: 44px; color: var(--ink); }
.site-footer nav { column-gap: 10px; }
.site-footer nav > a:not(.social-link) { margin-inline-end: 8px; }
.wordmark { gap: 9px; font: 700 1.1rem/1.1 var(--serif); white-space: nowrap; }
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
.site-footer { min-height: 78px; color: var(--muted); border-top: 1px solid var(--rule); }
.site-footer p { margin: 0; font: 700 1rem var(--serif); }

.hero { display: grid; gap: clamp(25px, 5vw, 68px); padding-block: clamp(33px, 6.1vw, 78px); }
.hero-copy { align-self: center; }
.hero h1, .page-heading h1, .document h1 {
  margin: 0; font: 500 clamp(3.15rem, 8vw, 6.7rem)/.94 var(--serif);
  letter-spacing: -.065em;
}
.hero-line {
  margin: clamp(16px, 2.5vw, 27px) 0 0; color: var(--wine);
  font: italic 500 clamp(1.65rem, 3.8vw, 3.3rem)/1.05 var(--serif);
  letter-spacing: -.035em;
}
.hero-description {
  max-width: 39ch; margin: clamp(18px, 2.6vw, 29px) 0 0;
  color: var(--muted); font-size: clamp(1rem, 1.9vw, 1.15rem); line-height: 1.62;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 19px; margin-top: 24px; }
.download {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  padding: 11px 16px; background: var(--action); border: 1px solid transparent; border-radius: 8px;
  color: var(--action-text); font-weight: 720; font-size: .89rem; text-align: center; text-decoration: none;
}
.download:hover { background: var(--action-hover); }
.text-link, .browse-more a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--wine); font-weight: 650; text-underline-offset: .25em;
}
.availability { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.availability span { margin-inline: 3px; }
.hero-visual {
  display: grid; justify-items: center; align-content: center;
  min-width: 0; margin: 0; padding: clamp(18px, 3.5vw, 34px);
  background: #2b211c; border: 1px solid #514039; border-radius: 15px;
}
.hero-screen { position: relative; width: min(100%, 278px); }
.hero-capture {
  width: 100%; height: auto; aspect-ratio: 540 / 904;
  background: #16100c; border: 1px solid #947040; border-radius: 13px;
}
.hero-playback {
  position: absolute; inset: 0; width: 100%; padding: 0;
  border: 0; border-radius: 13px; background: transparent; color: transparent; cursor: pointer;
}
.hero-playback:focus-visible {
  outline-color: #eac98d; color: #fff3df; background: #18100a80; font: 650 .9rem system-ui, sans-serif;
}
.screenshot-viewer button {
  min-height: 44px; padding: 5px 11px; border: 1px solid #9f815d; border-radius: 7px;
  background: #2b211c; color: #f6e9d4; font: 650 .83rem/1.1 system-ui, sans-serif; cursor: pointer;
}
.screenshot-viewer button:hover { background: #ead3aa; border-color: #ead3aa; color: #261912; }
.screenshot-viewer button:focus-visible { outline-color: #eac98d; }

.story { padding: clamp(28px, 5vw, 52px) 0 0; border-top: 1px solid var(--rule); scroll-margin-top: 12px; }
.section-heading h2, .closing h2 {
  max-width: 20ch; margin: 0; color: var(--ink); text-wrap: balance;
  font: 500 clamp(2.25rem, 5vw, 4.3rem)/1 var(--serif); letter-spacing: -.05em;
}
.section-heading p, .closing p, .feature p {
  color: var(--muted); margin: 12px 0 0; line-height: 1.6;
}
.section-heading { text-align: center; margin: 0 auto clamp(23px, 4vw, 42px); }
.section-heading h2 { max-width: 24ch; margin-inline: auto; }
.feature {
  display: grid; align-items: center; gap: clamp(18px, 5vw, 62px);
  padding: clamp(21px, 4.5vw, 46px); margin-top: 20px;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 15px;
}
.feature + .feature { margin-top: clamp(14px, 2vw, 22px); }
.feature h3 {
  margin: 0; text-wrap: balance; font: 500 clamp(1.7rem, 3.4vw, 2.85rem)/1.05 var(--serif);
  letter-spacing: -.04em;
}
.feature p { max-width: 44ch; }
.feature-media {
  display: grid; place-items: center; margin: 0; min-width: 0; padding: clamp(10px, 2vw, 20px);
  background: #251c15; border: 1px solid #57402c; border-radius: 12px;
}
.feature-zoom { display: block; width: min(100%, 440px); border-radius: 9px; cursor: zoom-in; }
.feature-zoom:hover img { border-color: #e8bd7a; }
.feature-capture { width: 100%; height: auto; border: 1px solid #7e6545; border-radius: 9px; background: #211914; }
.feature-media-portrait .feature-zoom { width: min(100%, 310px); }
.screenshot-viewer {
  max-width: calc(100% - 24px); max-height: calc(100% - 24px); padding: 10px;
  border: 1px solid #b69260; border-radius: 12px; background: #211811; color: #fff2dd;
}
.screenshot-viewer::backdrop { background: #120c09d9; }
.screenshot-viewer form { display: flex; justify-content: end; margin-bottom: 8px; }
.screenshot-viewer img { width: auto; height: auto; max-height: 74vh; max-height: 74svh; margin-inline: auto; }

.story > .text-link { display: flex; width: fit-content; margin: 12px auto 0; }
.feedback-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.document .feedback-links .download { color: var(--action-text); }
.document .feedback-links .download-secondary { color: var(--wine); border-color: var(--panel-edge); background: var(--panel); }
.document .feedback-links .download-secondary:hover { border-color: var(--wine); }

.closing {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 21px; margin-block: clamp(36px, 7vw, 78px);
  padding: clamp(22px, 5vw, 50px); background: var(--wine-deep); border-radius: 14px;
}
.closing h2 { color: #fff4e4; font-size: clamp(2rem, 4.9vw, 3.55rem); }
.closing p { color: #eddbcb; }
.closing .download { background: #f4e7d5; color: #471c22; }
.closing .download:hover { background: #fff9ed; }
.closing .download:focus-visible { outline-color: #fff9ed; }

.page-heading { padding-block: clamp(32px, 7vw, 72px) clamp(25px, 5vw, 52px); }
.page-heading h1, .document h1 { max-width: 19ch; font-size: clamp(2.65rem, 6vw, 5.25rem); }
.page-heading p { max-width: 58ch; color: var(--muted); line-height: 1.65; }
.content-page section { min-width: 0; }
.game-grid, .clip-grid { display: grid; gap: 28px; }
.game-grid article { min-width: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
.game-grid img { width: 100%; height: clamp(215px, 40vw, 340px); object-fit: cover; object-position: center 38%; border-radius: 12px; background: #211914; }
.game-grid article:nth-child(3) img { object-position: center 73%; }
.game-grid h2, .clip-section h2, .document h2 { margin: 15px 0 8px; font: 600 clamp(1.4rem, 3vw, 2.1rem)/1.1 var(--serif); }
.game-grid p, .clip-section p, .faq-list p, .document p, .document li { color: var(--muted); line-height: 1.65; margin-top: 0; }
.clip-section { margin-block: clamp(34px, 7vw, 74px); padding-top: 20px; border-top: 1px solid var(--rule); }
.clip-grid { margin-block: 25px; }
.clip-grid article { min-width: 0; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; }
.clip-grid h3 { margin: 0 0 13px; font: 600 1.35rem/1.2 var(--serif); }
.clip-grid video { width: min(100%, 290px); aspect-ratio: 9 / 16; margin: 0 auto 14px; background: #211914; border-radius: 9px; }
.clip-section a, .faq-list a, .document a { color: var(--wine); text-underline-offset: .2em; overflow-wrap: anywhere; }
.content-page .closing, .content-page.closing { width: 100%; }
.faq-list { max-width: 760px; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { padding: 16px 0; font-weight: 680; cursor: pointer; }
.faq-list summary::marker { color: var(--wine); }
.faq-list p { max-width: 65ch; margin-bottom: 17px; }
.browse-more { display: flex; flex-wrap: wrap; gap: 5px 22px; margin-block: 32px; }
.document { max-width: 760px; padding-block: 38px 65px; }
.document .back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; }
.document .meta { margin-top: 16px; font-size: .91rem; }
.document h2 { margin-top: 29px; font-size: 1.45rem; }
.document ul { padding-left: 1.4rem; }
@media (min-width: 740px) {
  .wrap { width: min(calc(100% - 76px), 1120px); }
  .hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
  .feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .feature-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .feature-reverse .feature-copy { grid-area: 1 / 2; }
  .feature-reverse .feature-media { grid-area: 1 / 1; }
  .game-grid, .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .site-header nav { gap: 0 14px; }
  .site-header .theme-switch { margin-left: auto; }
}
