:root {
  color-scheme: dark;
  --ground: #18110e;
  --raised: #251c15;
  --line: #695138;
  --gold: #f0d4a0;
  --text: #f3e8d8;
  --muted: #c0b19f;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-block-size: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0%, #342418, transparent 36rem), var(--ground);
}

.shell {
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 1.5rem 3rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding-block-end: 1.15rem;
  border-block-end: 1px solid var(--line);
}

.masthead a { color: var(--gold); text-decoration: none; }
.brand { font: 700 1.18rem Georgia, serif; letter-spacing: .18em; text-transform: uppercase; }
.return { font-size: .9rem; }
.return:hover { text-decoration: underline; text-underline-offset: .22em; }

.heading { padding-block: clamp(1.75rem, 6vw, 3rem) 1.5rem; }
h1, h2 { margin: 0; color: var(--gold); font-family: Georgia, serif; }
h1 { font-size: clamp(2.25rem, 6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: 1.35rem; }
p { margin: .55rem 0 0; color: var(--muted); line-height: 1.55; }

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--raised), #1e1510);
}

.card p { margin-block-end: 1.25rem; }
.card small { margin-block-start: .6rem; color: var(--muted); text-align: center; }

.button {
  display: block;
  margin-block-start: auto;
  padding: .75rem 1rem;
  border: 1px solid #9f794b;
  border-radius: .7rem;
  background: #36261a;
  color: var(--gold);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: #463121; }
.button-primary { background: #e1be82; color: #21150a; }
.button-primary:hover { background: #f0d4a0; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 34rem) {
  .downloads { grid-template-columns: minmax(0, 1fr); }
}
