:root {
  color-scheme: light;
  --bg: #faf7f4;
  --surface: #fff;
  --text: #252521;
  --muted: #62615c;
  --line: #dedad3;
  --accent: #aa4310;
  --button: #f57124;
  --soft: #f1eae1;
  --max: 1120px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dark {
  color-scheme: dark;
  --bg: #131513;
  --surface: #1d201c;
  --text: #f4f3eb;
  --muted: #b6b9af;
  --line: #3a3e35;
  --accent: #ffa873;
  --soft: #252a23;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 900px;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.2rem;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}
p {
  margin-bottom: 1.1rem;
}
li + li {
  margin-top: 0.55rem;
}
.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--surface);
  padding: 0.75rem;
  z-index: 10;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 92px;
  padding-block: 1rem;
}
.brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.nav nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding-block: 0.35rem;
}
.nav nav a:hover,
.nav nav a[aria-current="page"] {
  color: var(--accent);
}
.hero {
  padding-block: 5.5rem 4rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 700px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  background: var(--button);
  color: #24160e;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.button:hover {
  background: #ff9c5f;
  color: #24160e;
}
.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.button.secondary:hover {
  border-color: var(--accent);
}
.section {
  padding-block: 3.7rem;
  border-top: 1px solid var(--line);
}
.section-intro {
  max-width: 730px;
  margin-bottom: 2rem;
}
.muted,
.note {
  color: var(--muted);
}
.note {
  font-size: 0.88rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  min-width: 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card h3 {
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--muted);
}
.card .icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}
.card .actions {
  margin-top: 1.5rem;
}
.platform {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 650;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 4rem;
}
.feature-copy {
  padding: 2.5rem;
}
.feature-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161718;
  padding: 1.5rem;
}
.feature-art img {
  width: 100%;
  border-radius: 4px;
}
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 3rem;
  align-items: center;
}
.product-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.product-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  justify-self: center;
}
.product-art {
  width: 100%;
  border-radius: 8px;
}
.wide-hero {
  grid-template-columns: 1fr 1fr;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: 2rem;
}
.prose h3 {
  margin-top: 2rem;
}
.callout {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.8rem;
  margin-block: 1.5rem;
}
.callout p:last-child {
  margin-bottom: 0;
}
.steps {
  padding-left: 1.5rem;
}
.steps li {
  padding-left: 0.4rem;
  margin-bottom: 1rem;
}
figure {
  margin: 0;
}
figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
.screenshot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  text-align: left;
}
th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--text);
}
td {
  color: var(--muted);
}
pre {
  padding: 1.4rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
}
code {
  font-family: "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}
pre code {
  overflow-wrap: normal;
}
details {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details p {
  margin: 1rem 0 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
}
.repo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
}
.repo-item {
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.repo-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
.text-link {
  font-weight: 650;
}
.status-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.2rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.terminal-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.terminal pre {
  margin-bottom: 0;
}
.terminal .note {
  margin-top: 1rem;
}
.support-links {
  padding-left: 1.2rem;
}
@media (max-width: 800px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav nav {
    gap: 0.4rem 1.2rem;
  }
  .hero {
    padding-block: 3.5rem 2.5rem;
  }
  .feature,
  .wide-hero,
  .split {
    grid-template-columns: 1fr;
  }
  .feature-art {
    order: -1;
    padding: 1.5rem;
  }
  .feature-art img {
    max-width: 460px;
  }
  .feature-copy {
    padding: 1.7rem;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .product-hero {
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 1.5rem;
  }
  .product-icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
  }
  .product-hero.wide-hero {
    grid-template-columns: 1fr;
  }
  .section {
    padding-block: 2.6rem;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 2rem);
  }
  .grid,
  .repo-list,
  .product-hero {
    grid-template-columns: 1fr;
  }
  .product-icon {
    order: -1;
    justify-self: start;
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
  .card {
    padding: 1.5rem;
  }
  .hero {
    padding-top: 2.5rem;
  }
  h1 {
    font-size: 2.6rem;
  }
  .product-hero h1 {
    font-size: 2.5rem;
  }
  .actions {
    gap: 0.8rem;
  }
  .feature {
    margin-bottom: 2.5rem;
  }
  .footer-grid {
    gap: 1rem;
  }
  th,
  td {
    padding: 0.75rem;
  }
  .terminal {
    padding: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.split > * {
  min-width: 0;
}
.game-card-art {
  width: 154px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 5px;
}

.footer-community strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--text);
}
