:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  --base: #100e1c;
  --panel: #1b172b;
  --border: #383048;
  --ink: #fff0db;
  --muted: #c7bacf;
  --amber: #ffc55b;
  --lavender: #d1b7ff;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 5px; }
h1, h2, p, figure { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(76rem, calc(100% - 3.5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .6rem; left: 1rem; padding: .65rem 1rem; background: var(--base); transform: translateY(-170%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--border); }
.nav, .nav-links, .brand, .footer, .footer nav { display: flex; align-items: center; gap: 1.6rem; }
.nav { justify-content: space-between; min-height: 4.8rem; }
.brand { gap: .65rem; font-weight: 850; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: .48rem; }
.nav-links a, .footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-links a:hover, .footer a:hover, .nav-links a[aria-current] { color: var(--amber); }
.nav-links a[aria-current] { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(37rem, 69vw);
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #110e20;
}
.hero-art {
  position: absolute;
  z-index: -2;
  right: 0;
  top: 0;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 59%;
  image-rendering: auto;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #110e20 20%, #110e20 31%, rgba(17,14,32,.72) 50%, transparent 73%);
}
.hero-copy { padding: clamp(1.8rem, 5.3vw, 5rem); width: min(100%, 37rem); }
.eyebrow {
  color: var(--lavender);
  font: 600 .875rem/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero h1 {
  margin: .9rem 0 1.15rem;
  font-size: clamp(4rem, 10.5vw, 9rem);
  font-weight: 950;
  line-height: .75;
  letter-spacing: -.083em;
  text-transform: uppercase;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.intro { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 34em; }
.hero .intro { max-width: 25rem; color: #f1dfed; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  width: fit-content;
  padding: .52rem 1.1rem;
  background: var(--amber);
  color: #221427;
  font-weight: 820;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - .42rem) 0, 100% .42rem, 100% 100%, .42rem 100%, 0 calc(100% - .42rem));
}
.hero .button { margin-top: 1.6rem; }
.button:hover { color: #221427; background: #ffdc98; }
.button:focus-visible { outline-offset: -4px; outline-color: #221427; }
.button.secondary { background: var(--lavender); }

.modes {
  display: grid;
  grid-template-columns: minmax(16rem, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.7rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.mode { display: grid; grid-template-columns: 2.65rem 1fr; gap: .95rem; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.mode:last-child { border-bottom: 1px solid var(--border); }
.mode-symbol { font: 800 2rem/1 system-ui, sans-serif; color: var(--amber); }
.endless .mode-symbol { color: var(--lavender); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
.mode p, .home-support p { margin-top: .45rem; color: var(--muted); }
.gameplay img { width: 100%; height: auto; border: 1px solid #534260; border-radius: .4rem; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .875rem; }
.home-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
}
.footer {
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .875rem;
}
.footer nav { flex-wrap: wrap; gap: .55rem 1.3rem; }

.document { max-width: 67rem; }
.document-title { padding: clamp(2.5rem, 6vw, 4.7rem) 0 2rem; border-bottom: 1px solid var(--border); }
.document-title h1 { font-size: clamp(2.8rem, 7vw, 5.75rem); letter-spacing: -.065em; line-height: .94; margin-bottom: 1rem; }
.document-title .muted { color: var(--muted); margin-top: .55rem; font-size: .9rem; }
.support-grid { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: 2.4rem; align-items: start; margin-top: 2rem; }
.contact-card { display: grid; justify-items: start; gap: .5rem; padding: 1.2rem; background: var(--panel); border: 1px solid var(--border); overflow-wrap: anywhere; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.contact-card p { color: var(--muted); }
.contents nav { display: grid; gap: .45rem; }
.contents a { color: var(--lavender); }
.article section + section { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.article section h2 { margin-bottom: .65rem; }
.article p { color: var(--muted); max-width: 69ch; }
.article p + p { margin-top: .65rem; }
.article strong { color: var(--ink); }

@media (max-width: 47rem) {
  .shell { width: calc(100% - 2rem); }
  .nav, .nav-links { gap: .85rem; }
  .nav { min-height: 4.25rem; }
  .hero { min-height: 0; display: block; }
  .hero-art { position: relative; width: 100%; height: auto; aspect-ratio: 1.6; object-position: 50% 59%; }
  .hero::after { background: linear-gradient(0deg, #110e20 5%, #110e20 40%, transparent 61%); }
  .hero-copy { position: relative; margin-top: -1.8rem; padding: 1.35rem; }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 6rem); }
  .modes, .support-grid { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .footer { align-items: flex-start; flex-direction: column; gap: .8rem; }
}
@media (max-width: 23rem) {
  .nav { gap: .45rem; }
  .nav-links { gap: .65rem; }
  .brand { gap: .4rem; }
  .brand img { width: 1.6rem; height: 1.6rem; }
}
