:root {
  color-scheme: light;
  --ink: #102c3d;
  --blue: #173d50;
  --paper: #f9f4e9;
  --gold: #f0bb69;
  --muted: #435865;
  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 3px solid #bc651d; outline-offset: 5px; }
.shell { width: min(1216px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 5; padding: 12px 18px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--ink); color: var(--paper); border-bottom: 1px solid #ffffff20; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.header-inner { padding-block: 10px; }
.studio-home { display: block; width: 176px; flex: 0 1 auto; }
.studio-home img { width: 100%; height: auto; }
.studio-name { font: 1.55rem/1.1 var(--display); text-decoration: none; letter-spacing: -.035em; }
.studio-name span { color: var(--gold); }
.site-header nav a, .back-top { font-size: .85rem; font-weight: 650; text-decoration: none; }
.site-header nav span, .back-top span { color: var(--gold); margin-left: 5px; }
.site-header nav a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); }
.hero-art { position: absolute; z-index: -1; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 49%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #102c3d 1%, #102c3df5 20%, #102c3dbb 39%, #102c3d33 66%, transparent 83%), linear-gradient(0deg, #102c3d66, transparent 33%); }
.hero-art figcaption { position: absolute; right: clamp(18px, 4vw, 64px); bottom: 18px; z-index: 1; font-size: .7rem; padding: 5px 10px; background: #102c3de8; border-radius: 4px; }
.hero-inner { min-height: clamp(500px, 48vw, 700px); display: flex; align-items: center; padding-block: 74px; }
.hero-copy { max-width: 550px; }
.eyebrow, .game-type { font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: var(--gold); margin-bottom: 18px; }
.hero h1 img { width: min(100%, 510px); height: auto; }
.hero-description { margin-top: 26px; max-width: 320px; color: #fbf4e5; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.5; }
.button { display: inline-flex; align-items: center; gap: 24px; margin-top: 30px; padding: 13px 20px; min-height: 48px; border-radius: 5px; background: var(--gold); color: var(--ink); font-size: .89rem; font-weight: 750; text-decoration: none; }
.button:hover { background: #ffcf87; }
.button span { font-size: 1.1rem; }

.lineup { padding-block: clamp(54px, 7vw, 94px) clamp(58px, 8vw, 104px); }
.lineup-heading { margin-bottom: 29px; border-bottom: 1px solid #d5cbb9; padding-bottom: 17px; }
.lineup h2 { font: clamp(2.65rem, 5.2vw, 4.7rem)/1 var(--display); letter-spacing: -.055em; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game { min-width: 0; border-radius: 12px; overflow: hidden; background: #fffaf0; border: 1px solid #ded4c2; }
.game-visual { aspect-ratio: 1.6; position: relative; overflow: hidden; background: var(--blue); }
.game-art { width: 100%; height: 100%; object-fit: cover; }
.ark-visual .game-art { object-position: 51% center; }
.game-logo { position: absolute; bottom: 12px; left: 12px; width: 43%; height: auto; filter: drop-shadow(0 2px 5px #102c3d70); }
.jonah-visual .game-logo { width: 51%; }
.hillside-visual .game-art { object-position: 56% center; }
.game-copy { padding: 24px 22px 29px; }
.game-type { color: #725523; margin-bottom: 10px; }
.game h3 { font: clamp(1.55rem, 2.5vw, 2.2rem)/1.07 var(--display); letter-spacing: -.036em; }
.game-copy > p:last-child { margin-top: 13px; color: var(--muted); font-size: .95rem; line-height: 1.63; }

.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 106px; }
.footer-inner small { color: #d4dbdb; font-size: .77rem; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 56px); }
  .game-grid { gap: 16px; }
  .game-copy { padding: 19px 16px 23px; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 65px; }
  .studio-name { font-size: 1.35rem; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: auto; padding-block: 45px 37px; }
  .studio-home { width: 140px; }
  .hero h1 img { width: min(100%, 410px); }
  .hero-art { position: relative; z-index: auto; order: 1; aspect-ratio: 16 / 9; }
  .hero-art::after { background: linear-gradient(180deg, #102c3d33, transparent 24%); }
  .hero-art figcaption { bottom: 11px; right: 13px; }
  .hero-description { margin-top: 18px; }
  .button { margin-top: 23px; }
  .game-grid { grid-template-columns: 1fr; gap: 20px; }
  .game-copy { padding: 20px 20px 24px; }
  .game h3 { font-size: 2rem; }
  .footer-inner { min-height: 0; flex-wrap: wrap; padding-block: 25px; }
  .footer-inner small { order: 1; flex-basis: 100%; }
}

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

.game-grid .game { position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.game-grid .game h3 a { text-decoration: none; }
.game-grid .game h3 a::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.game-grid .game h3 a:focus-visible { outline: none; }
.game-grid .game:has(a:focus-visible) { outline: 3px solid #bc651d; outline-offset: 3px; }
.game-grid .game:hover, .game-grid .game:focus-within { border-color: #b7955d; box-shadow: 0 8px 28px #53412516; }
.game-grid .game:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.game-grid .game h3::after { content: "↗"; vertical-align: .16em; margin-left: .35em; font: 650 .48em/1 var(--body); color: #725523; }

.studio-intro { background: #e9e2d3; padding-block: clamp(46px, 7vw, 88px); }
.studio-intro-inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 24px 48px; }
.studio-intro h2 { font: clamp(2.4rem, 4.2vw, 4.25rem)/1.02 var(--display); letter-spacing: -.052em; text-wrap: balance; }
.studio-intro p { margin-top: 14px; color: var(--muted); }
.studio-intro video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--blue); }

@media (max-width: 700px) {
  .studio-intro-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .game-grid .game { transition: none; }
}
