@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@400;600;700&family=DM+Serif+Display:ital@0;1&display=swap");

:root {
  --paper: #f4efdf;
  --ink: #f4efdf;
  --night: #151412;
  --red: #a91520;
  --blue: #72a6c5;
  --orange: #e87428;
  --yellow: #f5df24;
  --pink: #df6f83;
  --sans: "DM Sans", sans-serif;
  --display: "Archivo Black", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--ink); font-family: var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; }
.site-header, main > section, footer { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; border-bottom: 1px solid rgb(244 239 223 / .28); }
.wordmark { display: flex; align-items: center; gap: 15px; font-family: var(--display); font-size: clamp(.9rem, 1.5vw, 1.25rem); text-decoration: none; text-transform: uppercase; }
.wordmark img { width: 78px; height: 78px; border-radius: 50%; object-fit: contain; }
nav { display: flex; gap: 12px; }
nav a { padding: 10px 16px; border: 1px solid rgb(244 239 223 / .45); border-radius: 999px; background: transparent; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
nav a:hover { background: var(--paper); color: var(--night); }

.hero { position: relative; min-height: 100vh; padding: clamp(80px, 11vw, 150px) 0 120px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 24px; color: var(--yellow); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; }
h1 { max-width: 1080px; font-family: var(--display); font-size: clamp(4.5rem, 11vw, 10.5rem); font-weight: 400; line-height: .82; letter-spacing: -.065em; text-transform: uppercase; }
h1 em { display: inline; color: var(--red); font-family: var(--serif); font-weight: 400; text-transform: none; }
.hero-title { width: 100%; margin-bottom: clamp(18px, 3vw, 42px); object-fit: contain; }
.hero-logo { width: min(72%, 720px); max-height: 58vh; margin-inline: auto; object-fit: contain; object-position: center; }
.hero-logo-link { position: relative; display: block; width: min(100%, 1050px); margin-inline: auto; color: inherit; text-decoration: none; }
.hero-logo-link > span { position: absolute; right: 8%; bottom: 9%; display: inline-flex; gap: 10px; align-items: center; padding: 12px 17px; border: 1px solid var(--ink); border-radius: 999px; background: var(--night); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.hero-logo-link:hover > span, .hero-logo-link:focus-visible > span { background: var(--paper); color: var(--night); transform: translateX(5px); }
.round-link { display: inline-flex; align-items: center; gap: 28px; margin-top: 52px; padding: 17px 23px; border: 1px solid var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.round-link:hover { background: var(--paper); color: var(--night); }

.gallery { padding: 125px 0 160px; border-top: 1px solid rgb(244 239 223 / .28); }
.gallery-link { margin-top: 100px; }
.gallery-page-intro { padding: 120px 0 100px; }
.gallery-page-intro h1 { max-width: none; font-size: clamp(5rem, 13vw, 13rem); }
.gallery-page-intro > p:last-child { margin: 30px 0 0; color: rgb(244 239 223 / .62); }
.gallery-page { padding-top: 100px; }
.section-title { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; margin-bottom: 90px; }
.section-title h2, .game-heading h2 { max-width: 900px; font-family: var(--display); font-size: clamp(4rem, 9vw, 9rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.art-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 110px 38px; align-items: start; }
.card { grid-column: span 5; margin: 0; }
.card:nth-child(1) { grid-column: 1 / span 6; }
.card:nth-child(2) { grid-column: 8 / span 5; margin-top: 150px; }
.card:nth-child(3) { grid-column: 2 / span 4; }
.card:nth-child(4) { grid-column: 7 / span 6; margin-top: 80px; }
.card:nth-child(4n + 5) { grid-column: 1 / span 5; margin-top: 40px; }
.card:nth-child(4n + 6) { grid-column: 7 / span 6; margin-top: 150px; }
.card:nth-child(4n + 7) { grid-column: 2 / span 4; margin-top: 20px; }
.card:nth-child(4n + 8) { grid-column: 7 / span 5; margin-top: 100px; }
.card img { max-height: 72vh; border: 1px solid rgb(244 239 223 / .25); background: #24211e; object-fit: contain; }
.art-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.art-open img { transition: opacity .2s ease; }
.art-open:hover img, .art-open:focus-visible img { opacity: .78; }
.card figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 13px 4px 2px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.card figcaption span { opacity: .6; }

.game-section { width: 100%; max-width: none; padding: 135px max(24px, calc((100vw - 1380px) / 2)); border-top: 1px solid rgb(244 239 223 / .28); background: #201d1a; color: var(--paper); }
.game-heading { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 42px; align-items: end; margin-bottom: 65px; }
.game-heading .eyebrow { color: var(--yellow); }
.game-heading p:last-child { margin: 0; font-size: .9rem; line-height: 1.65; }
.game-shell { display: grid; min-height: min(68vh, 720px); padding: 18px; border: 1px solid rgb(244 239 223 / .45); background: #0d0c0b; color: var(--paper); }
.game-placeholder { display: grid; place-content: center; border: 1px dashed rgb(244 239 223 / .3); background: radial-gradient(circle at center, #302b26, #11100f 64%); text-align: center; }
.pixel-face { font-family: monospace; font-size: clamp(4rem, 9vw, 9rem); }
.game-placeholder p { margin: 20px 0 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 4rem); text-transform: uppercase; }
footer { display: flex; justify-content: space-between; gap: 28px; padding: 42px 0; border-top: 1px solid rgb(244 239 223 / .28); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
footer p { margin: 0; }
footer a { text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: flex-end; }

.art-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 56px 80px 50px; border: 0; background: rgb(10 9 8 / .97); color: var(--paper); }
.art-lightbox::backdrop { background: rgb(10 9 8 / .96); }
.art-lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; margin: 0; }
.art-lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.art-lightbox figcaption { padding-top: 16px; font-size: .7rem; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.art-lightbox button { position: fixed; z-index: 2; border: 1px solid rgb(244 239 223 / .55); border-radius: 999px; background: rgb(10 9 8 / .72); color: var(--paper); cursor: pointer; }
.lightbox-close { top: 20px; right: 24px; padding: 10px 16px; font: 700 .65rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.lightbox-previous, .lightbox-next { top: 50%; width: 44px; height: 44px; font-size: 1.2rem; transform: translateY(-50%); }
.lightbox-previous { left: 20px; }
.lightbox-next { right: 20px; }

.game-page-intro { padding: 110px 0 70px; }
.game-page-intro h1 { font-size: clamp(5rem, 14vw, 13rem); }
.game-page-intro > p:last-child { margin: 28px 0 0; color: rgb(244 239 223 / .62); }
.standalone-game { padding-bottom: 140px; }
.standalone-game .game-shell { min-height: min(72vh, 800px); }

@media (max-width: 780px) {
  .site-header, main > section, footer { width: min(100% - 28px, 1380px); }
  .site-header { min-height: 92px; }
  .wordmark span { display: none; }
  .wordmark img { width: 62px; height: 62px; }
  nav a { padding: 8px 10px; font-size: .58rem; }
  .hero { min-height: 0; padding: 85px 0 100px; }
  h1 { font-size: clamp(4rem, 20vw, 7rem); }
  .hero-title { margin-bottom: 12px; }
  .hero-logo { width: 86%; max-height: none; }
  .hero-logo-link > span { right: 0; bottom: 4%; }
  .section-title, .game-heading { grid-template-columns: 1fr; }
  .gallery, .game-section { padding-top: 90px; padding-bottom: 100px; }
  .section-title { margin-bottom: 60px; }
  .art-grid { grid-template-columns: 1fr; gap: 65px; }
  .card:nth-child(n) { grid-column: 1; width: 100%; margin: 0; }
  .game-shell { min-height: 50vh; padding: 10px; }
  .art-lightbox { padding: 58px 42px 44px; }
  .lightbox-previous { left: 5px; }
  .lightbox-next { right: 5px; }
  footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
