/* <Grim> — est. 2004 */

/* Palette is deliberately faction-neutral: weathered brass and oxidized
   copper on cool charcoal — ship's metal rather than Horde red or
   Alliance blue. */

:root {
  --ink:        #0d1013;
  --stone:      #13171b;
  --stone-2:    #1a1f25;
  --line:       #2c333b;
  --brass:      #b8912f;
  --brass-lit:  #e0bb5c;
  --verdigris:  #6d9f96;
  --danger:     #b04a40;
  --danger-lit: #dd8a80;
  --parchment:  #e5e0d6;
  --muted:      #96a0a7;
  --serif:      "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --sans:       "Spectral", Georgia, Cambria, "Times New Roman", serif;
  --ui:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap:       1080px;
  /* Two centred measures inside the wrap: text on the narrow one, grids and
     media on the wide one. Wide must stay >= 940px or .articles auto-fit drops
     the nine Rules from three columns to two. */
  --measure:      760px;
  --measure-wide: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* keeps the footer at the bottom on short pages such as 404 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }

a { color: var(--brass-lit); }
a:hover { color: var(--verdigris); }

::selection { background: var(--brass); color: #fff; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 16, 19, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.22em;
  color: var(--brass-lit);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--verdigris); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--parchment);
  border-bottom-color: var(--brass);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--brass);
  color: var(--parchment);
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover {
  background: rgba(184, 145, 47, 0.16);
  border-color: var(--brass-lit);
  color: #fff;
}
.btn--solid {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.btn--solid:hover {
  background: var(--brass-lit);
  border-color: var(--brass-lit);
  color: #140f03;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(80vh, 700px);
  padding: 88px 0;
  background:
    linear-gradient(180deg, rgba(13,16,19,0.55) 0%, rgba(13,16,19,0.75) 55%, var(--ink) 100%),
    url("assets/hero.jpg") center 35% / cover no-repeat;
}

.hero--inner {
  min-height: 300px;
  padding: 64px 0 72px;
  background:
    linear-gradient(180deg, rgba(13,16,19,0.68) 0%, rgba(13,16,19,0.86) 60%, var(--ink) 100%),
    url("assets/forge.jpg") center 45% / cover no-repeat;
}

.hero-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(52px, 13vw, 132px);
  line-height: 1;
  letter-spacing: 0.14em;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 46px rgba(224, 187, 92, 0.22), 0 3px 22px rgba(0, 0, 0, 0.85);
}
.hero-mark .chev { color: var(--brass); }

.eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 22px;
}

.hero-realm {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b9c0c8;
  margin: 22px 0 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px auto;
  width: 190px;
  border: 0;
  overflow: visible;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 145, 47, 0.9));
}
.ornament::after { background: linear-gradient(90deg, rgba(184, 145, 47, 0.9), transparent); }

.ornament span {
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.hero-tagline {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(18px, 2.4vw, 23px);
  color: #d5cfc5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
/* no bottom padding: the next section's 84px is the whole gap, so the strip
   sits on the site's normal rhythm rather than double-spacing away from it */
.section--tight { padding-top: 0; padding-bottom: 0; }
.section--tight .strip { margin-top: -46px; position: relative; z-index: 2; }
.section--alt { background: var(--stone); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 44px; }
/* a section that is nothing but its head has no content to space away from */
.section-head:last-child { margin-bottom: 0; }
.section--centered .section-head { text-align: center; }

/* One centred column per section, and every block in it shares that width.
   Centred rather than left-anchored: every hero and cta on the site is already
   centred, so a left-anchored body underneath read as lopsided. The complaint
   was really the ragged *right* edge - about.html had four of them
   (714/784/804/1116) while the left stayed at 84 throughout.

   Text stays left-aligned inside the column. Centring the text itself would
   move the left edge line to line and cost real readability.

   Blocks of different widths cannot share a flush edge, so don't mix measures
   within one section: a 760 heading above a 960 grid reads as an accidental
   indent, which is exactly what the first attempt at this looked like. */
.section > .wrap > * {
  max-width: var(--measure);
  margin-inline: auto;
}

/* A card grid needs >= 940px or .articles auto-fit drops the nine Rules from
   three columns to two, so a section containing one widens its whole column -
   heading included, which is what keeps the heading flush with the cards.
   Needs :has(); without it the section falls back to the narrow measure, which
   is merely tighter, not broken. */
.section > .wrap:has(> .articles) { --measure: var(--measure-wide); }

/* the fact strip is a full-bleed band, not part of the reading column */
.section--tight > .wrap > .strip { max-width: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 18px;
}
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 19px; letter-spacing: 0.09em; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

/* the measure is set above, on every direct child at once */

.lead { font-size: 20px; color: #cfc9bf; }

/* ---------- pillars ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
}

.card {
  background: var(--stone-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 30px 28px;
}
.card p { font-size: 16.5px; color: #bdb7ae; }

.after-grid {
  margin-top: 34px;
  text-align: center;
  font-family: var(--ui);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.after-grid a { text-decoration: none; border-bottom: 1px solid rgba(224, 187, 92, 0.4); }

/* ---------- screenshots ---------- */

/* Real raid shots, not decoration - the guild tags and titles in them are the
   point. Left uncaptioned: the names in frame say it better than a line of
   text under them would, and heights stay natural so no nameplate gets cropped. */
.shots {
  display: grid;
  /* 340px keeps this 2-up from 1080 down to ~700 so four shots pair off
     instead of leaving one orphaned on its own row */
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  align-items: start;
  gap: 22px;
  margin-top: 40px;
}

.shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* Each shot opens its own lightbox, so the border and hover live on the link
   and the img inside keeps its own border for the non-linked case. */
.shots a {
  display: block;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
.shots a:hover img,
.shots a:focus-visible img { border-color: var(--brass); }
.shots a:hover img { opacity: 0.88; }
.shots a:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 3px; }

/* ---------- lightbox ---------- */

/* CSS-only, driven by :target - there is no JavaScript on this site. The panels
   live at the end of <main>, outside any .section, so the measure rule does not
   clamp them. Closing links back to #shots, not #, so you land on the grid you
   came from rather than the top of the page. Esc does not close it; the back
   button does. */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 28px;
  background: rgba(13, 16, 19, 0.92);
  overflow: auto;
}
.lightbox:target { display: grid; place-items: center; }

/* the whole backdrop is a close target; the image and button sit above it */
.lightbox__dismiss {
  position: absolute;
  inset: 0;
  cursor: default;
}

.lightbox img {
  position: relative;
  max-width: min(1000px, 100%);
  max-height: 88vh;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  font-family: var(--ui);
  font-size: 30px;
  line-height: 1;
  padding: 6px 12px 10px;
  text-decoration: none;
  color: var(--parchment);
  border: 1px solid var(--line);
  background: var(--stone);
}
.lightbox__close:hover { color: var(--ink); background: var(--brass-lit); border-color: var(--brass-lit); }

/* stop the page behind scrolling under the open panel. Second :has() in the
   file; without support you get a scrolling background, not a broken one. */
html:has(.lightbox:target) { overflow: hidden; }

/* The .shots grid drops to 1-up at 750 (340*2 plus the 22 gap needs 702, and
   the wrap leaves viewport-48), and from there the thumbnail is already close
   to viewport width - a fitted panel would reopen the shot at the size it
   already was. Below 750 the panel scrolls the shot at its natural 1000px
   instead; panning is the only way the nameplates get readable on a phone.
   place-content rather than place-items: centring the *track* would clip the
   left edge of an image wider than the panel, and that edge is where the
   nameplates start. */
@media (max-width: 749px) {
  .lightbox { padding: 0; }
  .lightbox:target { place-content: center start; }
  .lightbox img { max-width: none; max-height: none; border: 0; }
  .lightbox__close { position: fixed; top: 10px; right: 10px; }
}

/* ---------- guild art ---------- */

/* Commissioned guild art, so it is shown at full colour rather than darkened
   under copy the way the hero backgrounds are. */
.crest {
  display: block;
  width: 100%;
  /* the text measure, not the wide one: it must not out-shout the raid shots
     below, which are the evidence and the art is not. Set on the section rule
     above with everything else; this is the standalone fallback. */
  max-width: var(--measure);
  height: auto;
  margin-top: 44px;
  border: 1px solid var(--line);
}
/* on 404 it sits inside a centred hero, alone on the page */
.crest--sm { max-width: 560px; margin-inline: auto; }

/* Sits on the same measure as .crest, so its left edge is flush with the
   art above it. Sentence case, not the uppercase eyebrow treatment: a
   tracked verdigris label under the image reads as a section heading. */
.art-credit {
  margin-top: 10px;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- banner strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.strip div {
  background: var(--stone);
  padding: 28px 22px;
  text-align: center;
}
.strip dt {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.strip dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--brass-lit);
  letter-spacing: 0.06em;
  text-wrap: balance;
}

/* ---------- raid teams ---------- */

.teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin: 32px 0;
}

.team {
  background: var(--stone-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 32px 30px;
  text-align: center;
}

.team .team-name {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 12px;
}

.team .team-role {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0;
}

/* ---------- accomplishments ---------- */

.wins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  align-items: start;
  gap: 22px;
  margin-top: 34px;
}

.win-group {
  background: var(--stone-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  padding: 28px 26px;
}

.win-group h3 {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 16px;
}

.win-group ul { list-style: none; margin: 0; padding: 0; }

.win-group li {
  position: relative;
  padding: 0 0 12px 20px;
  font-size: 16.5px;
  color: #bdb7ae;
}
.win-group li:last-child { padding-bottom: 0; }
.win-group li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 8px;
  color: var(--brass);
}
.win-group b { color: var(--parchment); font-weight: 600; }

/* ---------- raid schedule ---------- */

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.slot { background: var(--stone-2); padding: 28px 26px; }

.slot .day {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 6px;
}
.slot .time {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-lit);
  margin: 0 0 12px;
}
.slot p { font-size: 15.5px; color: #bdb7ae; margin: 0; }
.slot--optional .time { color: var(--verdigris); }

/* ---------- expectations checklist ---------- */

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  /* min() so the track can fall below 300px on a narrow phone — a bare
     minmax(300px, 1fr) is a floor the grid will overflow rather than break. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 30px;
}

.checklist li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  color: #cfc9bf;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--brass);
  font-size: 14px;
  font-weight: 700;
}

.callout {
  margin-top: 30px;
  padding: 22px 26px;
  border-left: 2px solid var(--brass);
  background: var(--stone-2);
}
.callout p { max-width: none; font-size: 16.5px; color: #cfc9bf; }

/* ---------- record strip ---------- */

.strip--record dd {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  color: var(--brass-lit);
}
.strip--record .unit {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #bdb7ae;
  margin-top: 6px;
}
.strip--record div { padding: 32px 22px; }

.strip--spaced { margin-top: 40px; }

.section > .wrap > p.para-spaced { margin-top: 30px; }

.section > .wrap > p.record-note { max-width: none; }

.record-note {
  margin-top: 20px;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--line);
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 11px;
  width: 11px;
  height: 11px;
  background: var(--brass);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}
.timeline .when {
  display: block;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 6px;
}
/* no measure of its own: the .timeline container already carries one */
.timeline p { font-size: 17px; color: #bdb7ae; }

/* ---------- the code ---------- */

.hero--code {
  min-height: 320px;
  padding: 64px 0 72px;
  background:
    linear-gradient(180deg, rgba(13,16,19,0.66) 0%, rgba(13,16,19,0.86) 60%, var(--ink) 100%),
    url("assets/code.jpg") center 40% / cover no-repeat;
}

.hero--code + .section { padding-top: 46px; }

/* 404 has no section after the hero, so it carries the page on its own */
.hero--404 { min-height: min(70vh, 560px); }

.hero--raid {
  min-height: 320px;
  padding: 64px 0 72px;
  background:
    linear-gradient(180deg, rgba(13,16,19,0.62) 0%, rgba(13,16,19,0.86) 60%, var(--ink) 100%),
    url("assets/raid.jpg") center 42% / cover no-repeat;
}

.hero--raid + .section { padding-top: 46px; }

/* notes panel: addons, loot, conduct */

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.note {
  background: var(--stone-2);
  padding: 30px 28px;
}

.note h3 {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 16px;
}

.note p { font-size: 16.5px; color: #bdb7ae; }

.addons {
  list-style: none;
  margin: 0;
  padding: 0;
}
.addons li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(44, 51, 59, 0.7);
  font-family: var(--ui);
  font-size: 15px;
  color: var(--parchment);
}
.addons li:last-child { border-bottom: 0; }
.addons li::before {
  content: "\25C6";
  color: var(--brass);
  font-size: 9px;
  position: relative;
  top: -2px;
}
.addons .required {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 8px;
}

.article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 18px;
  align-items: start;
  background: var(--stone-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  padding: 26px 26px 26px 24px;
}

.article .mark {
  grid-row: span 3;
  font-size: 26px;
  line-height: 1.1;
  text-align: center;
  filter: saturate(0.9);
}

.article .numeral {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.article h3 { margin: 2px 0 8px; }

.article p {
  margin: 0;
  font-size: 16.5px;
  color: #bdb7ae;
}

.article--grave { border-left-color: var(--danger); }
.article--grave .numeral { color: var(--danger-lit); }

.code-note {
  margin-top: 42px;
  padding: 24px 28px;
  border: 1px dashed var(--line);
  background: rgba(26, 31, 37, 0.55);
  font-style: italic;
  color: #bdb7ae;
}
.code-note p { max-width: none; }

/* ---------- call to action ---------- */

.cta {
  text-align: center;
  padding: 88px 0;
  background: linear-gradient(180deg, var(--stone) 0%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}
.cta p { max-width: 560px; margin-inline: auto; color: #bdb7ae; }
.cta .btn { margin-top: 28px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brass-lit); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer-id { display: flex; flex-direction: column; gap: 5px; }

@media (max-width: 480px) {
  .article { grid-template-columns: 34px 1fr; gap: 4px 14px; padding: 22px 20px; }
  .article .mark { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-block: 12px; gap: 8px; }
  /* width:100% gives the wrap something to wrap against — shrink-to-fit would
     size the nav to its unwrapped max-content and push past the viewport. */
  .site-nav { width: 100%; flex-wrap: wrap; gap: 8px 18px; }
  .section { padding: 60px 0; }
  .hero { min-height: 78vh; }
}

@media (max-width: 360px) {
  /* 26px each side leaves the Discord label too little room at 320. */
  .btn { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
