:root {
  --background: #f6f4ef;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --secondary: #77736b;
  --hairline: #e4e1d9;
  --fill: #ece9e2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d0d0e;
    --surface: #1a1a1c;
    --ink: #f4f2ed;
    --secondary: #98958e;
    --hairline: #2a2a2c;
    --fill: #232325;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
header.site { display: flex; align-items: center; gap: 10px; padding: 22px 0; }
header.site img { width: 32px; height: 32px; border-radius: 8px; }
header.site .name { font-weight: 600; text-decoration: none; }
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; color: var(--secondary); }
header.site nav a { text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }

.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.085em; text-transform: uppercase; color: var(--secondary); margin: 0; }
h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 14px; text-wrap: balance; }
h2 { font-size: 22px; font-weight: 600; margin: 36px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--secondary); max-width: 34em; text-wrap: pretty; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 28px 0 56px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--fill); color: var(--ink); font-weight: 600; font-size: 15px; margin-top: 10px; }

/* A solved board: a two-way gradient mixed in OKLab, like the game's own. */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; border-radius: 10px; overflow: hidden; aspect-ratio: 6 / 8; max-width: 340px; width: 100%; margin: 0 auto; }
.board i {
  --row: color-mix(in oklab, oklch(0.36 0.15 275) calc(var(--y) * 100%), oklch(0.72 0.16 250));
  --row-end: color-mix(in oklab, oklch(0.66 0.17 350) calc(var(--y) * 100%), oklch(0.93 0.05 300));
  background: color-mix(in oklab, var(--row-end) calc(var(--x) * 100%), var(--row));
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 56px; }
.card { background: var(--surface); border: 0.5px solid var(--hairline); border-radius: 22px; padding: 20px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.card p { font-size: 15px; color: var(--secondary); margin: 0; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 56px; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 0.5px solid var(--hairline); display: block; }

article { max-width: 640px; padding: 20px 0 64px; }
article ul { padding-left: 1.15em; margin: 0 0 14px; }
article li { margin-bottom: 8px; }
article .meta { color: var(--secondary); font-size: 15px; }
.contact { background: var(--surface); border: 0.5px solid var(--hairline); border-radius: 22px; padding: 20px; margin: 18px 0 8px; }
.contact a { font-weight: 600; font-size: 19px; overflow-wrap: anywhere; }
details { border-top: 0.5px solid var(--hairline); padding: 14px 0; }
details:last-of-type { border-bottom: 0.5px solid var(--hairline); }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--secondary); margin: 8px 0 0; }

footer.site { border-top: 0.5px solid var(--hairline); padding: 22px 0 40px; font-size: 13px; color: var(--secondary); display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site span { margin-right: auto; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .board { max-width: 260px; }
  .cards { grid-template-columns: 1fr; }
}
