@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Gallery light / dark, the game's default look (Assets/Tessera/UI/Styles/Themes). */
:root {
  --bg: #F6F5F2; --surface: #FFFFFF; --ink: #1C1A17; --muted: #5E584F; --line: #DCD5C9;
  --accent: #7A5A22; --accent-ink: #FFFFFF; --cell: #FFFFFF; --grid: #D8D3CA; --cross: #9A9286;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1815; --surface: #24211D; --ink: #ECE5D8; --muted: #A9A091; --line: #3A352F;
    --accent: #D2A85A; --accent-ink: #1A1815; --cell: #24211D; --grid: #3A352F; --cross: #7E766B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; margin: 0 auto; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 30px/1 "Instrument Serif", Georgia, serif; }
.mark { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.button) { text-decoration: none; color: var(--muted); }
.top nav a:not(.button):hover { color: var(--ink); }

.button { display: inline-block; padding: 14px 22px; border-radius: 4px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; border: 1px solid var(--ink); }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.button.small { padding: 8px 16px; }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 56px 0 88px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; margin: 28px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.hero-board { display: flex; justify-content: center; }
.board { display: grid; gap: 0; width: min(100%, 460px); }
.board .clue i { font-style: normal; }
.board .clue { color: var(--muted); font-size: 13px; display: flex; font-variant-numeric: tabular-nums; }
.board .clue.col { flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 6px; line-height: 1.3; }
.board .clue.row { justify-content: flex-end; align-items: center; gap: 6px; padding-right: 8px; }
.board .clue.done { opacity: .4; }
.board .cell { aspect-ratio: 1; background: var(--cell); border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); position: relative; }
.board .cell.edge-l { border-left: 1px solid var(--grid); }
.board .cell.edge-t { border-top: 1px solid var(--grid); }
.board .cell.rule-r { border-right-color: var(--muted); }
.board .cell.rule-b { border-bottom-color: var(--muted); }
.board .cell > b { position: absolute; inset: 1px; background: var(--ink); transform: scale(.6); opacity: 0; transition: opacity .12s linear, transform .25s cubic-bezier(.34,1.56,.64,1), background-color .6s ease; }
.board .cell.on > b { opacity: 1; transform: scale(1); }
.board .cell.x::before, .board .cell.x::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 1.5px; background: var(--cross); }
.board .cell.x::before { transform: rotate(45deg); }
.board .cell.x::after { transform: rotate(-45deg); }
.board.revealed .cell.x::before, .board.revealed .cell.x::after { opacity: 0; transition: opacity .6s; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0; border-top: 1px solid var(--line); }
.features h2 { font-size: 30px; margin-bottom: 12px; }
.features p { color: var(--muted); margin: 0; }

.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 72px; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 auto; width: min(260px, 70vw); height: auto; border-radius: 12px; scroll-snap-align: start; background: var(--surface); }

.platforms { padding: 64px 0 96px; border-top: 1px solid var(--line); }
.platforms h2 { font-size: 48px; margin-bottom: 28px; }
.platforms ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.platforms li a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--surface); height: 100%; }
.platforms li a:hover { border-color: var(--ink); }
.platforms li span { color: var(--accent); font-size: 14px; }
.platforms li.soon a { pointer-events: none; }
.platforms li.soon span { color: var(--muted); }

footer { border-top: 1px solid var(--line); text-align: center; padding: 32px 24px 48px; color: var(--muted); }
footer a { color: var(--ink); }
.small { font-size: 13px; }

.page { max-width: 720px; margin: 0 auto; padding: 32px 24px 96px; }
.page h1 { font-size: 56px; margin-bottom: 32px; }
.page h2 { font-size: 28px; margin: 32px 0 8px; }
.page .todo { background: #fff3c4; color: #5a4300; padding: 2px 6px; border-radius: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 64px; }
  .features { grid-template-columns: 1fr 1fr; }
  .platforms ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top nav a:not(.button) { display: none; }
  .features { grid-template-columns: 1fr; }
  .platforms ul { grid-template-columns: 1fr; }
}
