:root {
  color-scheme: dark;
  --bg: #151715;
  --surface: #101310;
  --text: #f2f0e9;
  --muted: #b0b5ac;
  --accent: #c7a76d;
  --line: #343831;
  --content: 74rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(2.75rem, 5vw, 4.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
p, h1, h2, figure { margin: 0; }
h1, h2 { font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
p { color: var(--muted); }
.container { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 1rem; left: var(--gutter); padding: .6rem 1rem; color: var(--bg); background: var(--text); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
/* A normal-flow header keeps anchors visible and needs no mobile menu script. */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; gap: .85rem; align-items: center; text-decoration: none; font-size: .875rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.brand img { width: 1.1rem; height: 2.4rem; object-fit: contain; }
.brand-secondary { color: var(--muted); font-weight: 400; }
nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
nav a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .875rem; text-decoration: none; }
nav a:hover, .footer-brand:hover { color: var(--accent); }
/* Neither hero height nor content size is tied to the viewport's height. */
.hero { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.hero-logo { width: 9.5rem; max-height: 14rem; object-fit: contain; justify-self: center; }
.hero-copy { max-width: 44rem; }
h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); }
.lede { max-width: 39rem; margin-top: 1.25rem; font-size: clamp(1rem, 1.5vw, 1.125rem); }
.text-link { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 2.75rem; margin-top: 1.25rem; color: var(--accent); font-weight: 600; text-decoration-thickness: 1px; }
.text-link span { font-size: 1.25rem; font-weight: 400; }
.text-link:hover { color: var(--text); }
.games { background: var(--surface); border-block: 1px solid var(--line); }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(2rem, 4.5vw, 4rem); padding-block: var(--section-space); }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: .6875rem; font-weight: 600; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.project h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.project-pitch { margin-top: 1.5rem; margin-bottom: 1.25rem; color: var(--text); font-size: clamp(1.125rem, 1.65vw, 1.375rem); line-height: 1.45; letter-spacing: -.015em; }
.project-copy > p:not(.eyebrow, .status) { max-width: 29rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .75rem; }
.project-tags li + li::before { content: "/"; margin-right: 1rem; color: var(--accent); }
.status { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; color: var(--accent); font-size: .75rem; }
.status span { width: .375rem; height: .375rem; background: currentColor; border-radius: 50%; }
.project-media { display: grid; gap: 1.5rem; min-width: 0; width: 100%; max-width: 40rem; justify-self: end; }
.screenshot-link { display: block; border: 1px solid var(--line); background: #0a100c; }
.screenshot-link:hover { border-color: var(--accent); }
.screenshot-link img { width: 100%; aspect-ratio: 2332 / 842; max-height: 18rem; object-fit: contain; }
.title-screen { width: 100%; }
.title-screen img { aspect-ratio: 2340 / 1080; max-height: 15rem; }
figcaption { margin-top: .5rem; color: var(--muted); font-size: .6875rem; letter-spacing: .025em; }
.section-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; padding-block: var(--section-space); }
.section-row h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.section-row > p, .section-row > div > p { max-width: 36rem; }
.workshop { display: block; }
.workshop > p:last-child { max-width: 38rem; margin-top: 1.25rem; }
.about-copy p + p { margin-top: 1rem; }
.studio-rule strong { color: var(--text); font-weight: 500; }
.contact { background: #1b1e19; }
.email { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1rem, 1.7vw, 1.375rem); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.75rem; font-size: .75rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .9rem; color: var(--muted); text-decoration: none; }
.footer-brand img { width: 1.1rem; height: 2.4rem; object-fit: contain; }
.site-footer > p { font-style: italic; }
/* Stack when two useful columns no longer fit, independent of device labels. */
@media (max-width: 52rem) {
  .hero { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; }
  .hero-logo { width: 7.5rem; }
  .project { grid-template-columns: 1fr; gap: 2rem; }
  .project-copy > p:not(.eyebrow, .status) { max-width: 36rem; }
  .project-media { justify-self: center; }
  .section-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; }
}
@media (max-width: 36rem) {
  .header-inner { min-height: 4.25rem; gap: .5rem; }
  .brand { font-size: .6875rem; letter-spacing: .045em; gap: .5rem; }
  .brand img { width: .875rem; height: 2rem; }
  .brand-secondary { display: block; font-size: .625rem; line-height: 1.2; letter-spacing: .15em; }
  nav a { font-size: .8125rem; }
  .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.5rem; }
  .hero-logo { width: 5.5rem; justify-self: start; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .lede { margin-top: 1rem; }
  .project h2 { font-size: 2.125rem; }
  .project-pitch { font-size: 1.125rem; }
  .title-screen { width: 100%; }
  .section-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .eyebrow { margin-bottom: .75rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .site-footer > p { margin-left: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
