/* Slagshot site. Palette and type: scathe_media/brand/BRAND.md. No external requests. */
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --soot: #14161A;
  --plate: #161312;
  --panel: #221F1C;
  --raised: #322D2A;
  --brass: #786652;
  --cream: #E4D7BB;
  --bright: #F5EDDB;
  --dim: #C7BAA6;
  --slag: #F47735;
  --molten: #FFD478;
  --furnace: #8C3C17;
  --patina: #58A897;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--soot); color: var(--cream);
  font: 400 17px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slag); text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--molten); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--bright); }
h2 { font-size: 1.6rem; margin: 0 0 .6rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 6px 10px; z-index: 9; }

/* top bar */
.bar { background: var(--plate); border-bottom: 1px solid var(--brass); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slag); font-weight: 700; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.bar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.bar nav a { color: var(--dim); text-decoration: none; font-size: .95rem; padding: 4px 0; }
.bar nav a[aria-current="page"], .bar nav a:hover { color: var(--bright); border-bottom: 2px solid var(--slag); }

/* the wordmark, as the game draws it: caps, slag orange, a patina rule under it */
.wordmark { margin: 0; font-size: clamp(3rem, 12vw, 7rem); letter-spacing: .02em; color: var(--slag); line-height: 1; display: inline-block; }
.wordmark::after { content: ""; display: block; height: max(3px, .035em); background: var(--patina); margin-top: .12em; }
.descriptor { font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--cream); margin: .9rem 0 0; }

/* hero: a real frame of the game behind a soft soot band */
.hero { position: relative; background: var(--soot) url("img/hero.jpg") center / cover no-repeat; border-bottom: 1px solid var(--brass); }
.hero .band { background: linear-gradient(180deg, rgba(20,22,26,.15), rgba(20,22,26,.72) 30%, rgba(20,22,26,.72) 70%, rgba(20,22,26,.15)); padding: 72px 0 64px; text-align: center; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 4px; background: var(--furnace); color: var(--bright); text-decoration: none; font-weight: 700; border: 1px solid var(--brass); }
.btn.quiet { background: var(--panel); }
.btn:hover, .btn:focus-visible { background: var(--slag); color: var(--soot); }

section { padding: 48px 0; border-bottom: 1px solid var(--raised); }
.lead { font-size: 1.15rem; max-width: 46em; }

/* physics moments: gif + text */
.moments { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.moment { background: var(--panel); border: 1px solid var(--raised); border-radius: 6px; overflow: hidden; }
.moment img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plate); }
.moment div { padding: 14px 16px 6px; }
.shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.shots figure { margin: 0; }
.shots figcaption { font-size: .85rem; color: var(--dim); margin-top: 4px; }

.note { background: var(--panel); border-left: 3px solid var(--patina); padding: 14px 16px; border-radius: 0 6px 6px 0; }
ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: .4rem; }
table.facts { border-collapse: collapse; width: 100%; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--raised); }
table.facts th { color: var(--dim); font-weight: 700; width: 32%; }
.downloads { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.downloads a { display: block; background: var(--panel); border: 1px solid var(--raised); border-radius: 6px; padding: 8px; text-decoration: none; font-size: .9rem; }
.downloads img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 6px; }
.downloads a.logo img { object-fit: contain; background: var(--soot); padding: 8px; }

article.post { max-width: 46em; }
article.post .meta { color: var(--dim); font-size: .9rem; }
article.post blockquote { margin: 1rem 0; padding: 10px 16px; border-left: 3px solid var(--slag); background: var(--panel); }

footer { padding: 28px 0 40px; color: var(--dim); font-size: .88rem; }
footer p { margin: 0 0 .4rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero .band { padding: 48px 0 40px; }
  section { padding: 36px 0; }
  table.facts th { width: 40%; }
}
