:root {
  color-scheme: light;
  --background: #fcf7e9;
  --surface: #fffdf6;
  --soft-green: #e5edd8;
  --soft-pink: #f8e3e8;
  --ink: #263a2b;
  --muted: #4d6251;
  --accent: #315d3e;
  --accent-hover: #1d492f;
  --pink-ink: #793c51;
  --line: #d9dfce;
  --focus: #a44665;
  --shadow: #31412b16;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #18231c;
    --surface: #222f26;
    --soft-green: #324736;
    --soft-pink: #51323d;
    --ink: #f3eedc;
    --muted: #c2cebd;
    --accent: #b9dca6;
    --accent-hover: #d4eec4;
    --pink-ink: #ffd7e3;
    --line: #415344;
    --focus: #f0adc2;
    --shadow: #0b120d66;
  }
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--accent-hover);
}

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

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

h1, h2, h3, p {
  margin: 0;
}

h1, h2 {
  font-family: var(--serif);
  line-height: 1.12;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header, .site-footer {
  background: var(--surface);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding-block: .85rem;
}

.wordmark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.site-nav, .footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
}

.site-nav a {
  padding: .4rem .7rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--soft-green);
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.hero h1 {
  color: var(--accent);
  font-size: clamp(2.5rem, 6.8vw, 4.6rem);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero p {
  max-width: 34rem;
  margin: .85rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-wrap: pretty;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--surface);
  box-shadow: 0 12px 32px var(--shadow);
}

.game-feature {
  width: 100%;
  max-height: 25rem;
  object-fit: cover;
  object-position: center 48%;
}

.game-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem 1.25rem;
  padding: clamp(1rem, 3vw, 1.8rem);
}

.game-icon {
  width: clamp(3.3rem, 9vw, 5rem);
  border-radius: 23%;
  background: var(--soft-green);
}

.game-details h2 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.game-description {
  max-width: 54ch;
  margin-top: .35rem;
  color: var(--muted);
}

.release-status {
  justify-self: start;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--soft-pink);
  color: var(--pink-ink);
  font-size: .85rem;
  font-weight: 700;
}

.home-info {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  padding-block: 1.2rem clamp(2.5rem, 6vw, 4rem);
}

.home-info section {
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--soft-green);
}

.home-info section + section {
  background: var(--surface);
}

.home-info h2 {
  margin-bottom: .45rem;
  font-size: 1.55rem;
}

.document-shell {
  padding-block: clamp(1.25rem, 5vw, 3rem);
}

.document {
  max-width: 49rem;
  margin-inline: auto;
  padding: clamp(1.15rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
}

.document-header {
  margin-bottom: 1.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.document h1, .translation .document-header h2 {
  color: var(--accent);
  font-size: clamp(2.25rem, 6vw, 3.6rem);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.document h2, .translation h3 {
  margin: 1.8rem 0 .55rem;
  font-size: 1.45rem;
}

.document h3 {
  line-height: 1.35;
}

.document-header p, .document p + p {
  margin-top: .55rem;
}

.document ul {
  margin: .55rem 0 0;
  padding-inline-start: 1.3rem;
}

.document li + li {
  margin-top: .45rem;
}

.effective-date {
  color: var(--muted);
}

.translation {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.translation .document-header h2 {
  margin-top: 0;
}

.faq {
  display: grid;
  gap: .8rem;
  margin-top: .85rem;
}

.faq section {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--background);
}

.faq h3 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.footer-nav {
  gap: .55rem;
}

.footer-nav a + a::before {
  margin-inline-end: .55rem;
  color: var(--muted);
  content: "·";
}

@media (max-width: 700px) {
  .game-details {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .release-status {
    grid-column: 2;
  }
}

@media (max-width: 500px) {
  .header-inner {
    justify-content: center;
    flex-direction: column;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav a {
    padding-inline: .55rem;
  }

  .home-info {
    grid-template-columns: minmax(0, 1fr);
  }
}
