/* gelm.games — one stylesheet, no build step. Colours are sampled from Deepstrata's key art. */
:root {
  --sky: #0d0c14;      /* the night above the crust */
  --rock: #171a2b;     /* panels */
  --seam: #2b2f48;     /* borders */
  --bone: #e9e4d6;     /* body text */
  --dust: #a2a7ba;     /* secondary text */
  --ore: #e2a44c;      /* the logotype's gold */
  --ore-deep: #8a5a1f;
  --lamp: #8fd3e8;     /* the pod's canopy; focus rings */
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--sky); color: var(--bone);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lamp); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ore); color: #1a1206; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px 0 16px; }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--bone); text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--dust); text-decoration: none; font-size: 0.95rem; letter-spacing: 0.04em; padding: 6px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); text-decoration: underline; }

/* the rule under the logotype, borrowed for section breaks */
.strata { height: 6px; border: 0; margin: 0; background:
  linear-gradient(90deg, transparent 12%, var(--ore) 12% 13.4%, transparent 13.4% 49.3%, #c9463c 49.3% 50.7%, transparent 50.7% 86.6%, #49c2c0 86.6% 88%, transparent 88%),
  #7c8794; }

/* type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); letter-spacing: 0.01em; }
h2 { font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ore); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--bone); max-width: 46ch; }
.hook { font-size: clamp(1.25rem, 3.2vw, 1.7rem); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0.6em; }
.muted { color: var(--dust); }
.prose { max-width: 66ch; }
section { padding: 44px 0 8px; }

/* art */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.frame { border: 1px solid var(--seam); background: #000; }
.hero { margin: 0; position: relative; }
.hero > img { width: 100%; min-height: 200px; object-fit: cover; }
.hero h1 { margin: 0; }
.hero .logo { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); width: min(66%, 600px); }
.intro { display: grid; gap: 28px; padding: 28px 0 8px; }
@media (min-width: 860px) { .intro { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 44px; } }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 1.2em 0 0.4em; }
.btn { display: inline-block; padding: 0.78em 1.25em; font-weight: 700; text-decoration: none; border-radius: 3px; border: 2px solid var(--seam); color: var(--bone); background: transparent; line-height: 1.2; }
.btn:hover { border-color: var(--dust); color: #fff; }
.btn.primary { background: var(--ore); color: #1a1206; border-color: var(--ore); box-shadow: 0 4px 0 var(--ore-deep); }
.btn.primary:hover { background: #f0b866; color: #1a1206; border-color: #f0b866; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ore-deep); }

/* media */
video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.shots a { display: block; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots a:hover img, .shots a:focus-visible img { outline: 2px solid var(--ore); }
.shots figcaption, .caption { font-size: 0.85rem; color: var(--dust); padding-top: 6px; }
.shots figure { margin: 0; }

/* panels, facts, features */
.panel { background: var(--rock); border: 1px solid var(--seam); padding: 22px; }
.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } .features .wide { grid-column: 1 / -1; } }
.features ul { margin: 0; padding-left: 1.1em; }
.features li { margin-bottom: 0.35em; }
.facts { display: grid; grid-template-columns: minmax(8.5em, max-content) 1fr; gap: 8px 22px; margin: 0; }
.facts dt { color: var(--dust); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.files img { width: 100%; background: #23263a; }
.files .logo-tile img { padding: 18px 12px; }
blockquote.copy { margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--seam); }

/* footer */
.site-footer { margin-top: 56px; padding: 26px 0 40px; color: var(--dust); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.site-footer a { color: var(--dust); }
.site-footer a:hover { color: var(--bone); }

.gap { margin-top: 1.5em; }
.redirect { padding-top: 60px; }
