/* Worm Puzzle — shared styles for the marketing site.
   Palette mirrors theme.config.js so the site matches the app. */

:root {
  --primary: #ff6b35;
  --secondary: #4ecdc4;
  --background: #fff9f0;
  --surface: #ffffff;
  --foreground: #2c1810;
  --muted: #8b6e5a;
  --border: #f0d9c8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff8c5a;
    --secondary: #5eddd4;
    --background: #1a1208;
    --surface: #2a1f10;
    --foreground: #fff0e0;
    --muted: #c4a882;
    --border: #4a3020;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 1.25rem 0 0.25rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

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

.tagline {
  color: var(--muted);
  margin: 0;
}

.updated {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card.highlight {
  border-left: 4px solid var(--secondary);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.nav a {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.table-wrap { overflow-x: auto; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
