/* Barlow and Barlow Condensed
   Copyright 2017 The Barlow Project Authors (https://github.com/jpt/barlow)
   Licensed under the SIL Open Font License 1.1. https://openfontlicense.org */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0b09;
  --bg-2: #16140f;
  --ink: #f4f0e6;
  --muted: #c4baab;
  --faint: #9c9384;
  --brass: #e0c17a;
  --line: rgba(224, 193, 122, 0.32);
  --signal: #3dba6c;
  --signal-ink: #06210f;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --sans: "Barlow", "Segoe UI", "Helvetica Neue", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

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

html.i18n-wait body {
  visibility: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 40% at 100% -10%, rgba(224, 193, 122, 0.14), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

body,
a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: var(--signal-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
.brand-name,
.btn,
.nav-link,
.kicker,
.shot figcaption,
.num {
  font-family: var(--display);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 600;
}

.skip:focus {
  top: 0.6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 11, 9, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
}

.langs button {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: var(--faint);
  font: 600 0.92rem/1.2 var(--sans);
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--brass);
  color: #1a1408;
}

.langs button:hover {
  color: var(--ink);
}

.langs button[aria-pressed="true"]:hover {
  color: #1a1408;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
}

.nav-link {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--brass);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: center;
  padding: 4.25rem 0 3.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  margin: 0;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rails {
  width: 4.25rem;
  height: 0.55rem;
  margin: 1.15rem 0 1.25rem;
  border-top: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
}

h1 {
  max-width: 11em;
  font-size: clamp(3.1rem, 7vw, 5.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-wrap: balance;
}

#content,
#features,
#planner,
#downloads,
#requirements {
  scroll-margin-top: 9rem;
}

.lead,
.section-lead {
  max-width: 40rem;
  color: var(--muted);
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
}

.btn-primary:hover {
  background: #57d083;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.hero-art {
  padding: 0.85rem 0.85rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(224, 193, 122, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 193, 122, 0.07) 1px, transparent 1px),
    #12100c;
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: var(--shadow);
  color: var(--brass);
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hot {
  color: var(--signal);
}

section {
  padding: 1rem 0 3.25rem;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.section-lead {
  margin-top: 0.75rem;
}

.features,
.shots,
.downloads {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.features,
.downloads {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.req,
.hold-card {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.num {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--brass);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature h3,
.dl-card strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.feature p,
.dl-card p,
.req p,
.hold-card p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: #12100c;
  background-image:
    linear-gradient(rgba(224, 193, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 193, 122, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--brass);
}

.shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-frame:has(img) .shot-art {
  visibility: hidden;
}

.shot-art {
  width: 100%;
  height: 100%;
}

.shot figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  color: inherit;
  text-decoration: none;
}

.dl-card:hover {
  border-color: var(--brass);
}

.dl-card-primary {
  background:
    linear-gradient(180deg, rgba(61, 186, 108, 0.16), transparent 55%),
    var(--bg-2);
  border-color: rgba(61, 186, 108, 0.55);
}

.dl-card-primary:hover {
  border-color: var(--signal);
}

.kicker {
  color: var(--brass);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dl-card-primary .kicker {
  color: var(--signal);
}

.file {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92rem;
}

.req {
  max-width: 46rem;
  margin-top: 1.5rem;
}

.req p + p {
  margin-top: 0.45rem;
}

.site-footer {
  padding: 0.5rem 0 2.5rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--brass);
  font-weight: 600;
}

.hold {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding: 3rem 0;
}

.hold-card {
  width: min(36rem, 100%);
}

.hold-card h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

@media (max-width: 980px) {
  .hero,
  .features,
  .shots,
  .downloads {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    align-items: start;
  }
}

@media (max-width: 860px) {
  .bar {
    grid-template-columns: 1fr;
    padding-bottom: 0.85rem;
  }

  .langs,
  .nav-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero,
  .features,
  .shots,
  .downloads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .langs button {
    padding: 0.4rem 0.42rem;
    font-size: 0.86rem;
  }
}

  h1,
  .hold-card h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
