/* The White Light: the game's website (GitHub Pages, no build step, nothing loaded from other sites). */
@font-face {
  font-family: 'Gaegu';
  src: url('../fonts/gaegu-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Gaegu';
  src: url('../fonts/gaegu-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('../fonts/press-start-2p-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #0a090c;
  --text: #e9e0cc;
  --muted: #a79d8a;
  --gold: #c8963e;
  --gold-hi: #e8c77e;
  --line: rgba(233, 224, 204, 0.14);
  --max: 980px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, #1b1720 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 18px/1.65 Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-hi);
  text-underline-offset: 3px;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

/* The capsule across the top, the line and the two ways in under it. */
.hero img {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.tagline {
  font-family: Gaegu, Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  text-align: center;
  margin: 28px auto 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 24px 0 8px;
}

.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 20px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #140f08;
  box-shadow: 4px 4px 0 #000;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-hi);
  border-color: var(--gold-hi);
}

.btn.ghost {
  background: transparent;
  color: var(--gold-hi);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(200, 150, 62, 0.14);
}

section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

main > section:first-child {
  border-top: 0;
}

h1,
h2 {
  font-family: Gaegu, Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-hi);
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin: 0 0 16px;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

.lead p {
  font-size: 1.12rem;
}

video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.shots a {
  display: block;
  border: 1px solid var(--line);
}

.shots a:hover,
.shots a:focus-visible {
  border-color: var(--gold);
}

.shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

ul.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

ul.features li {
  position: relative;
  padding-left: 28px;
  max-width: 70ch;
}

ul.features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

.closing {
  text-align: center;
}

.closing p {
  margin-inline: auto;
  color: var(--muted);
  font-style: italic;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin-bottom: 10px;
}

footer p {
  margin-inline: auto;
}

/* The privacy page: a plain document under a small bar home. */
.bar {
  border-bottom: 1px solid var(--line);
}

.bar a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  font-family: Gaegu, Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.bar img {
  width: 40px;
  height: 40px;
}

.doc {
  padding: 36px 0 24px;
}

.doc h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  margin: 0 0 6px;
}

.doc h2 {
  font-size: 1.7rem;
  margin: 34px 0 10px;
}

.doc .updated {
  color: var(--muted);
}

.doc ul {
  max-width: 68ch;
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 0.5em;
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .shots {
    grid-template-columns: 1fr;
  }

  .btn {
    font-size: 11px;
    padding: 14px 16px;
  }
}
