/* /heavymetal/: the Heavy Metal page. Loaded after /games/nmg.css and /css/portfolio.css, so the top bar, footer,
   buttons, stamps, spec table, owned columns and paper sections are the site's own. The game's colours come from its
   key art: the hero and the GDC box are the art's blood red fading to black, accents are red, toxic green and black,
   and the big title uses the logo lettering on a black plate (.hm-outline and .hm-plate in portfolio.css). No scripts. */

.hm-logo { font-size: clamp(64px, 12vw, 150px); line-height: .9; letter-spacing: .01em; }
.hm-dark {
  color: #eadfcc;
  background-color: var(--hm-black);
  background-image: radial-gradient(75% 70% at 20% 0%, rgba(155, 31, 20, .75), transparent 72%), radial-gradient(45% 55% at 95% 25%, rgba(126, 224, 58, .16), transparent 70%), url("/games/img/grain.svg");
}
.hm-dark .kicker { color: var(--hm-green); }
.hm-dark :focus-visible { outline-color: var(--hm-green); }
.hm-dark a:not(.btn) { color: var(--hm-bone); text-decoration-color: var(--hm-green); }
.hm .btn { box-shadow: 4px 4px 0 var(--hm-red); }
.hm .btn:hover { box-shadow: 6px 6px 0 var(--hm-red); }
.hm-dark .btn { background: var(--hm-bone); color: #000; border-color: #000; box-shadow: 4px 4px 0 #000; }
.hm-dark .btn:hover { box-shadow: 6px 6px 0 #000; }
.hm-dark .btn.ghost { background: transparent; color: var(--hm-bone); border-color: var(--hm-bone); }
.hm-dark .hm-plate { border-color: #3a2419; box-shadow: 10px 10px 0 var(--hm-red); }

/* hero */
.hm-hero { padding: clamp(18px, 3vw, 30px) 0 clamp(56px, 8vw, 96px); border-bottom: 2px solid var(--ink); }
.hm-back { margin: 0 0 clamp(18px, 3vw, 30px); }
.hm-back a { display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1 var(--display); }
.hm-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hm-tag { font: 800 clamp(22px, 2.6vw, 30px)/1.2 var(--display); color: var(--hm-bone); margin: clamp(26px, 3vw, 34px) 0 0; max-width: 20em; }
.hm-hero .lede { color: #eadfcc; margin: 14px 0 0; }
.hm-stamps { padding-top: 30px; }
.hm-stamp { font-size: 15px; white-space: nowrap; color: var(--hm-green); border-color: var(--hm-green); background: var(--hm-black); transform: rotate(3deg); }
.hm-key { margin: clamp(36px, 5vw, 56px) 0 0; border: 2px solid #000; border-radius: var(--r); overflow: hidden; box-shadow: 12px 12px 0 var(--hm-green); background: #000; }
.hm-key img { width: 100%; }

/* sections: the site's paper, and the grained paper-2 band */
.hm-sec { padding: clamp(56px, 8vw, 100px) 0; }
.hm-sec--alt { background: var(--paper-2) url("/games/img/grain.svg"); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.hm-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 46px); }
.hm-head .kicker { color: var(--hm-red-ink); }
.hm-head h2, .hm-gdc h2 { font-size: clamp(40px, 5.8vw, 70px); line-height: 1; letter-spacing: -.02em; margin-bottom: 16px; }
.hm-head p:not(.kicker) { font-size: clamp(18px, 1.8vw, 20px); color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* how it plays: three numbered cards in the art's colours */
.hm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.hm-steps li { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); box-shadow: 8px 8px 0 var(--hm-red); }
.hm-steps li:nth-child(2) { box-shadow: 8px 8px 0 var(--hm-green); }
.hm-steps li:nth-child(3) { box-shadow: 8px 8px 0 var(--ink); }
.hm-num { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; border: 2px solid #000; background: var(--hm-black); color: var(--hm-bone); font: 800 28px/1 var(--display); transform: rotate(-5deg); margin-bottom: 18px; box-shadow: 3px 3px 0 var(--hm-red); }
.hm-steps h3 { font-size: clamp(28px, 3vw, 36px); text-transform: uppercase; margin-bottom: 10px; }
.hm-steps p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

/* the controller */
.hm-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hm-split .hm-head { margin-bottom: 0; }
.hm-spec { box-shadow: 8px 8px 0 var(--hm-red); }
.hm-spec div { padding: 14px 18px; }

/* my part */
.hm-owned { margin-top: 0; }
.hm-owned h3 { font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; display: inline-block; background: var(--hm-black); color: var(--hm-bone); border: 2px solid #000; border-radius: 9px; padding: 6px 10px 5px; }
.hm .hm-owned li::before { background: var(--hm-red); }

/* the world: a 2 by 2 gallery */
.hm-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.hm-gallery a { display: block; text-decoration: none; border-radius: 20px; }
.hm-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.hm-gallery a:hover img { transform: translate(-2px, -3px); box-shadow: 10px 11px 0 var(--hm-red); }
.hm-gallery span { display: block; margin-top: 14px; font: 800 15px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* play it at GDC: a dark box in the art's red and green */
.hm-gdc { position: relative; border: 2px solid #000; border-radius: 34px; padding: clamp(28px, 5vw, 60px); box-shadow: 10px 10px 0 var(--hm-green); }
.hm-gdc > div { max-width: 36em; }
.hm-gdc h2 { color: var(--hm-bone); }
.hm-gdc p:not(.kicker) { font-size: clamp(18px, 1.8vw, 20px); color: #eadfcc; margin: 0; }
.hm-gdc__stamp { position: absolute; top: clamp(20px, 3vw, 34px); right: clamp(20px, 3vw, 34px); font-size: 17px; }
.hm-fine { margin: 26px 0 0; font-size: 15px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { .hm-gallery img { transition: none; } }

@media (max-width: 860px) {
  .hm-hero__top { flex-direction: column; gap: 0; }
  .hm-stamps { padding-top: 6px; order: -1; margin-bottom: 18px; }
  .hm-steps, .hm-split { grid-template-columns: minmax(0, 1fr); }
  .hm-gdc { padding-top: 84px; }
  .hm-gdc__stamp { left: clamp(20px, 3vw, 34px); right: auto; }
}
@media (max-width: 600px) {
  .hm-gallery { grid-template-columns: minmax(0, 1fr); }
  .hm-stamp { font-size: 13px; }
  .hm-plate { border-radius: 16px; box-shadow: 6px 6px 0 var(--hm-red); }
}
