/* Howling Wolf Game Works - shared stylesheet.
   Steampunk palette taken from the logo: iron, brass, copper, bronze, amber.
   All decoration is CSS only (empty pseudo-elements and background images), so screen readers ignore it.
   No JavaScript, no animation, no flashing. */
@font-face {
  font-family: "HWGW Slab";
  src: url("fonts/hwgw-slab-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --iron: #131416; --plate: #1d1e21; --plate-2: #26272a; --line: #3d3a33;
  --text: #efe6d6; --muted: #d2c6b1;
  --brass: #dcae5e; --brass-light: #f2cd85; --copper: #c0703f; --bronze: #8c6a3e;
  --amber: #ffb547; --copper-text: #e39a68; --focus: #ffd27a;
  --heading: "HWGW Slab", "Rockwell", "Roboto Slab", Georgia, serif;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body {
  margin: 0; color: var(--text); line-height: 1.6;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  background-color: var(--iron);
}
.wrap { max-width: 60rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--amber); }
a:focus-visible, main:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px;
  box-shadow: 0 0 0 6px rgba(255, 181, 71, 0.35);
}
main:focus { outline: none; }

.skip-link { position: absolute; left: -9999px; top: 0.5rem; z-index: 10; background: var(--amber);
  color: #131416; padding: 0.6rem 1rem; font-weight: bold; text-decoration: none; border: 2px solid #131416; }
.skip-link:focus { left: 0.5rem; }

/* Header: dark iron plate with a big faint gear behind it, and a copper-and-brass rail below */
.site-header { position: relative; overflow: hidden; background-color: #17181a; border-bottom: 4px solid var(--copper);
  box-shadow: inset 0 -1px 0 var(--brass); }
.header-gear { position: absolute; right: -60px; top: -70px; width: 260px; height: 260px;
  background: url("images/gear.svg") center / contain no-repeat; opacity: 0.12; pointer-events: none; }
.header-inner { position: relative; z-index: 1; padding-top: 0.9rem; padding-bottom: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand:hover .brand-sub { color: var(--amber); }
.brand-logo { width: 96px; height: 96px; border-radius: 50%; display: block; flex: none;
  box-shadow: 0 0 0 2px var(--bronze), 0 0 18px rgba(255, 181, 71, 0.25); }
.brand-name { font-family: var(--heading); font-weight: 700; font-size: 1.9rem; line-height: 1.05;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-light);
  text-shadow: 0 1px 0 #000, 0 0 12px rgba(255, 181, 71, 0.25); }
.brand-sub { display: block; font-family: "Segoe UI", Verdana, Arial, sans-serif; font-weight: bold; font-size: 0.9rem;
  letter-spacing: 0.38em; color: var(--copper-text); margin-top: 0.35rem; text-shadow: none; }

/* Nav: riveted bronze rail */
.site-nav { position: relative; z-index: 1; background-color: var(--plate); border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem; }
.site-nav a { display: inline-block; padding: 0.35rem 0.75rem; color: var(--text); text-decoration: none;
  border: 1px solid transparent; border-bottom-width: 3px; border-radius: 3px; }
.site-nav a:hover { color: var(--brass-light); border-color: var(--line); border-bottom-color: var(--copper); }
.site-nav a[aria-current="page"] { color: var(--amber); font-weight: bold; background-color: #2a2418;
  border-color: var(--bronze); border-bottom-color: var(--amber); }
.site-nav a.nav-donate { background-color: var(--brass); color: #131416; font-weight: bold; border-color: var(--brass-light); }
.site-nav a.nav-donate:hover { background-color: var(--brass-light); color: #131416; }
.site-nav a.nav-donate[aria-current="page"] { border-bottom-color: #131416; }

main { padding-top: 1.6rem; padding-bottom: 2.5rem; }
h1, h2, h3, .h3 { font-family: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.2rem; color: var(--brass-light); margin: 0.3rem 0 0.8rem; letter-spacing: 0.02em;
  text-shadow: 0 1px 0 #000, 0 0 16px rgba(255, 181, 71, 0.3); }
/* brass rail with a small gear under the page title */
.title-rail { display: block; height: 14px; margin: -0.35rem 0 1rem; max-width: 18rem;
  background: url("images/gear.svg") left center / 14px 14px no-repeat,
              linear-gradient(var(--copper), var(--copper)) 20px center / calc(100% - 20px) 3px no-repeat; }
h2 { font-size: 1.55rem; color: var(--text); margin-top: 2.2rem; padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--line); letter-spacing: 0.02em; }
h2::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.45em; vertical-align: -0.05em;
  background: url("images/gear.svg") center / contain no-repeat; }
h3, .h3 { font-size: 1.25rem; margin: 0 0 0.4rem; border: 0; padding: 0; }
.h3::before { display: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 45rem; }

.placeholder { border: 2px dashed var(--amber); background-color: #2a2113; padding: 0.6rem 0.8rem; color: var(--text); }

/* Riveted metal plates: news items, cards, mods */
.news-item, .card, .mod { position: relative; background-color: var(--plate); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.5); }
/* two brass rivets, one in each top corner (tiny pseudo-elements, no text) */
.news-item::before, .card::before, .mod::before, .news-item::after, .card::after, .mod::after {
  content: ""; position: absolute; top: 8px; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background-color: #b48a4a; box-shadow: 0 0 0 1px #4a3a22, inset -1px -1px 0 #6b5230; }
.news-item::before, .card::before, .mod::before { left: 8px; }
.news-item::after, .card::after, .mod::after { right: 8px; }
.news-item { border-left: 4px solid var(--copper); padding: 1rem 1.3rem; margin: 1rem 0; }
.news-item h2 { border: 0; margin-top: 0; padding: 0; }
.news-item h2::before { display: none; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 0; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.card { border-top: 3px solid var(--brass); padding: 1rem 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card:hover { border-color: var(--bronze); border-top-color: var(--amber); }

.mod { padding: 0.3rem 1.3rem 0.7rem; margin: 1.3rem 0; border-top: 3px solid var(--copper); }
.mod h2 { border: 0; margin-top: 0.9rem; }
.downloads { padding-left: 1.2rem; }
.tag { display: inline-block; font-family: "Segoe UI", Verdana, Arial, sans-serif; font-size: 0.75rem; font-weight: bold;
  vertical-align: middle; background-color: #2a2418; color: var(--amber); border: 1px solid var(--bronze);
  border-radius: 999px; padding: 0.05rem 0.6rem; margin-left: 0.4rem; letter-spacing: 0.04em; }

.donate-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; max-width: 32rem; }
.button { display: block; background-color: var(--brass); color: #131416; font-weight: bold; text-decoration: none;
  padding: 0.75rem 1rem; border-radius: 6px; border: 2px solid var(--brass-light);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.5); }
.button:hover { background-color: var(--brass-light); color: #131416; }
.nowrap { white-space: nowrap; }

.site-footer { border-top: 4px solid var(--copper); background-color: var(--plate); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 0.9rem; padding-bottom: 1rem; }

@media (max-width: 40rem) {
  html { font-size: 106%; }
  .brand-logo { width: 64px; height: 64px; }
  .brand { gap: 0.7rem; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: 0.75rem; letter-spacing: 0.28em; }
  h1 { font-size: 1.75rem; }
  .site-nav a { padding: 0.45rem 0.6rem; }
  .header-gear { width: 180px; height: 180px; right: -50px; top: -50px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .title-rail, h2::before, .header-gear, .news-item::before, .card::before, .mod::before, .news-item::after, .card::after, .mod::after { display: none; }
  .site-nav a[aria-current="page"] { text-decoration: underline; }
  .button, .site-nav a.nav-donate { border: 2px solid ButtonText; }
}
