:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --text-soft: #999999;
  --primary: #2196f3;
  --primary-hover: #1976d2;
  --accent: #6366f1;
  --stonks: #16a34a;
  --stonks-soft: #dcfce7;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: #f3f4f6;
}

.site-nav a.active {
  color: #fff;
  background: var(--primary);
}

.site-nav a.active.stonks-active {
  background: var(--stonks);
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-footer a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
