*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: #0c0c0c;
  color: #f2f2f0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.35;
}

a {
  color: inherit;
}

:root {
  --bg: #0c0c0c;
  --fg: #f2f2f0;
  --muted: #8a8a84;
  --line: #242422;
  --accent: #e8e4d9;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(16px + var(--safe-top)) 20px calc(32px + var(--safe-bot));
  background: var(--bg);
  color: var(--fg);
  max-width: 430px;
  margin: 0 auto;
}

.brand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.brand a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.article-page h1 {
  font-size: 32px;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
  font-weight: 650;
}

.why {
  color: var(--muted);
  margin: 0 0 28px;
}

.game-link {
  display: block;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  text-decoration: none;
}

.game-link:first-of-type {
  border-top: 0;
}

.game-link strong {
  display: block;
  margin-bottom: 4px;
}

.article h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 28px 0 8px;
  font-weight: 650;
}

.article h3 {
  font-size: 17px;
  margin: 20px 0 6px;
  font-weight: 600;
}

.article p {
  margin: 0 0 12px;
}

.article ul {
  margin: 0 0 16px;
  padding-left: 1.15em;
  color: var(--muted);
}

.article li {
  margin: 0 0 6px;
}

.article strong {
  color: var(--fg);
  font-weight: 600;
}

.article em {
  font-style: italic;
  color: var(--fg);
}

.article blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: #131312;
  color: var(--muted);
}

.article blockquote p {
  margin: 0;
  color: var(--muted);
}

.article blockquote strong {
  color: var(--fg);
}

.article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  vertical-align: middle;
}

.game-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f4f1ea;
  border-radius: 6px;
  flex-shrink: 0;
}

.article li .game-thumb {
  width: 56px;
  height: 56px;
}

.affiliate-note {
  margin: 36px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.site-footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.affiliate-note + .site-footer {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

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

.site-footer a:hover {
  color: var(--fg);
  text-decoration: underline;
}
