/* Hammermouth Games. Colours from the logo: ink, paper and red. The header takes the emblem's stripes and red shore,
   with two searchlights as in the game; the page below is paper. */
@font-face { font-family: "Gelasio"; src: url("/fonts/Gelasio-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("/fonts/Gelasio-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/CourierPrime-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Stardos Stencil"; src: url("/fonts/StardosStencil-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #151414;
  --ink-2: #1e1d1c;
  --ink-3: #2a2826;
  --paper: #efede8;
  --paper-2: #e3dfd6;
  --paper-3: #d9d5cc;
  --muted: #a39e94;
  --muted-ink: #5b5750;
  --red: #e0442b;
  --red-dark: #b7341f;
  --line: rgba(239, 237, 232, 0.17);
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --stencil: "Stardos Stencil", "Courier Prime", monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--paper); background: var(--ink); font: 1.0625rem/1.6 var(--serif); }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* The header: the emblem's stripes, strongest toward the foot, and two searchlights. */
.night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 1000px);
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(56px, 8vw, 96px);
  background: radial-gradient(120% 70% at 50% 100%, #24201d 0%, var(--ink) 62%);
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 12px, var(--line) 12px 13.6px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 30%, #000 85%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 30%, #000 85%);
}
.beam {
  position: absolute;
  bottom: 6%;
  width: clamp(160px, 22vw, 340px);
  height: 140%;
  transform-origin: 50% 100%;
  background: linear-gradient(0deg, rgba(239, 237, 232, 0.15), rgba(239, 237, 232, 0.05) 50%, rgba(239, 237, 232, 0) 88%);
  clip-path: polygon(48% 100%, 52% 100%, 100% 0, 0 0);
  filter: blur(7px);
}
.beam-a { left: 18%; transform: rotate(-24deg); animation: sweep-a 26s ease-in-out infinite alternate; }
.beam-b { right: 14%; transform: rotate(20deg); animation: sweep-b 33s ease-in-out -9s infinite alternate; }
@keyframes sweep-a { from { transform: rotate(-34deg); } to { transform: rotate(14deg); } }
@keyframes sweep-b { from { transform: rotate(30deg); } to { transform: rotate(-16deg); } }

/* The emblem's red shore along the header's foot. */
.night::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(28px, 5vw, 64px);
  background: url("/img/shore.svg") center bottom / 100% 100% no-repeat;
}

.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  font: 0.8125rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.strip a { text-decoration: none; color: var(--paper-3); }
.strip a:hover { color: #fff; }
.strip-home { display: inline-flex; align-items: center; gap: 10px; }
.strip-out { border-bottom: 2px solid var(--red); padding-bottom: 3px; }

.masthead {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px) 16px clamp(24px, 5vw, 48px);
  text-align: center;
}
.proof {
  margin: 0;
  width: min(400px, 74vw);
}
.card { width: 100%; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.lede {
  margin: clamp(22px, 3vw, 34px) 0 0;
  font: italic 400 clamp(1.375rem, 2.6vw, 2rem)/1.3 var(--serif);
  color: var(--paper);
}
.lede a { text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

/* The page. */
.paper {
  color: var(--ink);
  background: url("/img/grain.png") 0 0 / 192px 192px, var(--paper);
  padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(56px, 9vw, 120px);
}
.game {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.stamp {
  margin: 0 0 14px;
  font: 700 1rem/1 var(--stencil);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.game h2 {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.game-lede { margin: 0 0 22px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 46ch; }
.game-text a { text-decoration-color: var(--red-dark); }
.game-text a:hover { color: var(--red-dark); }
.go {
  display: inline-block;
  padding: 11px 18px 10px;
  font: 1rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  color: var(--paper) !important;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  border-radius: 2px;
  text-decoration: none;
}
.go::after { content: " \2192"; }
.go:hover { background: #000; }
.small { margin: 22px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted-ink); max-width: 52ch; }

/* A still from the game, its caption under it. */
.print img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border: 1px solid rgba(21, 20, 20, 0.35); }
.print figcaption { padding: 10px 0 0; font: 0.8125rem/1.45 var(--mono); color: var(--muted-ink); }
.print-lead a { display: block; }

.plates { max-width: 1200px; margin: clamp(64px, 9vw, 120px) auto 0; }
.rule-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 clamp(24px, 3vw, 36px);
  font: 400 0.875rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
}
.rule-label::after { content: ""; flex: 1; height: 1px; background: rgba(21, 20, 20, 0.3); }
.plate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px); }

/* The footer, over the emblem's stripes. */
.colophon {
  position: relative;
  background: var(--ink);
  color: var(--muted);
  font-size: 0.875rem;
  padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(40px, 6vw, 64px);
  border-top: 6px solid var(--red);
}
.colophon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 12px, rgba(239, 237, 232, 0.05) 12px 13.6px);
  pointer-events: none;
}
.colophon-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.colophon-inner p { margin: 0 0 8px; max-width: 72ch; }
.colophon-name { font: italic 400 1.5rem/1.2 var(--serif); color: var(--paper); margin-bottom: 12px !important; }
.colophon-mark { width: 88px; height: 88px; }
.colophon a { color: var(--paper-3); }

@media (max-width: 900px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .print-lead { order: -1; }
  .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .night { min-height: 0; }
  .strip { letter-spacing: 0.08em; font-size: 0.75rem; }
  .strip-home img { width: 24px; height: 24px; }
  .masthead { padding-top: 28px; }
  .plate-grid { grid-template-columns: minmax(0, 1fr); }
  .colophon-inner { grid-template-columns: minmax(0, 1fr); }
  .colophon-mark { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none; }
}
