/* Wood Block Puzzle — site styles.
   The palette is the game's own (src/theme.ts), so the page and the app read as
   one product. Dark by design: this is a dim wooden table, not a theme choice. */

:root {
  --bg-top: #3a2a1c;
  --bg-bottom: #1d1309;
  --panel: #402d19;
  --panel-raised: #553c22;
  --line: rgba(255, 224, 182, 0.12);
  --text: #f6eada;
  --text-dim: #a8907a;
  --accent: #ffc24d;
  --honey: #e3b04b;
  --terracotta: #cc6b3d;
  --moss: #6e8f5a;
  --teal: #4f7c8a;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-bottom);
  background-image: radial-gradient(120% 80% at 50% 0%, var(--bg-top) 0%, var(--bg-bottom) 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-rounded, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- top bar --- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

a { color: var(--accent); text-decoration-color: rgba(255, 194, 77, 0.4); }
a:hover { text-decoration-thickness: 2px; }
.topbar nav a { color: var(--text-dim); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); }

/* --- hero --- */

.hero {
  text-align: center;
  padding: 48px 0 8px;
}

.hero img.icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  display: block;
  margin: 0 auto 26px;
}

h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.tagline {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--text-dim);
  max-width: 30ch;
  margin: 0 auto 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #2a1a0e;
  font-weight: 800;
  font-size: 17px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
}

.cta:hover { filter: brightness(1.07); }
.cta-note { display: block; margin-top: 14px; font-size: 14px; color: var(--text-dim); }

/* --- screenshots --- */

.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 44px 4px 12px;
  scroll-snap-type: x mandatory;
}

.shots img {
  width: 236px;
  flex: 0 0 auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  scroll-snap-align: center;
  max-width: 72vw;
}

/* --- feature cards --- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 26px 0 12px;
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p { margin: 0; color: var(--text-dim); font-size: 15.5px; }

.chip {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  display: inline-block;
  flex: 0 0 auto;
}

.chip.honey { background: var(--honey); }
.chip.terracotta { background: var(--terracotta); }
.chip.moss { background: var(--moss); }
.chip.teal { background: var(--teal); }

/* --- legal / support prose --- */

.doc { padding: 26px 0 8px; max-width: 68ch; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.doc .updated { color: var(--text-dim); font-size: 15px; margin: 0 0 34px; }
.doc h2 {
  font-size: 20px;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doc p, .doc li { color: #e6d7c4; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 26px 0;
}

.callout p { margin: 0; }

/* --- faq --- */

.faq { margin-top: 8px; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--accent); }
.faq details[open] summary::after { content: " –"; }
.faq details p { margin: 10px 0 4px; color: var(--text-dim); }

/* --- footer --- */

footer {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }
