:root {
  --cream: #f4efdf;
  --paper: #fffdf6;
  --ink: #112f32;
  --ink-soft: #3f5d5e;
  --teal: #0b7774;
  --teal-dark: #075856;
  --teal-pale: #dcebe4;
  --gold: #d0a33b;
  --line: rgba(17, 47, 50, 0.17);
  --shadow: 0 22px 60px rgba(17, 47, 50, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 47, 50, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 47, 50, 0.034) 1px, transparent 1px),
    var(--cream);
  background-size: 34px 34px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 223, 0.94);
}

.header-inner,
.footer-inner,
.hero,
.studio-section,
.contact-band {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  padding-block: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.35rem;
  color: var(--cream);
  background: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

nav {
  display: flex;
  gap: 0.45rem;
}

.nav-link {
  min-height: 44px;
  padding: 0.55rem 0.82rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: white;
  background: var(--teal);
}

.hero {
  min-height: 610px;
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

h1 {
  max-width: 730px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.15rem, 7vw, 6.7rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.05rem, 4.5vw, 3.7rem);
}

.lede {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-actions {
  margin: 2.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 50px;
  padding: 0.75rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 0.42rem;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  background: rgba(255, 253, 246, 0.62);
}

.button-secondary:hover {
  background: var(--paper);
}

.hero-art {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 11% 4% 5%;
  border: 1px solid var(--line);
  border-radius: 50% 50% 8% 8%;
  background: var(--teal-pale);
}

.icon-frame {
  position: relative;
  z-index: 2;
  width: min(340px, 78vw);
  padding: 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 22%;
  background: var(--paper);
  box-shadow: var(--shadow), 9px 9px 0 var(--gold);
}

.icon-frame img {
  border-radius: 18%;
}

.route-card {
  position: absolute;
  z-index: 3;
  width: 165px;
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem 0.65rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.875rem;
}

.route-card span {
  grid-row: span 2;
  color: var(--teal);
  font-weight: 900;
}

.route-card i {
  height: 2px;
  background: var(--gold);
}

.route-card-top {
  top: 8%;
  right: 0;
}

.route-card-bottom {
  bottom: 3%;
  left: 0;
}

.studio-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 7rem);
  row-gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
}

.studio-section > p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.game-artwork {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(0.65rem, 2vw, 1rem);
  border: 1px solid var(--line);
  background: var(--paper);
}

.game-artwork img {
  width: 100%;
}

.game-artwork figcaption {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.contact-band {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--ink);
  background: var(--gold);
}

.contact-band h2,
.contact-band p {
  margin-bottom: 0;
}

.contact-link {
  min-height: 44px;
  padding-block: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 2.5rem 0;
  color: var(--cream);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0.2rem 0 0;
  color: #b9cfcc;
  font-size: 0.875rem;
}

.footer-inner a {
  min-height: 44px;
  padding-block: 0.5rem;
  align-self: start;
  overflow-wrap: anywhere;
}

.footer-inner a:focus-visible {
  outline-color: var(--gold);
}

@media (max-width: 820px) {
  .hero,
  .studio-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 410px;
  }

  .contact-band {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .nav-link {
    padding: 0.45rem 0.58rem;
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.85rem, 16vw, 4.15rem);
  }

  .hero-art {
    min-height: 340px;
  }

  .icon-frame {
    width: min(255px, 70vw);
  }

  .route-card {
    width: 138px;
  }

  .route-card-top {
    right: -0.2rem;
  }

  .route-card-bottom {
    left: -0.2rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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