/* Palette and Poppins files match public/theme.css. Paths are relative so this folder can be served on its own. */

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/poppins-latin-300-normal.woff2") format("woff2"),
    url("fonts/poppins-latin-300-normal.woff") format("woff");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"),
    url("fonts/poppins-latin-500-normal.woff") format("woff");
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"),
    url("fonts/poppins-latin-700-normal.woff") format("woff");
}

:root {
  --bg: #12161B;
  --panel: #1C242D;
  --divider: #6E7780;
  --white: #F4F7FA;
  --card-rank: #172028;
  --steel: #828B93;
  --gold: #E0A24A;
  --gold-light: #F0C27A;
  --steel-soft: #D5DCE3;
  --card-hairline: #D8DFE6;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --scrim: rgba(0, 0, 0, 0.45);
  --font: Poppins, Inter, system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 1;
  transform: translateY(-200%);
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
}

.skip:focus {
  transform: none;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.masthead {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gold);
}

.masthead img {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto;
}

h1 {
  margin: 16px 0 8px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

.version {
  margin: 0;
}

.version a {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lead {
  margin-bottom: 32px;
  font-size: 20px;
  line-height: 1.5;
}

section {
  margin: 0 0 28px;
}

a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

.downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  border: 2px solid var(--gold);
  border-radius: 16px;
  background: var(--gold);
  color: var(--bg);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.button-file {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.button:hover,
.button:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
}

pre {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel);
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

code {
  font-family: inherit;
}

.updates {
  margin-bottom: 28px;
}

footer {
  padding-top: 16px;
  border-top: 2px solid var(--divider);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .page {
    padding-top: 32px;
  }

  .masthead img {
    width: 88px;
    height: 88px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .button {
    font-size: 18px;
  }
}
