:root {
  --paper: #F2EFF7;
  --tint: #E7E1F1;
  --ink: #1E1733;
  --muted: #5B5372;
  --rule: #CDC4DD;
  --gold: #F2B630;
  --gold-ink: #1E1733;
  --link: #5B2EA6;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16111F;
    --tint: #1F1829;
    --ink: #EDE7F6;
    --muted: #ADA3C2;
    --rule: #3A3049;
    --link: #CDB4FF;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; font-weight: 500; }

.wrap { max-width: calc(64rem + 2.5rem); margin: 0 auto; padding: 0 1.25rem; }

/* Hero: the one loud thing on the page */
.hero {
  background: var(--gold);
  color: var(--gold-ink);
  padding: 1.25rem 1.25rem clamp(3rem, 9vw, 6.5rem);
}
.hero a { color: var(--gold-ink); }
.hero :focus-visible { outline-color: var(--gold-ink); }

.nav {
  max-width: 64rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.wordmark { font-family: var(--display); font-weight: 700; text-decoration: none; font-size: 1rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav ul a { text-decoration: none; font-weight: 600; }
.nav ul a:hover { text-decoration: underline; }

.hero-body {
  max-width: 64rem; margin: clamp(3rem, 9vw, 6rem) auto 0;
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center;
}
.hero-body > div { grid-row: 1; grid-column: 1; }
.hero-logo { grid-row: 1; grid-column: 2; width: clamp(10rem, 22vw, 15rem); height: auto; }
@media (max-width: 44rem) {
  .hero-body { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { grid-row: 1; grid-column: 1; width: 7rem; }
  .hero-body > div { grid-row: 2; }
}
.hero h1 {
  font-size: clamp(2.5rem, 8.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 11ch;
}
.lede { max-width: 38rem; font-size: 1.1875rem; margin: 1.75rem 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .8rem 1.35rem;
  font-weight: 600; text-decoration: none; border-radius: 999px;
  border: 2px solid var(--gold-ink);
}
.btn-solid { background: var(--gold-ink); color: var(--gold) !important; }
.btn-line:hover { background: rgba(30, 23, 51, .08); }
.btn-solid:hover { background: #352a55; border-color: #352a55; }

/* Sections */
main section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
main section.tinted { background: var(--tint); }
.intro { color: var(--muted); margin: .6rem 0 2.25rem; max-width: 40rem; }
.intro a { color: inherit; }

/* Credits */
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.games img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: .5rem; background: var(--tint); margin-bottom: .75rem; }
.games h3, .games h4 { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; margin: 0; line-height: 1.3; }
.games h3 a, .games h4 a { color: inherit; text-decoration: none; }
.games h3 a:hover, .games h4 a:hover { text-decoration: underline; }
.games .dev { color: var(--muted); font-size: .9375rem; margin: .15rem 0 .35rem; }
.games .dev a { color: inherit; }
.stores { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .9375rem; font-weight: 600; margin: 0; }
.stores span { color: var(--muted); font-weight: 500; }
.games-featured { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2.5rem 2rem; }
.games-featured h3 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; margin-top: .25rem; }
.group { color: var(--muted); font-family: var(--body); font-weight: 600; font-size: 1rem; margin: 3.5rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--ink); }

/* Soundtracks */
.osts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.osts h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.osts p { margin: 0 0 .6rem; }
.links { display: flex; gap: 1.25rem; font-weight: 600; }
.bc { display: block; width: 100%; height: 120px; border: 0; border-radius: .5rem; margin: .9rem 0 .7rem; background: var(--paper); }

/* Records: catalog numbers are the real sequence */
.catalog { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.catalog li {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
}
.catalog img { width: 6rem; height: 6rem; object-fit: cover; border-radius: .25rem; display: block; background: var(--tint); }
.cat { display: block; font-family: var(--display); font-weight: 500; font-size: .8125rem; color: var(--muted); margin-bottom: .2rem; }
.catalog h3 { font-size: 1.1875rem; }
.catalog h3 a { color: inherit; text-decoration: none; }
.catalog h3 a:hover { text-decoration: underline; }
.kind { font-family: var(--body); font-weight: 500; font-size: .875rem; color: var(--muted); margin-left: .4rem; }
.catalog p { margin: .3rem 0 0; max-width: 40rem; }
@media (max-width: 30rem) {
  .catalog li { grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
  .catalog img { width: 4.5rem; height: 4.5rem; }
  .kind { display: block; margin: .2rem 0 0; }
}

/* Custom music */
.two-col { display: grid; gap: 3rem; grid-template-columns: 1.15fr 1fr; align-items: start; }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; } }
#custom-music p { max-width: 36rem; }
.licenses { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.licenses div { border-left: 4px solid var(--gold); padding-left: 1rem; }
.licenses dt { font-weight: 600; }
.licenses dd { margin: .2rem 0 0; color: var(--muted); }
.ask { background: var(--paper); padding: 1.75rem; border-radius: 1rem; }
.ask h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--muted); }
.email { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.3rem); margin: .4rem 0 1.25rem; overflow-wrap: anywhere; }
.ask ul { padding-left: 1.2rem; margin: .5rem 0 0; }
.ask li { margin-bottom: .35rem; }

/* Footer */
footer { padding: clamp(3.5rem, 8vw, 5.5rem) 0 3rem; border-top: 2px solid var(--ink); }
footer h2 { margin-bottom: .75rem; }
.social { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; }
.fine { color: var(--muted); font-size: .875rem; margin-top: 3rem; }
