:root {
  --bg: #0e0e0e;
  --panel: #121212;
  --line: #262626;
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --text2: #bdbdbd;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Light theme (set by theme.js) */
[data-theme="light"] {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --line: #e2e2e2;
  --text: #161616;
  --muted: #6b6b6b;
  --text2: #3d3d3d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
}
a { color: inherit; text-decoration: none; }

/* Sidebar */
.sidebar {
  width: 290px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 36px;
}
.menu a {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
}
.menu a.active, .menu a:hover { color: var(--text); }
.bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.bottom p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 10px;
  white-space: nowrap;
}
.contact svg { width: 16px; height: 16px; fill: var(--muted); flex-shrink: 0; }
a.contact:hover { color: var(--text); }

/* Theme switch */
.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}
.theme-switch button {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button.active { background: var(--line); color: var(--text); }

/* Main */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.hero { max-width: 560px; }
.hero h1 {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero p { color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 700px) {
  body { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 16px;
  }
  .name { margin-bottom: 16px; }
  .bottom { margin-top: 16px; }
  main { padding: 40px 16px; }
  .hero h1 { font-size: 30px; }
}

/* Content cards (filled from Google Sheets) */
.page { width: 100%; max-width: 680px; }
.page h1 {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 24px;
}
.page > .cards > p { color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.group-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 2px;
}
.group-title:first-child { margin-top: 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 16px; font-weight: 600; }
.card-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-body { color: var(--text2); line-height: 1.6; margin-top: 8px; }
.card-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
}
.card-link:hover { color: var(--text); }
.badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
@media (max-width: 700px) {
  .page h1 { font-size: 28px; }
}
