/* Shared look for the plain HTML landing pages (math-wordle.html,
   nerdle-alternative.html, daily-math-puzzle.html). These load without the
   Flutter app, so they stay fast and readable for search engines. */

:root {
  --brand: #673ab7;
  --brand-soft: #ede7f6;
  --text: #1c1b1f;
  --muted: #5f5b66;
  --surface: #ffffff;
  --card: #f7f5fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #b39ddb;
    --brand-soft: #2a2238;
    --text: #e6e1e5;
    --muted: #b0aab8;
    --surface: #121212;
    --card: #1e1b24;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding-top: 20px;
}

header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

header img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

h1 {
  color: var(--brand);
  font-size: 38px;
  line-height: 1.15;
  margin: 40px 0 16px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

a {
  color: var(--brand);
}

.lead {
  font-size: 20px;
  color: var(--muted);
}

.play {
  display: inline-block;
  margin: 12px 0;
  padding: 14px 28px;
  border-radius: 999px;
  background: #673ab7;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.stores {
  font-size: 16px;
  color: var(--muted);
}

.example {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 20px;
}

.example p {
  margin: 4px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 1px 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--brand-soft);
}

footer {
  margin-top: 56px;
  padding-bottom: 40px;
  font-size: 15px;
  color: var(--muted);
}
