/* Fogfront Games: shared styles for the hub pages (home, About, Privacy, 404).
   Colours and fonts match the games (site/ore-front/index.html). Dark only. No JavaScript on these pages. */

@font-face { font-family: "Saira Stencil One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/saira-stencil-one-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-semi-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ink: #0c1013;
  --panel: #141b20;
  --panel-2: #1b242b;
  --line: #2b3842;
  --text: #dde5e8;
  --muted: #8796a0;
  --ore: #f2b233;
  --font-display: "Saira Stencil One", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --gutter: 20px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--text);
  font: 400 17px/1.5 var(--font-body);
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--ore); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ore); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), 960px); margin-inline: auto; }
@media (min-width: 600px) { :root { --gutter: 32px; } }

/* ---------- header (About, Privacy, 404) ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { height: 56px; display: flex; align-items: center; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--text); text-decoration: none;
  font: 400 20px/1 var(--font-display); letter-spacing: 0.01em;
  transition: color 150ms ease;
}
.brand:hover { color: var(--ore); }
.brand .mark { width: 24px; height: 24px; flex: none; }

/* ---------- footer (every hub page) ---------- */
.site-foot { margin-top: 56px; border-top: 1px solid var(--line); padding-block: 8px 28px; }
.foot-nav { display: flex; flex-wrap: wrap; column-gap: 24px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.foot-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.copy { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- buttons ---------- */
.primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 4px;
  background: var(--ore); color: var(--ink); text-decoration: none;
  font: 700 15px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  transition: filter 150ms ease;
}
.primary:hover { filter: brightness(1.08); }

/* ---------- home ---------- */
.home main { padding-top: 28px; }
.hero { margin-bottom: 24px; }
.hero .mark { width: 32px; height: 32px; margin-bottom: 14px; }
.hero h1 {
  margin: 0; font: 400 clamp(40px, 9vw, 72px)/1 var(--font-display);
  letter-spacing: 0.01em; text-wrap: balance;
}
.lede { margin: 10px 0 0; font-size: 17px; line-height: 1.45; max-width: 46ch; text-wrap: balance; }

.games { list-style: none; margin: 0; padding: 0; }
.game {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 150ms ease;
}
.game:hover { border-color: var(--muted); }
.shot { aspect-ratio: 16 / 9; background: var(--panel-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.game-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.game h2 { margin: 0; font: 400 32px/1.05 var(--font-display); letter-spacing: 0.01em; }
.game h2 .o { color: var(--ore); }
.game p { margin: 0; line-height: 1.4; }
.play { margin-top: 10px; width: 100%; }
/* The whole card opens the game; Play stays the only Tab stop. */
.play::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.how { margin-top: 40px; }
.how h2 {
  margin: 0 0 12px; font: 600 13px/1.2 var(--font-body);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how li { border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.45; }
.how b { font-weight: 700; }

@media (min-width: 600px) {
  .play { width: auto; align-self: flex-start; min-width: 160px; }
}

/* phones on their side */
@media (orientation: landscape) and (max-height: 520px) {
  .home main { padding-top: 16px; }
  .hero { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin-bottom: 16px; }
  .hero .mark { margin: 0; }
  .hero h1 { font-size: 40px; }
  .hero .lede { grid-column: 1 / -1; margin-top: 6px; }
  .game { display: grid; grid-template-columns: 55% minmax(0, 1fr); }
  .game-body { justify-content: center; padding: 16px 20px; }
}

/* desktop */
@media (min-width: 900px) {
  .home main { padding-top: 48px; }
  .hero { margin-bottom: 32px; }
  .game { display: grid; grid-template-columns: 60% minmax(0, 1fr); }
  .game-body { justify-content: center; padding: 28px; }
  .game h2 { font-size: 40px; }
  .how { margin-top: 48px; }
  .how ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- reading pages (About, Privacy) and 404 ---------- */
.page { padding-top: 32px; }
.page > * { max-width: 68ch; }
.page h1 { margin: 0 0 16px; font: 400 clamp(34px, 8vw, 48px)/1.05 var(--font-display); letter-spacing: 0.01em; text-wrap: balance; }
.page h2 { margin: 32px 0 8px; font: 700 20px/1.25 var(--font-body); }
.page p, .page ul { margin: 0 0 14px; }
.page ul { padding-left: 1.25em; }
.page li + li { margin-top: 6px; }
.page .updated { color: var(--muted); }
.page .primary { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
