/* ==========================================================================
   HEAVY METAL — one page. Loaded on a/heavy-metal.html.

   Founder, 2026-09-26: the page is Annie's Claude artifact, shell excepted.
   The name drawn as a spiked, symmetrical band mark on near-black, then the
   record on the same axis: everything centred, thorn rules between the
   sections, double-ruled panels over a faint engraving hatch, swatches cut
   as shields. Nothing moves (motion is researched absence). The shell (rail,
   top bar, community drawer) is never restyled: every rule here is scoped
   to .hm-hero or .hm-rec.

   The illegible grammar is held to the mark. Headings are Metal Mania,
   which still reads; body copy is IM Fell English and reads plainly.

   Contrast on the near-black ground, WCAG AA at body size:
   bone 13.4 · ash 5.9 · text red 4.9 (the swatch red is never text)
   bone on the blood buttons 8.1, on their hover 6.2
   ========================================================================== */
@font-face {
  font-family: "Metal Mania HM";
  src: url("fonts/metal-mania.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English HM";
  src: url("fonts/im-fell-english.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English HM";
  src: url("fonts/im-fell-english-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English SC HM";
  src: url("fonts/im-fell-english-sc.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* The six measured values (the record's swatches read them in this order). */
.hm-page {
  --hm-bk: #0A0A0C;
  --hm-bone: #D8D5CC;
  --hm-ash: #8A8D96;
  --hm-blood: #6E1420;
  --hm-grey: #6E727C;
  --hm-char: #26262C;
  /* Derived, kept out of the swatch count: a red light enough to be text,
     the blood's hover, and the hero's glow. */
  --hm-red: rgb(217 80 92);
  --hm-blood-hi: rgb(141 26 42);
  --hm-glow: rgb(26 26 32);
  --hm-rule: rgb(26 26 31);
  --hm-lift: rgb(21 21 26);
  --hm-face: "IM Fell English HM", Georgia, serif;
  --hm-sc: "IM Fell English SC HM", "IM Fell English HM", Georgia, serif;
  --hm-metal: "Metal Mania HM", "IM Fell English HM", Georgia, serif;
}
/* The route declares its own ground (fixedTheme), so no light band shows
   between the top bar and the page on narrow screens. */
.hm-page { background: var(--hm-bk); }
.hm-page main { background: var(--hm-bk); color: var(--hm-bone); overflow-x: clip; }

/* ---- shared register: both roots, nothing outside them ---------------- */
.hm-hero, .hm-rec {
  font: 400 19px/1.7 var(--hm-face);
  color: var(--hm-bone);
  text-align: center;
  /* IM Fell has no bold; the shell turns synthesis off, so <b> would be
     indistinguishable. Weight only: the italic is a real file. */
  font-synthesis: weight;
}
.hm-hero a, .hm-rec a {
  color: var(--hm-bone);
  text-decoration-color: var(--hm-blood);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hm-hero a:hover, .hm-rec a:hover { color: #fff; background: var(--hm-blood); }
.hm-hero :focus-visible, .hm-rec :focus-visible { outline: 2px solid var(--hm-bone); outline-offset: 4px; }
.hm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm-hatch {
  background-image:
    repeating-linear-gradient(45deg, rgb(216 213 204 / .06) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgb(216 213 204 / .04) 0 1px, transparent 1px 7px);
}

/* ---- hero: the mark ---------------------------------------------------- */
.hm-hero {
  position: relative;
  padding: clamp(40px, 7vw, 90px) 12px 40px;
  background-color: var(--hm-bk);
}
.hm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, var(--hm-glow), transparent 70%);
}
.hm-logo { position: relative; z-index: 1; display: block; width: min(1000px, 100%); height: auto; margin: 0 auto; }
.hm-logo__spk, .hm-logo__dia { fill: var(--hm-bone); }
.hm-logo__drip { fill: var(--hm-blood); }
.hm-logo__t {
  font: 400 112px var(--hm-metal);
  fill: var(--hm-bone);
  stroke: var(--hm-bk);
  stroke-width: 3;
  paint-order: stroke;
  letter-spacing: -4px;
}
.hm-logo__bar { stroke: var(--hm-bone); stroke-width: 3; fill: none; }
.hm-lead { position: relative; z-index: 1; max-width: 34ch; margin: 10px auto 0; color: var(--hm-ash); font-style: italic; }

/* ---- the record -------------------------------------------------------- */
.hm-rec { background: var(--hm-bk); }
.hm-wrap { max-width: 860px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }
.hm-thorn { display: block; width: min(520px, 90%); height: 40px; margin: 60px auto 30px; }
.hm-thorn__l { stroke: var(--hm-grey); stroke-width: 1.5; fill: none; }
.hm-thorn__b { fill: var(--hm-grey); }
.hm-thorn__o { fill: var(--hm-bk); stroke: var(--hm-bone); stroke-width: 1.5; }
.hm-thorn__tri { fill: none; stroke: var(--hm-bone); stroke-width: 1.2; }
.hm-thorn__eye, .hm-seal__eye { fill: var(--hm-blood); }
.hm-seal { display: block; margin: 0 auto 20px; }
.hm-seal__g { fill: none; stroke: var(--hm-bone); stroke-width: 1.5; }

.hm-s { margin: 0 0 20px; }
.hm-rec h2 {
  margin: 0 0 20px;
  font: 400 clamp(30px, 5vw, 54px)/1.1 var(--hm-metal);
  color: var(--hm-bone);
  letter-spacing: .02em;
}
.hm-rec p { margin: 0 0 1em; }
.hm-rec b { font-weight: 700; }
.hm-panel { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--hm-char); outline: 1px solid var(--hm-rule); outline-offset: 6px; }

.hm-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.hm-meta dt { font: 400 14px var(--hm-sc); letter-spacing: .14em; color: var(--hm-ash); }
.hm-meta dd { margin: 2px 0 0; }

.hm-big { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; margin: 0 0 16px; }
.hm-refuse { margin-top: 22px; padding: 16px; border-top: 2px solid var(--hm-blood); border-bottom: 2px solid var(--hm-blood); }
.hm-refuse b { display: block; font: 400 22px var(--hm-metal); color: var(--hm-red); }
.hm-dx { font-style: italic; font-size: 22px; color: #fff; margin: 20px 0; }
.hm-nl { color: var(--hm-ash); font-style: italic; }

.hm-tw { overflow-x: auto; }
.hm-ct, .hm-rt { width: 100%; border-collapse: collapse; text-align: center; }
.hm-ct th, .hm-ct td, .hm-rt th, .hm-rt td { padding: 9px 8px; border-bottom: 1px solid var(--hm-char); font-weight: 400; }
.hm-ct th a { display: inline-flex; align-items: center; min-height: 44px; font: 400 17px var(--hm-sc); letter-spacing: .08em; }
.hm-ct small { display: block; color: var(--hm-red); font-size: 14px; font-style: italic; }
.hm-rt thead th { font: 400 14px var(--hm-sc); letter-spacing: .12em; color: var(--hm-ash); border-bottom: 1px solid var(--hm-grey); }
.hm-rt tbody th { font-style: italic; }
.hm-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 8px; }
.hm-tags a { display: inline-flex; align-items: center; min-height: 44px; }

/* the swatches, cut as shields; the value sits under the shield, bone on black */
.hm-swatch { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hm-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--hm-bone); }
.hm-chip i { display: block; width: 58px; height: 74px; border: 1px solid var(--hm-grey); clip-path: polygon(50% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); }
.hm-asbuilt { margin: 6px 0 0; color: var(--hm-ash); font-style: italic; }

.hm-rules article { padding: 24px 0; border-bottom: 1px solid var(--hm-char); }
.hm-rules h3 { margin: 0; font: 400 30px/1.2 var(--hm-metal); }
.hm-k { display: block; font-style: italic; color: var(--hm-ash); font-size: 16px; max-width: 60ch; margin: 2px auto 0; }
.hm-rules p { max-width: 52ch; margin: 6px auto 0; }
.hm-rules .hm-top { font-size: 22px; }
.hm-ev { font-style: italic; color: var(--hm-red); font-size: 16px; }
.hm-firm { font-style: italic; }

.hm-conf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hm-conf > * { display: block; padding: 18px; border: 1px solid var(--hm-char); text-decoration: none; }
.hm-rec .hm-conf a:hover { background: var(--hm-lift); color: var(--hm-bone); }
.hm-conf b { display: block; font: 400 26px/1.2 var(--hm-metal); }
.hm-conf i { display: block; color: var(--hm-ash); }

.hm-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hm-rec .hm-use a { display: block; padding: 22px; background: var(--hm-blood); color: var(--hm-bone); text-decoration: none; }
.hm-rec .hm-use a:hover { background: var(--hm-blood-hi); color: #fff; }
.hm-use b { display: block; font: 400 26px/1.2 var(--hm-metal); }
.hm-mach { margin-top: 20px; }
.hm-sc { font-family: var(--hm-sc); color: var(--hm-ash); }
.hm-mach a, .hm-foot a { display: inline-block; padding-block: 10px; }

@media (max-width: 720px) {
  .hm-meta { grid-template-columns: 1fr 1fr; }
  .hm-conf, .hm-use { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* the carries table stacks: area over its contents, so the shields can sit in a row */
  .hm-ct tr, .hm-ct th, .hm-ct td { display: block; }
  .hm-ct th { border-bottom: 0; padding-bottom: 0; }
  .hm-ct td { padding-top: 2px; }
  .hm-chip i { width: 44px; height: 56px; }
  .hm-chip { font-size: 12px; }
}
@media (max-width: 420px) {
  .hm-hero, .hm-rec { font-size: 18px; }
  .hm-meta { grid-template-columns: 1fr; }
  .hm-panel { outline-offset: 3px; }
}

/* Lettered to the scene (Design Completion, 2026-09-29): the sub-genre
   conventions, on the same axis. Unifraktur stands for the black metal
   letter; the death metal word takes the text red (4.9:1), never the swatch red. */
@font-face {
  font-family: "UnifrakturMaguntia HM";
  src: url("fonts/unifraktur-maguntia.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
.hm-sub { text-align: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hm-char); }
.hm-sub__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.hm-sub__g figure { margin: 0; }
.hm-sub__g p { display: flex; align-items: flex-end; justify-content: center; height: 52px; margin: 0 0 10px; }
.hm-sub__bm { font: 400 clamp(30px, 4vw, 40px)/1 "UnifrakturMaguntia HM", var(--hm-face); color: #fff; }
.hm-sub__dm { font: 400 clamp(30px, 4vw, 40px)/1 var(--hm-metal); color: var(--hm-red); }
.hm-sub__g figcaption { font-size: 16px; line-height: 1.5; color: var(--hm-ash); }
.hm-sub__g figcaption b { display: block; font: 400 17px var(--hm-sc); letter-spacing: .08em; color: var(--hm-bone); }
@media (max-width: 640px) { .hm-sub__g { grid-template-columns: 1fr; } .hm-sub__g p:empty { display: none; } }
