/* Humbug Mountain's site: one stylesheet for every page. Colours are tokens with a dark set
   that follows the reader's system appearance. No web fonts, no scripts. */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5d5d63;
  --rule: #dcdad5;
  --accent: #2f5fd0;
  --accent-text: #ffffff;
  --max: 46rem;
  --wide: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --surface: #222226;
    --text: #f2f2f4;
    --muted: #a9a9b0;
    --rule: #38383d;
    --accent: #7ea3ff;
    --accent-text: #0f1424;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 1; }

header.site, footer.site { padding: 1rem; }
header.site .inner, footer.site .inner, main { max-width: var(--wide); margin: 0 auto; }
header.site .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.brand svg { width: 2rem; height: 2rem; }
nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 1rem 1rem 3rem; }
.prose { max-width: var(--max); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin: 1.5rem 0 0.75rem; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: 0.3rem 0; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 0 0.25em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }
.status { display: inline-block; font-size: 0.9rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.7rem; }

.shot { margin: 2rem 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); }
.shot figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.grid li { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; margin: 0; }
.grid h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.grid p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem; margin: 2rem 0; }
.product h2 { margin-top: 0; }
.product img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); display: block; }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; } }

.button { display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; padding: 0.55rem 1rem; border-radius: 10px; }
.button:hover { filter: brightness(1.08); }

footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.92rem; }
footer.site .inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

@media (max-width: 420px) {
  nav ul { gap: 0.25rem 0.9rem; font-size: 0.95rem; }
}
