:root {
  --background: #1e1f22;
  --panel: #26282c;
  --line: #3a3d42;
  --text: #ebe8e2;
  --muted: #a7a49e;
  --accent: #f26430;
  --accent-text: #1e1f22;
  --heading: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

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

h2, h3 {
  font-family: var(--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--accent);
}

.hero {
  min-height: min(78vh, 760px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 4rem 16px;
  text-align: center;
  background:
    linear-gradient(rgba(20, 21, 24, 0.55), var(--background)),
    url("/images/future.jpg") center / cover;
}

.logo {
  width: min(760px, 100%);
  height: auto;
}

.tagline {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.actions, .downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--heading);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.button:hover {
  border-color: var(--muted);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

section:first-child {
  border-top: none;
}

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

.mechanics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.mechanics article {
  padding: 1.2rem;
  background: var(--panel);
  border-left: 3px solid var(--accent);
}

.mechanics p {
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

figcaption {
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.downloads {
  justify-content: flex-start;
  margin: 1rem 0;
}

.download {
  min-width: 220px;
  align-items: flex-start;
}

.download .platform {
  font-size: 1.2rem;
  font-weight: 700;
}

.download .size {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.download.pending {
  opacity: 0.55;
  pointer-events: none;
}

.notes {
  padding-left: 1.2rem;
}

code {
  padding: 0.1rem 0.35rem;
  background: var(--panel);
  border-radius: 3px;
}

table {
  border-collapse: collapse;
  width: min(560px, 100%);
}

th, td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  width: 9rem;
  color: var(--muted);
  font-weight: 400;
}

.credits {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.8rem 1.2rem;
  margin: 0;
}

.credits dt {
  color: var(--muted);
}

.credits dd {
  margin: 0;
}

footer {
  padding: 2rem 16px 3rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .credits {
    grid-template-columns: 1fr;
  }

  .credits dd {
    margin-bottom: 0.6rem;
  }

  th {
    width: 6.5rem;
  }
}
