:root {
  color-scheme: dark;
  --ink: #15110e;
  --panel: #1d1712;
  --parchment: #f4e6cd;
  --muted: #c5b39c;
  --gold: #dcaf6c;
  --bright-gold: #ebc487;
  --line: #58432d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--parchment); font-family: var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--bright-gold); outline-offset: 4px; }
[id] { scroll-margin-top: 26px; }

.shell { width: min(100% - 112px, 1232px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 12px; left: 16px; padding: 12px 16px; background: var(--bright-gold); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  background: #16110e;
  border-bottom: 1px solid #483521;
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 36px; }
.wordmark { color: var(--parchment); font-weight: 700; letter-spacing: .076em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.wordmark span { color: var(--gold); }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 42px; color: var(--parchment); font-size: .9rem; font-weight: 600; }
.site-header nav a:hover { color: var(--bright-gold); }
.site-header .nav-contact { gap: 11px; padding-inline: 16px; border: 1px solid #765737; color: var(--bright-gold); }
.nav-contact:hover { border-color: var(--bright-gold); background: #302116; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #1c1510; }
.hero-art, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 47%; }
.hero::after {
  content: "";
  background:
    linear-gradient(0deg, var(--ink), transparent 29%),
    linear-gradient(90deg, #130e0be0 0%, #130e0b7d 39%, #130e0b14 68%, transparent 100%);
}
.hero-inner { min-height: clamp(570px, 47vw, 710px); display: grid; align-items: center; padding-block: 78px 104px; }
.hero-content { max-width: 670px; }
.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: .71rem;
  letter-spacing: .2em;
  line-height: 1.55;
  text-transform: uppercase;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.hero h1 {
  font: 600 clamp(4.3rem, 7.6vw, 7.6rem)/.83 var(--serif);
  letter-spacing: -.041em;
  text-wrap: balance;
}
.hero h1 em { color: var(--bright-gold); }
.hero-description { max-width: 395px; margin-block: 28px 30px; color: #e4d1b7; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
}
.button span, .text-link span, .gallery-arrow { font-size: 1.16em; }
.button-gold { color: #201509; background: linear-gradient(114deg, #efcb8e, #cf9e5d); border-color: #efd099; }
.button-gold:hover { background: #f4d29b; }
.chapter-rule {
  width: min(100% - 112px, 1232px);
  margin-inline: auto;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, transparent, #7e6345 48%, #7e6345 52%, transparent);
}
.chapter-rule span {
  position: absolute;
  width: 8px;
  height: 8px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--ink);
}

.section-space { padding-block: clamp(60px, 7vw, 102px); }
.section-title { font: 600 clamp(3rem, 5.5vw, 5.35rem)/.9 var(--serif); letter-spacing: -.037em; }
.games > .section-title { margin-bottom: 32px; }
.game-card {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  min-height: 383px;
  background: linear-gradient(120deg, #2f2015, #211a13 58%, #1d1712);
  border: 1px solid var(--line);
}
.game-cover { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; min-width: 0; }
.game-map { width: 100%; height: 100%; object-fit: cover; object-position: 46% 44%; position: absolute; inset: 0; z-index: -2; filter: sepia(.6) saturate(.78); }
.game-cover::after { content: ""; z-index: -1; position: absolute; inset: 0; background: radial-gradient(ellipse, #1d100e22 8%, #170b03ae 100%); }
.game-frame { position: absolute; inset: 16px; pointer-events: none; border: 1px solid #f2ca847d; box-shadow: 0 0 0 3px #1b130b4d, inset 0 0 0 3px #1b130b40; }
.game-mark { width: min(73%, 405px); filter: drop-shadow(0 9px 14px #2a150dd9); }
.game-info {
  min-width: 0;
  padding: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.game-status { display: flex; align-items: center; gap: 10px; }
.game-status::before { content: ""; background: var(--gold); width: 6px; height: 6px; transform: rotate(45deg); }
.game-info h3 { margin-block: 12px 18px; font: 600 clamp(2.65rem, 4.05vw, 4.1rem)/.92 var(--serif); letter-spacing: -.035em; }
.game-description { color: var(--muted); line-height: 1.7; font-size: 1rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-block: 21px 18px; }
.game-meta li { color: #e8c999; border: 1px solid #5b452f; padding: 6px 9px; font-size: .73rem; line-height: 1.25; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--bright-gold); font-size: .92rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.game-features { margin-top: 44px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; padding: 0; list-style: none; }
.features-grid li { position: relative; padding: 18px 0 0 18px; border-top: 1px solid var(--line); }
.features-grid li::before { content: ""; position: absolute; top: 27px; left: 1px; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.features-grid h4 { margin: 0 0 7px; font: 600 1.65rem/1.1 var(--serif); color: var(--parchment); }
.features-grid p { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.game-gallery { margin-top: 44px; }
.game-gallery .gallery-note { margin-block: -5px 18px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.game-features h3, .game-gallery h3 { margin-bottom: 16px; font: 600 clamp(1.75rem, 3.3vw, 2.52rem)/1 var(--serif); }
.gallery-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-link { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.gallery-link img { width: 100%; aspect-ratio: 1.83; object-fit: cover; object-position: 50% 48%; transition: filter .2s; filter: brightness(.88) saturate(.86); }
.gallery-link:hover { border-color: var(--gold); }
.gallery-link:hover img, .gallery-link:focus-visible img { filter: none; }
.gallery-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 15px; font-weight: 600; font-size: .9rem; }
.gallery-arrow { color: var(--gold); }

.studio {
  background: radial-gradient(ellipse at 23% 58%, #382719, transparent 48%), #1c1611;
  border-block: 1px solid #483626;
}
.studio-inner { min-height: 430px; display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 35px; padding-block: 62px; }
.studio-emblem { position: relative; display: grid; place-items: center; min-height: 258px; }
.studio-emblem::before, .studio-emblem::after {
  content: "";
  position: absolute;
  width: var(--ring-size, 248px);
  aspect-ratio: 1;
  border: 1px solid #b9895945;
  border-radius: 50%;
}
.studio-emblem::after { --ring-size: 266px; border-color: #b989592a; }
.studio-emblem-lockup { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.studio-emblem img { width: 114px; filter: drop-shadow(0 12px 16px #160d0699); }
.studio-emblem .wordmark { font-size: 1.16rem; letter-spacing: .12em; }
.studio-story { max-width: 600px; }
.studio-story .section-title { margin-block: 12px 22px; }
.studio-story > p:last-child { color: var(--muted); max-width: 510px; font-size: 1.05rem; line-height: 1.7; }

.contact-section { padding-block: clamp(54px, 7vw, 95px); }
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(25px, 5vw, 57px);
  border: 1px solid #795f40;
  background: linear-gradient(110deg, #2d2116, #1e1712 62%, #2b1d11);
}
.contact-panel > div { min-width: 0; max-width: 100%; }
.contact-panel .section-title { margin-block: 10px 11px; font-size: clamp(2.75rem, 5.1vw, 4.65rem); }
.contact-panel p:last-child { color: var(--muted); line-height: 1.5; }
.site-footer { border-top: 1px solid #413020; color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 74px; }
.footer-inner a { padding-block: 12px; }
.footer-inner a:hover { color: var(--bright-gold); }
.footer-inner a span { margin-inline-start: 4px; color: var(--gold); }

dialog {
  width: min(100% - 32px, 1100px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  background: var(--panel);
  border: 1px solid #a0784f;
  color: var(--parchment);
}
dialog::backdrop { background: #0d0a08e6; }
.dialog-toolbar { padding: 9px 13px 9px 18px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dialog-toolbar h2 { font: 600 clamp(1.55rem, 4vw, 2rem)/1 var(--serif); }
.dialog-figure > img { width: 100%; height: min(68dvh, 680px); object-fit: contain; background: #110e0c; }
.dialog-controls { padding: 9px 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: center; font-size: .92rem; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--bright-gold); border: 1px solid #796044; background: transparent; font-size: 1.35rem; cursor: pointer; }
.icon-button:hover { background: #47331f; }

@media (max-width: 880px) {
  .shell, .chapter-rule { width: calc(100% - 64px); }
  .hero-inner { min-height: 560px; }
  .game-info { padding: 26px; }
  .game-card { min-height: 340px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .studio-inner { gap: 26px; }
  .studio-emblem::before { --ring-size: 197px; }
  .studio-emblem::after { --ring-size: 215px; }
  .studio-emblem img { width: 95px; }
}

@media (max-width: 650px) {
  .shell, .chapter-rule { width: calc(100% - 36px); }
  .header-inner { min-height: 67px; gap: 12px; }
  .brand { gap: 7px; font-size: .78rem; }
  .brand img { width: 28px; }
  .site-header nav { gap: clamp(11px, 3vw, 20px); }
  .site-header nav a { font-size: .82rem; }
  .site-header .nav-contact { padding-inline: 9px; gap: 5px; }
  .hero-inner { min-height: clamp(590px, 130vw, 670px); padding-block: 225px 51px; align-items: end; }
  .hero-art img { object-position: 59% 28%; }
  .hero::after {
    background: linear-gradient(0deg, var(--ink) 1%, #15110ef2 23%, #15110eab 52%, #15110e12 84%),
      linear-gradient(90deg, #15110e43, transparent 65%);
  }
  .hero h1 { font-size: clamp(3.35rem, 11.4vw, 4.85rem); }
  .hero-eyebrow { margin-bottom: 16px; gap: 10px; }
  .hero-eyebrow::before { width: 22px; }
  .hero-description { margin-block: 20px 22px; }
  .games > .section-title { margin-bottom: 23px; }
  .game-card { grid-template-columns: 1fr; }
  .game-cover { aspect-ratio: 1.64; }
  .game-frame { inset: 12px; }
  .game-info { padding: 24px 21px 19px; }
  .game-features, .game-gallery { margin-top: 32px; }
  .features-grid { grid-template-columns: 1fr; gap: 19px; }
  .features-grid h4 { font-size: 1.55rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 13px; }
  .studio-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 42px 49px; }
  .studio-emblem { min-height: 196px; }
  .studio-emblem::before { --ring-size: 171px; }
  .studio-emblem::after { --ring-size: 185px; }
  .studio-emblem img { width: 88px; }
  .studio-emblem .wordmark { font-size: .94rem; }
  .studio-story > p:last-child { font-size: 1rem; }
  .contact-panel .button { min-height: 47px; }
  .dialog-figure > img { height: auto; min-height: 130px; max-height: 68dvh; }
}

@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { gap: 5px; font-size: .72rem; }
  .brand img { width: 25px; }
  .brand .wordmark { letter-spacing: .025em; }
  .site-header nav { gap: 8px; }
  .site-header .nav-contact { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-link, .gallery-link img { transition: none; }
}
