/* colours from Nonagon's Frost theme, after Nord */
:root {
  --bg: #E5E9F0;
  --surface: #F5F7FA;
  --text: #2E3440;
  --muted: #5B6475;
  --accent: #5E81AC;
  --line: rgba(46, 52, 64, 0.1);

  --tumbler: #5E81AC;
  --beam: #D08770;
  --tens: #8FBCBB;
  --cipher: #A3BE8C;
  --shift: #D8A0B8;
  --sonar: #81A1C1;
  --balance: #EBCB8B;
  --pop: #BF616A;
  --orbit: #B48EAD;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2E3440;
    --surface: #3B4252;
    --text: #ECEFF4;
    --muted: #AEB6C4;
    --accent: #88A4C8;
    --line: rgba(236, 239, 244, 0.1);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

header.site .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

header.site nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

header.site nav a:hover { color: var(--text); }

/* the app's word mark: lowercase New York semibold */
.wordmark {
  font-family: ui-serif, "New York", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero { text-align: center; padding: 40px 0 24px; }
.hero img.icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 30px rgba(46, 52, 64, 0.18); }
.hero h1 { font-size: 52px; line-height: 1.1; margin: 22px 0 8px; }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 30em; }

.badge {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.badge.soon { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

section { padding: 28px 0; }
section h2 { font-size: 26px; margin: 0 0 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

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

.game {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  border-top: 5px solid var(--c);
}

.game h3 { margin: 0 0 4px; font-size: 18px; }
.game p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; align-items: baseline; }
.features li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: translateY(-1px); }

.app-card { display: flex; gap: 20px; align-items: center; text-decoration: none; color: inherit; }
.app-card img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.app-card h3 { margin: 0; font-size: 28px; }
.app-card p { margin: 4px 0 0; color: var(--muted); }

article h1 { font-size: 36px; line-height: 1.15; margin: 16px 0 8px; }
article .updated { color: var(--muted); margin: 0 0 24px; }
article h2 { font-size: 21px; margin: 30px 0 8px; }
article p, article li { color: var(--text); }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

footer.site a { color: var(--muted); }

@media (max-width: 620px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
  header.site nav a { margin-left: 12px; }
}
