@font-face {
  font-family: Geist;
  src: url("assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0c1520;
  --surface: #121e2b;
  --text: #f6f0e6;
  --muted: #a8afaf;
  --line: #293541;
  --accent: #da9857;
  background: var(--canvas);
  color: var(--text);
  font-family: Geist, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; }
img { max-width: 100%; }
svg { width: 1.15rem; height: 1.15rem; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #071413; background: var(--accent); }
.wrap { width: min(87%, 78rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; border-radius: .3rem; padding: .8rem 1rem; background: var(--text); color: var(--canvas); }
.skip:focus { top: .5rem; }

.masthead { background: var(--canvas); border-bottom: 1px solid #202327; }
.masthead-inner, .footer-inner, nav, .brand, .release { display: flex; align-items: center; }
.masthead-inner, .footer-inner { justify-content: space-between; }
.masthead-inner { min-height: 4.75rem; gap: 2.5rem; }
.brand { flex: none; width: fit-content; min-height: 2.75rem; color: var(--text); font-size: 1.65rem; font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.brand-accent { color: var(--accent); }
nav { gap: 2.25rem; }
nav a, .footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #bec3c3; font-size: .94rem; }
nav a:hover, .footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: .4em; text-decoration-color: var(--accent); }

.studio-home { display: grid; place-items: center; padding-block: clamp(3rem, 9vw, 8rem); text-align: center; }
.studio-mark { width: clamp(8rem, 16vw, 12rem); height: auto; margin: 0 auto 1.5rem; }
.studio-home h1 { font-size: clamp(2.5rem, 8vw, 7rem); }
.studio-home .lede { margin: 1.15rem auto 0; max-width: 27rem; }
.release { gap: .85rem; color: #c1c8c7; font-size: .9rem; line-height: 1.2; }
.availability { display: inline-flex; align-items: center; gap: .55rem; }
.availability::before { content: ""; width: .38rem; height: .38rem; background: var(--accent); border-radius: 50%; }
.release span + span { border-inline-start: 1px solid #50575a; padding-inline-start: .85rem; }
h1 { font-size: clamp(5rem, 8.55vw, 8.9rem); line-height: 1; font-weight: 460; letter-spacing: -.07em; }
.lede, .game-description { color: #c0c7c7; font-size: clamp(1.12rem, 1.48vw, 1.36rem); line-height: 1.55; letter-spacing: -.024em; }
.lede { max-width: 22em; text-wrap: pretty; }
.button { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; margin-top: 1.85rem; padding: .72rem 1.45rem; border-radius: 2rem; background: #f6f0e6; color: #101317; font-size: .96rem; font-weight: 570; transition: background .16s; }
.button:hover { background: #edc49a; }

.section-label { font-size: .96rem; line-height: 1.4; font-weight: 510; letter-spacing: -.012em; color: #c0c6c5; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 4.9rem; }
.footer small, .footer a { color: var(--muted); font-size: .86rem; }

.page-title { padding-block: clamp(3.5rem, 6.5vw, 6.3rem) clamp(2rem, 3.8vw, 3.7rem); }
.catalog { list-style: none; padding: 0 0 clamp(3rem, 6vw, 6rem); margin: 0; }
.catalog li, .contact-row { border-top: 1px solid var(--line); }
.catalog-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(1.6rem, 3.1vw, 3rem); }
.catalog-art { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .65rem; background: var(--surface); }
.catalog-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog-copy h2 { margin-block: .75rem .65rem; font-size: clamp(2.5rem, 4.3vw, 4.2rem); font-weight: 460; line-height: 1.05; letter-spacing: -.06em; }
.catalog-description { max-width: 27rem; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.entry-link { display: inline-block; margin-top: 1.2rem; font-size: .95rem; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #6c7577; }
.catalog-entry:hover .entry-link, .catalog-entry:focus-visible .entry-link { color: var(--accent); text-decoration-color: currentColor; }
.contact-row { display: grid; grid-template-columns: 1fr 2.55fr; gap: 2rem; align-items: baseline; padding-block: clamp(2rem, 4.5vw, 4.5rem); }
.contact-details { min-width: 0; }
.contact-intro h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 520; letter-spacing: -.045em; }
.contact-intro p { max-width: 26rem; margin-top: .7rem; color: var(--muted); line-height: 1.55; }
.feedback-form, .feedback-field { display: grid; }
.feedback-form { max-width: 46rem; gap: 1.25rem; }
.feedback-field { min-width: 0; gap: .45rem; font-size: 1rem; }
.feedback-form small { color: var(--muted); font-size: .86rem; }
.feedback-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feedback-form :is(input:not([type="hidden"]), select, textarea) { width: 100%; min-width: 0; min-height: 2.95rem; background-color: var(--surface); color: var(--text); border: 1px solid #454d50; border-radius: .45rem; padding: .7rem .85rem; font: inherit; }
.feedback-form select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bec3c3' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.feedback-form textarea { resize: vertical; line-height: 1.5; min-height: 7rem; }
.feedback-form button { margin: 0; justify-self: start; border: 0; }
.feedback-notice { max-width: 46rem; margin-bottom: 1.4rem; border-left: 2px solid var(--accent); padding: .7rem 1rem; background: var(--surface); line-height: 1.5; }
.feedback-notice[role="alert"] { border-color: #f2a087; }
@media (max-width: 640px) { .feedback-pair { grid-template-columns: 1fr; gap: 1.25rem; } }
.game-return { padding-top: clamp(1.4rem, 3vw, 2.5rem); }
.back-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid #41494d; border-radius: 2rem; font-size: .94rem; }
.back-button:hover { background: var(--surface); border-color: var(--accent); }
.game-return + .game-summary { padding-top: clamp(1.8rem, 4vw, 4rem); }

.game-summary { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; padding-block: clamp(3.7rem, 6.7vw, 7rem) clamp(2.9rem, 5vw, 5rem); }
.game-summary h1 { margin-top: 1rem; }
.game-description { max-width: 34rem; padding-bottom: .3rem; }
.gallery { border-top: 1px solid var(--line); padding-block: 1.45rem clamp(3.3rem, 6vw, 6rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin-top: 1.45rem; }
.gallery-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { position: relative; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1.1rem, 2.3vw, 2.3rem) 1rem; cursor: zoom-in; transition: border-color .2s; }
.shot:hover, .shot:focus-visible { border-color: #677674; }
.shot img { width: min(78%, 12.25rem); height: auto; border-radius: .4rem; }
.zoom { position: absolute; display: grid; place-items: center; bottom: .6rem; right: .6rem; width: 2.25rem; height: 2.25rem; color: #b6bfbd; }
.shot:hover .zoom { color: #fff; }
figcaption { margin-top: 1.1rem; }
figcaption small { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
figcaption h3 { margin-block: .32rem .45rem; font-weight: 520; font-size: clamp(1.3rem, 1.65vw, 1.6rem); line-height: 1.15; letter-spacing: -.045em; }
figcaption p { max-width: 22rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }

dialog { width: min(92vw, 24rem); max-height: 96dvh; padding: .8rem; border: 1px solid #383f43; border-radius: .8rem; color: var(--text); background: var(--surface); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #030506e8; }
body:has(dialog[open]) { overflow: hidden; }
.viewer-bar, .viewer-controls { display: flex; flex: none; align-items: center; justify-content: space-between; gap: .6rem; }
.viewer-bar { padding-inline-start: .35rem; }
.viewer-bar strong { font-size: .95rem; font-weight: 530; }
dialog button { min-height: 2.75rem; padding: .5rem 1rem; color: var(--text); background: #1b1e23; border: 1px solid #3a3f43; border-radius: .45rem; }
dialog button:hover { background: #2c3236; }
.viewer-close { display: grid; place-items: center; min-width: 2.75rem; padding: .5rem; }
#viewer-image { width: 100%; height: min(68dvh, 40rem); min-height: 0; object-fit: contain; margin-block: .65rem; }
.viewer-controls button { flex: 1; }

@media (max-width: 850px) {
  .wrap { width: 90%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2.75rem); }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: .25rem; padding-block: .55rem; }
  .brand { font-size: 1.5rem; }
  nav { width: 100%; justify-content: space-between; gap: 1rem; }
  h1 { font-size: clamp(4.5rem, 15.5vw, 6.25rem); }
  .lede { max-width: 23rem; }
  .button { margin-top: 1.4rem; }
  .footer-inner { min-height: 4.2rem; }
  .game-summary { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.6rem 2rem; }
  .page-title { padding-block: 2.6rem 1.75rem; }
  .catalog-entry, .contact-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .game-summary h1 { margin-top: .75rem; }
  .game-description { max-width: 29rem; padding: 0; }
  .gallery { padding-top: 1.2rem; }
  .gallery-grid, .gallery-grid-pair { grid-template-columns: 1fr; gap: 2.25rem; margin-top: 1rem; }
  .shot img { width: min(70%, 13.5rem); }
  figcaption p { max-width: 31rem; }
}
@media (max-width: 360px) {
  .masthead-inner { width: calc(100% - 1.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
