:root {
  --paper: #f6f6ee;
  --paper-bright: #fffef7;
  --ink: #152d4f;
  --ink-soft: #617177;
  --rule: rgba(21, 45, 79, 0.16);
  --mint: #70ceb0;
  --coral: #ef7e7a;
  --ochre: #e6a137;
  --sky: #73a8de;
  --shadow: rgba(44, 63, 67, 0.12);
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 206, 176, 0.08), transparent 23rem),
    radial-gradient(circle at 88% 42%, rgba(239, 126, 122, 0.06), transparent 28rem),
    var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  z-index: 20;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  padding: .65rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

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

.site-header {
  width: var(--page);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.brand {
  color: var(--paper-bright);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .015em;
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.8rem); }

.nav a, .footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .025em;
  transition: color 160ms ease;
}

.nav a { position: relative; }

.site-header .nav a { color: rgba(255, 254, 247, .72); }
.site-header .nav a:hover,
.site-header .nav a:focus-visible,
.site-header .nav a[aria-current="page"] { color: var(--paper-bright); }

.nav a::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 50%;
  bottom: -.55rem;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
  transform: translateX(-50%) scale(.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:nth-child(1)::after { background: var(--coral); }
.nav a:nth-child(2)::after { background: var(--mint); }
.nav a:nth-child(3)::after { background: var(--ochre); }

.nav a:hover, .nav a:focus-visible, .footer-nav a:hover, .footer-nav a:focus-visible { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

main { overflow: hidden; }

.hero {
  width: var(--page);
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 2rem;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(3.35rem, 8.6vw, 8rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}

h1 span { display: block; margin-left: .42em; font-style: italic; }

.game-title { white-space: nowrap; }

.lede {
  max-width: 660px;
  margin-bottom: 2.2rem;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  line-height: 1.42;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.text-link::after { content: "\2193"; color: var(--coral); font-size: 1.15rem; transition: transform 160ms ease; }
.text-link:hover::after, .text-link:focus-visible::after { transform: translateY(.2rem); }
.text-link-right::after { content: "\2192"; }
.text-link-right:hover::after, .text-link-right:focus-visible::after { transform: translateX(.25rem); }

.kept-object {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
}

.box-image {
  width: min(100%, 430px);
  filter: drop-shadow(0 28px 24px rgba(38, 28, 20, .16));
}

.kept-object::before, .kept-object::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.kept-object::before { width: 92px; height: 92px; top: 8%; right: 2%; background: var(--mint); }
.kept-object::after { width: 44px; height: 44px; bottom: 14%; left: 2%; background: var(--coral); }

.game-section { padding: clamp(5.5rem, 12vw, 11rem) 0; background: var(--paper-bright); }

.section-grid {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.section-number { color: var(--coral); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }

h2 {
  margin-bottom: 1.5rem;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.section-intro { max-width: 620px; color: var(--ink-soft); font-size: 1.08rem; }

.media-stage {
  position: relative;
  margin-top: 4rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  background: #d8f1ed;
  box-shadow: 0 22px 60px var(--shadow);
}

.media-stage > img { width: 100%; max-height: 720px; object-fit: cover; object-position: center; }

.media-label {
  position: absolute;
  top: 2rem;
  left: 2rem;
  padding: .55rem .8rem;
  background: rgba(255, 254, 247, .92);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.image-pair {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 1.5rem;
  align-items: start;
}

.image-pair figure { margin: 0; }
.image-pair figure:last-child { padding-top: 5rem; }
.image-pair img { width: 100%; background: var(--paper); }

figcaption {
  padding-top: .8rem;
  color: var(--ink-soft);
  font-size: .76rem;
  letter-spacing: .055em;
}

.studio-section { width: var(--page); margin: 0 auto; padding: clamp(7rem, 15vw, 13rem) 0; }

.studio-copy { max-width: 850px; }
.studio-copy h2 { font-size: clamp(2.5rem, 6.5vw, 6.2rem); }
.studio-copy p { max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; }

.support-strip { border-top: 1px solid var(--rule); }

.support-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.support-inner h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.support-links { display: flex; flex-wrap: wrap; gap: .8rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.3);
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 650;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover, .button:focus-visible { background: white; border-color: var(--sky); transform: translateY(-2px); }

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ink-soft);
  font-size: .78rem;
}

.footer-nav { display: flex; gap: 1.5rem; }

.utility-page { width: min(760px, calc(100vw - 48px)); margin: 0 auto; padding: clamp(5rem, 12vw, 9rem) 0 8rem; }
.utility-page h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); }
.utility-page h2 { margin-top: 3rem; font-size: 1.7rem; }
.utility-page p, .utility-page li { color: var(--ink-soft); }
.utility-page .back { margin-bottom: 4rem; display: inline-block; }

.page-shell { width: var(--page); min-height: calc(100svh - 92px); margin: 0 auto; }

.page-intro { max-width: 900px; padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem); }
.page-intro .lede { max-width: 720px; }

.game-story {
  display: grid;
  grid-template-columns: minmax(100px, .35fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.game-story > div:last-child { max-width: 720px; }
.game-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(7rem, 14vw, 12rem);
}
.game-figure { width: 100%; margin: 0; }
.game-gallery .media-stage { margin-top: 0; }
.notebook-figure img { box-shadow: 0 22px 60px var(--shadow); }

.studio-page { position: relative; display: grid; align-items: center; padding: clamp(6rem, 13vw, 12rem) 0; }
.studio-page .studio-copy { position: relative; z-index: 1; }
.studio-page .studio-copy h1 { max-width: 980px; font-size: clamp(3.5rem, 7.5vw, 7.5rem); }
.studio-page .studio-copy p { max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; }

.studio-dots i { position: absolute; display: block; border-radius: 50%; }
.studio-dots i:nth-child(1) { width: clamp(8rem, 17vw, 15rem); aspect-ratio: 1; right: 4%; top: 14%; background: var(--mint); }
.studio-dots i:nth-child(2) { width: clamp(4rem, 9vw, 8rem); aspect-ratio: 1; right: 26%; bottom: 16%; background: var(--coral); }
.studio-dots i:nth-child(3) { width: clamp(2rem, 4vw, 3.5rem); aspect-ratio: 1; right: 1%; bottom: 12%; background: var(--ochre); }
.studio-dots i:nth-child(4) { width: clamp(1rem, 2vw, 2rem); aspect-ratio: 1; right: 31%; top: 13%; background: var(--sky); }

.support-page { padding-bottom: clamp(6rem, 12vw, 10rem); }
.compact-intro { padding-bottom: clamp(3rem, 6vw, 5rem); }
.compact-intro h1 { max-width: 900px; }
.support-directory { border-top: 1px solid var(--rule); }
.support-directory a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.3rem) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.support-directory strong { display: block; font-family: Iowan Old Style, Baskerville, "Times New Roman", serif; font-size: clamp(1.45rem, 3vw, 2.4rem); font-weight: 400; }
.support-directory small { display: block; color: var(--ink-soft); font-size: .9rem; }
.support-directory b { font-size: 1.3rem; font-weight: 400; transition: transform 160ms ease; }
.support-directory a:hover b, .support-directory a:focus-visible b { transform: translate(.2rem, -.2rem); }
.support-dot { display: block; width: clamp(3rem, 6vw, 5.5rem); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(21,45,79,.08); }
.support-dot.coral { background: var(--coral); }
.support-dot.mint { background: var(--mint); }
.support-dot.ochre { background: var(--ochre); }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }

@media (max-width: 760px) {
  :root { --page: min(100% - 32px, 1180px); }
  .site-header { min-height: 76px; }
  .nav { gap: 1rem; }
  .nav a { font-size: .8rem; }
  .nav a:nth-child(2) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .kept-object { min-height: 300px; }
  .box-image { width: min(88%, 350px); }
  .section-grid { grid-template-columns: 1fr; gap: 1rem; }
  .media-stage { margin-top: 2.5rem; }
  .image-pair { grid-template-columns: 1fr; }
  .image-pair figure:last-child { padding-top: 0; }
  .support-inner, .site-footer { align-items: flex-start; flex-direction: column; }
  .page-shell { min-height: calc(100svh - 76px); }
  .page-intro { padding-top: 5rem; }
  .game-title { white-space: normal; }
  .game-story { grid-template-columns: 1fr; gap: 1rem; }
  .game-gallery { grid-template-columns: 1fr; }
  .studio-page { align-items: start; }
  .studio-dots i:nth-child(1) { top: auto; bottom: 8%; opacity: .8; }
  .studio-dots i:nth-child(2) { right: 42%; bottom: 5%; opacity: .8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
