:root {
  color-scheme: dark;
  --background: #11110f;
  --surface: #1a1915;
  --text: #f8f3e8;
  --muted: #cfc8b9;
  --accent: #fcd24d;
  --border: #393328;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
}

body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.frame {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 3;
  transform: translateY(-160%);
  background: var(--background);
  color: var(--text);
  padding: .6rem .9rem;
}

.skip-link:focus { transform: none; }

.site-header {
  background: #11110fee;
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  width: 7.8rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2rem);
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 650;
  font-size: .94rem;
}

nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  align-items: center;
  min-height: clamp(35rem, 70svh, 48rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-art,
.hero::after,
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 66% 12%; }

.hero::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(0deg, #11110f 0%, #11110f00 37%),
    linear-gradient(90deg, #11110ff5 0%, #11110fc9 29%, #11110f40 63%, #11110f00 88%);
}

.hero-inner { padding-block: 4.2rem 3.6rem; }

.label {
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.hero-label::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  width: min(31rem, 92%);
  margin: 1.5rem 0 1.35rem;
}

.hero h1 img { width: 100%; }

.hero-subtitle {
  display: block;
  margin-top: .65rem;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 650;
  line-height: 1.2;
}

.hero-description {
  max-width: 28rem;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 515;
  line-height: 1.5;
  text-wrap: pretty;
  margin: 0 0 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .7rem 1.4rem;
  background: var(--accent);
  color: #211905;
  border: 1px solid var(--accent);
  border-radius: .25rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: #ffe391; }

.platforms {
  display: flex;
  align-items: center;
  gap: .62rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 1.4rem 0 0;
}

.platforms span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }

.section h2 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 0 0 1.55rem;
  text-wrap: balance;
}

.modes,
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid #8a6f2e;
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.mode h3 {
  font-size: clamp(1.24rem, 3vw, 1.65rem);
  margin: 0 0 .45rem;
}

.format {
  color: var(--accent);
  white-space: nowrap;
}

.mode p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 42ch;
  margin: 0;
}

.gallery-section {
  background: #181611;
  border-block: 1px solid var(--border);
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background);
}

.gallery img { width: 100%; }
.gallery figcaption {
  padding: .8rem 1rem;
  color: var(--muted);
  font-weight: 600;
}

.developer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 5vw, 4rem);
}

.developer h2 { margin-bottom: 0; }

.developer-bio {
  max-width: 64ch;
  border-left: 2px solid #8a6f2e;
  padding-inline-start: clamp(1rem, 3vw, 2rem);
  color: var(--muted);
  line-height: 1.65;
}

.developer-bio p { margin: 0; }
.developer-bio p + p { margin-top: 1em; }
.developer-bio strong { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); }

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  color: var(--muted);
  text-underline-offset: .2em;
}

@media (max-width: 720px) {
  .header-inner { min-height: 3.75rem; }
  .brand { width: 6.4rem; }
  nav { gap: clamp(.6rem, 2.4vw, .9rem); }
  .hero { min-height: 37rem; align-items: end; }
  .hero-art img { object-position: 68% 38%; }
  .hero::after {
    background:
      linear-gradient(0deg, #11110f 0%, #11110fed 16%, #11110f8a 48%, #11110f0d 77%),
      linear-gradient(90deg, #11110f68 0%, #11110f00 80%);
  }
  .hero-inner { padding-block: 12rem 2.5rem; }
  .modes, .gallery, .developer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
