@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --card: #fffdf6;
  --ink: #22261e;
  --muted: #53564c;
  --line: #d9d6ca;
  --orange: #a84017;
  --peach: #ffa778;
  --lime: #e1ec9e;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Instrument Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.shell { width: min(100% - 6rem, 75rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--card);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5rem; }

.wordmark {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 800 1.6rem/1 var(--display);
  letter-spacing: -.07em;
  text-decoration: none;
}

.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  background: var(--peach);
  border-radius: .5rem;
  transform: rotate(-7deg);
}

.brand-mark::before, .brand-mark::after {
  content: "";
  height: 1.15rem;
  width: .22rem;
  grid-area: 1 / 1;
  border-radius: .05rem;
  background: var(--ink);
  transform: rotate(45deg);
}

.brand-mark::after { transform: rotate(-45deg); }

.site-header nav, .site-footer nav { display: flex; align-items: center; gap: clamp(.65rem, 2.6vw, 2rem); }
.site-header nav a { font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }
.nav-contact { padding: .45rem .8rem; border: 1px solid var(--ink); border-radius: .5rem; }
.nav-contact span { margin-left: .15rem; }

.hero {
  display: grid;
  grid-template-columns: .95fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.25rem);
  padding-block: clamp(3.75rem, 7vw, 6.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow span {
  flex: none;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--orange);
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; }

.hero h1 {
  margin-block: 1.2rem 1.35rem;
  font-size: clamp(3.35rem, 7.1vw, 7.4rem);
  line-height: .88;
  letter-spacing: -.085em;
}

.hero h1 em { color: var(--orange); font-style: normal; }

.hero-intro {
  max-width: 29ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.24rem);
}

.button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: .7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: .55rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.button-dark { color: var(--card); background: var(--ink); }
.button-dark:hover { color: var(--ink); background: var(--lime); }
.button-dark:focus-visible { outline-color: var(--ink); }
.button span { font-size: 1.2rem; line-height: 1; }

.hero-art {
  position: relative;
  aspect-ratio: 1.12;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.4rem;
  background-color: var(--peach);
  background-image: radial-gradient(#702b1d4d 1px, transparent 1px);
  background-size: 14px 14px;
}

.game-window {
  position: absolute;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: .75rem;
  background: var(--ink);
  box-shadow: .35rem .42rem 0 #22261e33;
}

.window-bar { display: flex; align-items: center; gap: .25rem; padding: .42rem; background: var(--card); }
.window-bar i { width: .35rem; height: .35rem; border: 1px solid var(--ink); border-radius: 50%; }
.window-bar i:first-child { background: var(--peach); }
.window-bar i:nth-child(2) { background: var(--lime); }

.side-a { top: 17%; left: 8%; width: 55%; transform: rotate(-15deg); }
.side-b { right: 7%; bottom: 11%; width: 57%; transform: rotate(14deg); }
.featured { z-index: 1; top: 20%; left: 18%; width: 65%; transform: rotate(-4deg); }

.art-spark { position: absolute; z-index: 2; color: var(--ink); line-height: 1; }
.art-spark-top { top: 8%; right: 10%; font-size: clamp(1.8rem, 4vw, 3.75rem); }
.art-spark-bottom { bottom: 11%; left: 11%; font-size: clamp(1.25rem, 3vw, 2.5rem); }

.studio {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.studio-inner, .contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3.5rem, 6.5vw, 6rem);
}

.studio .eyebrow { color: var(--lime); }

h2 {
  font-size: clamp(2.75rem, 5.6vw, 5.45rem);
  line-height: .94;
  letter-spacing: -.075em;
}

.studio h2, .contact h2 { margin-top: .75rem; }
.studio-copy { max-width: 49ch; font-size: clamp(1rem, 1.6vw, 1.25rem); color: #f0ebdd; }
.studio-copy p + p { margin-top: .8rem; }

.games { padding-block: clamp(3.5rem, 7vw, 6.75rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.75rem; }
.section-heading p { color: var(--muted); }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.game-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--card);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.game-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.game-card img { aspect-ratio: 580 / 390; object-fit: cover; background: #e6e1d4; }
.game-details { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.15rem; }
.game-details p { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.game-details h3 { margin-top: .15rem; font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.1; letter-spacing: -.045em; }
.game-arrow { display: grid; flex: none; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; }
.game-card:hover .game-arrow { color: var(--ink); background: var(--lime); border-color: var(--ink); }

.contact { background: var(--lime); border-block: 1px solid #cbd687; }
.contact-copy > p:not(.eyebrow) { margin-top: 1rem; max-width: 33ch; }
.contact-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--ink); border-radius: .85rem; background: var(--paper); font-style: normal; }
.contact-company { margin-bottom: .8rem; font: 800 clamp(1.25rem, 2.5vw, 1.7rem)/1.2 var(--display); letter-spacing: -.04em; }
.contact-card dl > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .6rem; padding-block: .65rem; border-top: 1px solid var(--line); }
.contact-card dl > div:last-child { padding-bottom: 0; }
.contact-card dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.contact-card dd { overflow-wrap: anywhere; font-size: .94rem; line-height: 1.45; }

.footer-inner { min-height: 5.5rem; padding-block: 1.25rem; color: var(--muted); font-size: .84rem; }
.site-footer nav { flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

.legal-inner { max-width: 52rem; padding-block: clamp(3rem, 6vw, 5.5rem); }
.legal-inner h1 { font-size: clamp(2.65rem, 6.5vw, 5.7rem); line-height: .96; letter-spacing: -.07em; }
.legal-inner h2 { margin-block: 2rem .65rem; font-size: clamp(1.55rem, 3.5vw, 2.2rem); line-height: 1.12; letter-spacing: -.045em; }
.legal-inner p + p { margin-top: .85rem; }
.legal-inner li { margin-block: .25rem; }
.legal-inner a { overflow-wrap: anywhere; }
.legal-inner .last-updated { margin-block: 1rem 1.35rem; color: var(--muted); }
.entity-notice { padding: 1rem 1.15rem; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); }
.legal-page + .site-footer { border-top: 1px solid var(--line); }

@media (max-width: 58rem) {
  .shell { width: calc(100% - 3.5rem); }
  .hero h1 { font-size: clamp(3.25rem, 8.1vw, 5.2rem); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-inner, .contact-inner { gap: 2rem; }
}

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.2rem; }
  .wordmark { font-size: 1.3rem; gap: .45rem; }
  .brand-mark { width: 1.5rem; height: 1.5rem; }
  .brand-mark::before, .brand-mark::after { height: .9rem; }
  .site-header nav a { font-size: .83rem; }
  .nav-contact { padding: .35rem .45rem; }
  .hero, .studio-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero { gap: 1.8rem; padding-block: 2.8rem 3.25rem; }
  .hero h1 { font-size: clamp(3.45rem, 12vw, 6rem); }
  .hero-art { aspect-ratio: 1.32; }
  .featured { top: 15%; }
  .side-a { top: 13%; }
  .side-b { bottom: 7%; }
  .footer-inner { flex-direction: column; align-items: start; justify-content: center; gap: .55rem; }
}

@media (max-width: 24rem) {
  .site-header nav { gap: .5rem; }
  .nav-contact span { display: none; }
  .game-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
