/* Loamward site: what every page shares (2026-10-23). The header, menu and footer markup comes from
   Tools/Website/site_chrome.py, which writes it into each page; page-only styles stay in each page. */
:root {
  --bg: #e9eadb;        /* green-tinted parchment, as the wiki */
  --panel: #dfe0cb;
  --tile: #f3f2e6;
  --ink: #1f2414;       /* dark loam */
  --muted: #545b45;
  --line: #c3c7a8;
  --accent: #3d5a1e;    /* moss */
  --accent-ink: #f2efdc;
  --ochre: #8a6a1f;
  --gold: #b8892b;
  --gold-hi: #e7c873;
  --bark: #12210d;      /* the logo's forest green */
  --bark-ink: #ece4c4;
  --bark-muted: #b9b48a;
  --bark-hover: #213419;
  --shadow: 0 1px 2px rgba(18, 33, 13, .10), 0 8px 20px -10px rgba(18, 33, 13, .35);
  --font-display: "Vollkorn", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --bar-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--bark); }

/* Keyboard focus: moss on parchment, pale gold on the dark bars */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.site-bar :focus-visible, .site-foot :focus-visible, .on-dark :focus-visible { outline-color: var(--gold-hi); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--bark); font-weight: 700;
  padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; }
.skip:focus { top: 0; }

main.wrap { padding-top: 44px; padding-bottom: 64px; }

/* ---------- Header bar ---------- */
.site-bar { position: sticky; top: 0; z-index: 30; background: var(--bark); color: var(--bark-ink); border-bottom: 2px solid var(--gold);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .7); }
.site-bar .bar-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: var(--bar-h); display: flex; align-items: center; gap: 14px; }
.site-bar .brand { display: flex; align-items: center; gap: 10px; color: var(--bark-ink); text-decoration: none; font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; letter-spacing: .07em; flex: none; }
.site-bar .brand img { width: 38px; height: 38px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(231, 200, 115, .45); }
.site-bar .brand:hover { color: var(--gold-hi); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: var(--bark-ink); text-decoration: none; padding: 7px 11px; border-radius: 6px; font-weight: 500;
  font-size: 1.02rem; line-height: 1.3; white-space: nowrap; }
.site-nav ul a:hover { background: var(--bark-hover); color: var(--gold-hi); }
.site-nav ul a[aria-current="page"] { color: var(--gold-hi); background: var(--bark-hover); box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav .ext::after { content: "\2197"; font-size: .7em; margin-left: 3px; opacity: .6; vertical-align: .25em; }
.site-nav .ctas { display: flex; gap: 8px; margin-left: 10px; }
.site-nav .ctas .btn { display: inline-flex; font-weight: 700; padding: 7px 13px; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; background: var(--bark-hover); color: var(--bark-ink);
  border: 1px solid rgba(231, 200, 115, .45); border-radius: 8px; padding: 8px 14px; font: 700 1rem var(--font-body); cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-weight: 700;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--bark); box-shadow: var(--shadow); }
.btn.gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--bark); }
.btn.ghost { border-color: var(--bark-ink); color: var(--bark-ink); background: rgba(18, 33, 13, .25); }
.btn.ghost:hover { background: rgba(236, 228, 196, .16); color: #fff; }
.btn.moss { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.moss:hover { background: #2f4717; border-color: #2f4717; color: var(--accent-ink); }
.btn.line { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.line:hover { background: var(--accent); color: var(--accent-ink); }
.btn.big { font-size: 1.15rem; padding: 14px 26px; }
.btn.sm { padding: 7px 13px; font-size: .95rem; box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* The Steam logo, Valve's artwork unaltered (see site_chrome.py): a link of its own, 50 px tall (Valve's least on screen),
   with its clear space (the locomotive crank's diameter, about a fifth of its height) kept as padding. */
.steam-logo { display: inline-flex; flex: none; padding: 10px; line-height: 0; border-radius: 6px; transition: transform .15s; }
.steam-logo img { display: block; width: 164px; height: 50px; max-width: none; }
.steam-logo:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .steam-logo, .steam-logo:hover { transition: none; transform: none; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--bark); color: var(--bark-muted); border-top: 2px solid var(--gold); font-size: .97rem; line-height: 1.55; }
.site-foot .foot-in { max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 20px; display: grid; gap: 28px 40px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr)); }
.site-foot .about p { margin: 10px 0 0; max-width: 34ch; }
.site-foot .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bark-ink); text-decoration: none; font: 700 1.2rem var(--font-display); letter-spacing: .07em; }
.site-foot .brand img { width: 34px; height: 34px; border-radius: 6px; }
.site-foot h2 { font: 700 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-hi); margin: 4px 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 6px; }
.site-foot a { color: var(--bark-ink); text-decoration: none; }
.site-foot a:hover { color: var(--gold-hi); text-decoration: underline; }
.site-foot .legal { max-width: var(--wrap); margin: 0 auto; padding: 14px 16px 26px; border-top: 1px solid rgba(231, 200, 115, .2);
  display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.site-foot .legal span:first-child { flex: 1; }
.site-foot .legal .tm { flex: 1 1 100%; font-size: .8rem; opacity: .8; }
.site-foot .about .steam-row { margin: 14px 0 0 -10px; }

/* ---------- Narrow screens: the menu folds into a panel ---------- */
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bark); border-bottom: 2px solid var(--gold);
    flex-direction: column; align-items: stretch; padding: 8px 16px 18px; max-height: calc(100vh - var(--bar-h)); overflow-y: auto;
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); }
  .site-bar.open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a { padding: 12px 10px; font-size: 1.1rem; border-bottom: 1px solid rgba(231, 200, 115, .12); border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .site-nav .ctas { margin: 16px 0 0; flex-direction: column; }
  .site-nav .ctas .btn { padding: 13px 18px; font-size: 1.05rem; }
}
@media (max-width: 760px) {
  .site-foot .foot-in { grid-template-columns: 1fr 1fr; }
  .site-foot .about { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .site-bar .brand { font-size: 1.15rem; }
}

/* Veteran owned (2026-11-11): home-page band and the footer line */
.vet-band { background: var(--bark); color: var(--bark-ink); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.vet-in { display: flex; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.vet-emblem { flex: none; width: 148px; height: 148px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.vet-kicker { margin: 0 0 4px; color: var(--gold-hi); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.vet-band h2 { margin: 0 0 10px; color: var(--bark-ink); }
.vet-band p { color: var(--bark-muted); max-width: 62ch; }
.vet-band .vet-kicker { color: var(--gold-hi); }
@media (max-width: 640px) { .vet-in { flex-direction: column; text-align: center; gap: 18px; } .vet-emblem { width: 120px; height: 120px; } }
.vet-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--gold-hi); font-weight: 700; letter-spacing: .06em; }
.vet-row img { width: 40px; height: 40px; }
