/* ===== Shared design system base — copy this block into every new app's style.css ===== */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-raised: #eef1f4;
  --text: #1a1f2b;
  --muted: #6b7280;
  --accent: #2980b9;
  --accent-strong: #1f6693;
  --border: #d8dee6;
  --radius: 14px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10;
    --surface: #1a1f2b;
    --surface-raised: #232a3a;
    --text: #f0f2f5;
    --muted: #8b93a3;
    --accent: #4da3e0;
    --accent-strong: #2980b9;
    --border: #3a4358;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #0a0c10;
  --surface: #1a1f2b;
  --surface-raised: #232a3a;
  --text: #f0f2f5;
  --muted: #8b93a3;
  --accent: #4da3e0;
  --accent-strong: #2980b9;
  --border: #3a4358;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; min-width: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 600; font-size: 1.1rem; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a.active,
nav a:hover {
  color: var(--text);
}

#theme-toggle {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.empty-state { color: var(--muted); font-style: italic; }

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===== End shared base ===== */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.1rem;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  display: inline-block;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-size: 0.85rem;
}
