/* Blade Chronicles - site chrome. The page itself is generated by scripts/publish_site.py. */
:root {
  --ink: #1b1f24;
  --ink-soft: #3a4048;
  --paper: #f4efe4;
  --paper-deep: #e8dfcc;
  --steel: #7d8794;
  --gold: #b8934a;
  --gold-soft: #d9c08a;
  --blood: #8b2e2e;
  --ok: #3f7a4a;
  --max: 68rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--blood); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

header.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--gold);
}
header.masthead .wrap { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 2rem; }
header.masthead h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
header.masthead h1 small { display: block; font-size: 0.4em; letter-spacing: 0.3em; color: var(--gold-soft); margin-bottom: 0.4rem; }
header.masthead p.tagline { margin: 0.75rem 0 0; font-size: 1.15rem; color: var(--paper-deep); max-width: 42rem; }
nav.sections { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
nav.sections a { color: var(--gold-soft); text-decoration: none; }
nav.sections a:hover { color: #fff; text-decoration: underline; }

main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
section.product { margin-top: 2.5rem; }
section.product h2 { font-size: 1.6rem; margin: 0 0 0.25rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.25rem; }
section.product p.blurb { margin: 0.5rem 0 1rem; color: var(--ink-soft); max-width: 46rem; }
.notice { background: var(--paper-deep); border-left: 4px solid var(--gold); padding: 0.75rem 1rem; margin: 1rem 0; max-width: 46rem; }

table.downloads { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 0 var(--paper-deep); }
table.downloads th, table.downloads td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--paper-deep); vertical-align: top; }
table.downloads th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
table.downloads td.size { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
table.downloads td.dl { white-space: nowrap; }
table.downloads td .note { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.15rem; }

.badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid currentColor; vertical-align: middle; margin-left: 0.5rem; }
.badge.released { color: var(--ok); }
.badge.beta { color: var(--gold); }
.badge.legacy { color: var(--steel); }
.badge.planned { color: var(--steel); border-style: dashed; }

footer { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; color: var(--steel); font-size: 0.9rem; border-top: 1px solid var(--paper-deep); }
footer a { color: var(--ink-soft); }

@media (max-width: 40rem) {
  table.downloads thead { display: none; }
  table.downloads tr { display: block; padding: 0.5rem 0; }
  table.downloads td { display: block; border: 0; padding: 0.15rem 0.75rem; }
  table.downloads td.dl { padding-bottom: 0.75rem; border-bottom: 1px solid var(--paper-deep); }
}
