@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5ede1;
  --ink: #211624;
  --muted: #5a494f;
  --rule: #ae9992;
  --coral: #ee674b;
  --plum: #201423;
  --light: #fff3e9;
  --soft-light: #dfcbd9;
  --shell: 1168px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid #8c2851; outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.065em; }

.shell { width: min(calc(100% - 88px), var(--shell)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 3;
  top: .7rem;
  left: .7rem;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-footer { border-top: 1px solid var(--rule); }
.header-inner, .footer-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .055em;
  white-space: nowrap;
}
.brand img { width: 48px; height: 48px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(.85rem, 2.8vw, 2.05rem);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: .94rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5.4vw, 78px);
  padding-block: clamp(54px, 7vw, 96px) clamp(42px, 5vw, 68px);
}
.hero-copy h1 {
  font-size: clamp(4.4rem, 8.9vw, 8.2rem);
  line-height: .87;
  letter-spacing: -.089em;
}
.hero-copy h1 span { display: block; }
.hero-copy p {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}
.studio-figure { min-width: 0; margin-inline-end: 13px; }
.studio-art {
  position: relative;
  aspect-ratio: 1.52;
  overflow: hidden;
  isolation: isolate;
  background: #00020d;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--coral);
  transform: rotate(-1.8deg);
}
.studio-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.studio-figure figcaption {
  display: flex;
  justify-content: flex-end;
  padding-top: .8rem;
  font-size: .94rem;
}
.studio-figure figcaption a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(.9rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
  padding-block: clamp(28px, 4.25vw, 62px) clamp(42px, 6.5vw, 90px);
  scroll-margin: 1.5rem;
}
.about-section h2, .games-section > h2, .help-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
}
.about-copy { max-width: 53ch; }
.about-copy p:first-child {
  font-size: clamp(1.2rem, 2.15vw, 1.58rem);
  line-height: 1.43;
}
.about-copy p + p { margin-top: .9rem; color: var(--muted); font-size: 1.0625rem; }

.games-band { background: var(--plum); color: var(--light); }
.games-section { padding-block: clamp(42px, 6vw, 84px); }
.games-section > h2 { color: #ffae98; }

.game-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  margin-top: 1.5rem;
  border-top: 1px solid #6c5168;
  padding-top: clamp(24px, 4vw, 48px);
}
.game-copy h3 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.section-lead {
  max-width: 45ch;
  margin-top: .95rem;
  font-size: 1.0625rem;
  color: var(--soft-light);
}
.modes { margin-top: 1.45rem; }
.modes > div {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: .75rem;
  border-bottom: 1px solid #6c5168;
  padding-block: .7rem;
}
.modes > div:first-child { border-top: 1px solid #6c5168; }
.modes dt { font-weight: 700; }
.modes dd { color: var(--soft-light); }
.platforms { margin-top: 1.05rem; color: #ffae98; }

.preview-stage {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
}
.game-art { border: 1px solid #6c5168; }
.game-art img { width: 100%; }
.gameplay {
  width: 100%;
  border: clamp(3px, .6vw, 7px) solid #090611;
  border-radius: clamp(9px, 1.25vw, 17px);
}
.game-preview figcaption { margin-top: .65rem; color: var(--soft-light); font-size: .9rem; text-align: right; }

.help-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem 2rem;
  padding-block: clamp(34px, 5vw, 65px);
}
.help-section h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.help-section p { margin-top: .6rem; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: fit-content;
  min-height: 46px;
  max-width: 100%;
  padding: .68rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--light);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #493143; }
.button span { line-height: 1; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: #eadacb; }

.detail-page { max-width: 760px; min-height: 66vh; padding-block: clamp(40px, 7vw, 84px); }
.detail-intro { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
.detail-intro h1 { font-size: clamp(2.45rem, 6vw, 4.9rem); overflow-wrap: anywhere; }
.detail-intro p { margin-top: .85rem; color: var(--muted); font-size: 1.125rem; }
.prose { color: var(--muted); }
.prose h2 { margin-top: 2rem; margin-bottom: .65rem; color: var(--ink); font-size: 1.55rem; }
.prose p + p { margin-top: .6rem; }
.prose a:not(.button) { color: #7c244d; overflow-wrap: anywhere; }
.prose .button { margin-top: 1rem; overflow-wrap: anywhere; }
.notice {
  margin-top: 1.2rem;
  padding: .85rem 1rem;
  border-inline-start: 3px solid #9e3d46;
  background: #efdbce;
  color: var(--ink);
}
.notice :first-child { margin-top: 0; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 30px; }
}

@media (max-width: 720px) {
  .hero, .about-section, .game-section { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 36px 26px; gap: 24px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 10vw, 5.75rem); line-height: .95; }
  .hero-copy h1 span { display: inline; }
  .hero-copy p { margin-top: .65rem; }
  .studio-art { transform: rotate(-1.2deg); }
  .studio-figure figcaption { padding-top: .65rem; }
  .about-section { gap: .8rem; }
  .game-section { margin-top: 1rem; }
}

@media (max-width: 490px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-block: .35rem; }
  .header-inner .site-nav { justify-content: space-between; width: 100%; gap: 0 .55rem; border-top: 1px solid var(--rule); }
  .header-inner .site-nav a { font-size: .875rem; }
  .brand img { width: 42px; height: 42px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 10.8vw, 3.8rem); }
  .studio-figure { margin-inline-end: 9px; }
  .studio-art { box-shadow: 6px 6px 0 var(--coral); }
  .footer-inner { flex-wrap: wrap; padding-block: .45rem; }
  .help-section { align-items: flex-start; flex-direction: column; }
  .modes > div { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .preview-stage { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
