@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #171819;
  --surface: #1b1c1e;
  --panel: #202123;
  --line: #37383a;
  --line-strong: #525254;
  --text: #e2dfd7;
  --bright: #eeeae2;
  --muted: #aaa79f;
  --accent: #c5a265;
  --accent-hover: #d7b77e;
  --selected: #302b23;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
p {
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  color: var(--bright);
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
h1 {
  font-size: 76px;
  letter-spacing: -2px;
}
h2 {
  font-size: 44px;
  letter-spacing: -1px;
}
h3 {
  font-size: 26px;
  line-height: 1.2;
}
figure {
  margin: 0;
  min-width: 0;
}
figcaption {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.brand img {
  width: auto;
  height: 1cap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  color: var(--background);
  background: var(--accent);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--background);
}
.button:focus-visible {
  outline-offset: 4px;
}
.button-small {
  gap: 28px;
  padding: 9px 16px;
  font-size: 15px;
}
.hero {
  padding-top: 76px;
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 28px 0 40px;
}
.intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}
.hero-action {
  display: grid;
  gap: 12px;
  flex-shrink: 0;
}
.game-screenshot {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.game-section {
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}
.game-description {
  color: var(--muted);
}
.game-description p:last-child {
  margin-bottom: 0;
}
.game-loop {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  gap: 32px;
}
.game-loop li {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.game-loop h3 {
  font-size: 24px;
  margin-bottom: 16px;
}
.game-loop p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.field-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 76px 0 60px;
}
.section-intro {
  color: var(--muted);
  max-width: 570px;
  margin: 24px 0 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 58px;
}
.field-copy h3 {
  font-size: 34px;
  margin-bottom: 22px;
}
.field-copy p {
  color: var(--muted);
  font-size: 17px;
}
.field-row-reverse {
  grid-template-columns: 1fr 1.3fr;
}
.field-row-reverse figure {
  order: 2;
}
.closing {
  padding-block: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.closing p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .brand {
  font-size: 19px;
  color: var(--text);
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--panel);
  z-index: 2;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
[id] {
  scroll-margin-top: 32px;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  h1 {
    font-size: 56px;
  }
  h2 {
    font-size: 36px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-bottom {
    align-items: flex-start;
    gap: 28px;
  }
  .intro {
    font-size: 18px;
  }
  .game-section {
    gap: 32px;
    padding-block: 60px;
  }
  .game-loop {
    gap: 24px;
  }
  .field-row,
  .field-row-reverse {
    gap: 28px;
  }
  .field-copy h3 {
    font-size: 28px;
  }
}
@media (max-width: 580px) {
  .site-header {
    min-height: 80px;
    gap: 14px;
  }
  .site-header .brand {
    font-size: 22px;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .hero-bottom {
    flex-direction: column;
    padding-bottom: 30px;
  }
  .hero-action {
    width: 100%;
  }
  .game-section,
  .game-loop,
  .field-row,
  .field-row-reverse {
    grid-template-columns: 1fr;
  }
  .game-description {
    padding-top: 0;
  }
  .game-loop {
    gap: 30px;
  }
  .field-section {
    padding-block: 48px 30px;
  }
  .field-row {
    padding-top: 36px;
    gap: 20px;
  }
  .field-row-reverse figure {
    order: 0;
  }
  .field-copy h3 br {
    display: none;
  }
  .closing {
    padding-block: 52px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-footer {
    padding-block: 26px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .site-footer > span {
    width: 100%;
    order: 2;
  }
}
