:root {
  --paper: #f7f2ea;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #221d18;
  --ink-2: #5d544a;
  --line: #e2d8c8;
  --accent: #b4532a;
  --accent-ink: #fff;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --paper-2: #1f1b15;
    --card: #231f19;
    --ink: #f1e9dc;
    --ink-2: #b3a796;
    --line: #362f26;
    --accent: #e68a5c;
    --accent-ink: #1a120c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.15rem/1 var(--serif); letter-spacing: .01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 1rem/1 var(--serif); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); margin: 0 0 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transform: rotate(-4deg); }
.mosaic img { width: 100%; aspect-ratio: 1; border-radius: 23%; box-shadow: var(--shadow); }
.mosaic img:nth-child(3n+2) { transform: translateY(26px); }

/* Principles */
.principles { border-block: 1px solid var(--line); background: var(--paper-2); }
.principles ul { list-style: none; margin: 0 auto; padding: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.principles strong { display: block; font: 600 1.08rem/1.3 var(--serif); margin-bottom: 4px; }
.principles span { color: var(--ink-2); font-size: .93rem; }

/* Sections */
section { padding: 88px 0; scroll-margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin: 0; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 40ch; }

.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.game { display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.game:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.game img { width: 76px; height: 76px; flex: none; border-radius: 23%; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.game h3 { font-size: 1.2rem; margin: 0 0 4px; }
.game p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.45; }

.soon { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; border: 1px dashed var(--line); border-radius: 20px; }
.soon h3 { font-size: 1.15rem; margin: 0; }
.soon p { margin: 2px 0 0; color: var(--ink-2); font-size: .93rem; }
.soon .icons { display: flex; gap: 12px; margin-left: auto; }
.soon img { width: 52px; height: 52px; border-radius: 23%; }

/* Support */
.support { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.support h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 0 0 12px; }
.support p { margin: 0; opacity: .8; }
.support .btn-primary { background: var(--paper); color: var(--ink); justify-self: start; }
.support dl { margin: 0; display: grid; gap: 14px; }
.support dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.support dd { margin: 0; }
.support a { color: inherit; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--ink-2); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer a { color: var(--ink-2); }

/* Article (privacy) */
.article { padding: 72px 0 40px; }
.article .wrap { max-width: 720px; }
.article h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0 0 8px; }
.article .updated { color: var(--ink-2); margin: 0 0 40px; }
.article .summary { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; margin-bottom: 48px; }
.article .summary ul { margin: 8px 0 0; padding-left: 20px; }
.article h2 { font-size: 1.5rem; margin: 44px 0 10px; }
.article p, .article li { color: var(--ink); }
.article li + li { margin-top: 6px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal-2 { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .mosaic { max-width: 420px; }
  .principles ul { grid-template-columns: repeat(2, 1fr); }
  .support { grid-template-columns: 1fr; padding: 36px 28px; }
  .section-head { flex-direction: column; align-items: start; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .nav a:not(:last-child) { display: none; }
  .principles ul { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .games { grid-template-columns: 1fr; }
  .game img { width: 64px; height: 64px; }
  .soon .icons { margin-left: 0; }
}
