/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --muted-text: #6b6b6b;
  --link-color: #0657b3;
  --pill-bg: #e6f2ff;
  --focus-outline: #82b3ff;
}
[data-theme="dark"] {
  --bg-color: #1f1f1f;
  --text-color: #e6e6e6;
  --muted-text: #b8b8b8;
  --link-color: #a7e8f2;
  --pill-bg: #284a4e;
  --focus-outline: #52d1df;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  flex: 1;
}

/* Typography */
h1 { display: none; }

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

a {
  color: var(--text-color);
  text-decoration: none;
}

pill {
  background: var(--pill-bg);
  border-radius: 4px;
}

a:hover {
  color: var(--link-color);
  text-decoration: underline;
}

/* Home page specific styles */
.home .intro { margin-bottom: 2rem; }

.home .links a {
  margin-right: 0.5rem;
  white-space: nowrap;
}

/* Key-Value rows for home */
.kv { display: grid; gap: 1.25rem; }
.kv .k { color: var(--muted-text); }
.kv .v { color: var(--text-color); }
.kv .v a:hover { text-decoration: underline; }
.intro-content a, .page-content a {
  background: var(--pill-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--link-color);
}
.pill {
  background: var(--pill-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--link-color);
}

/* Generic page content styles (for projects.md) */
.page-content {
  margin-top: 2rem;
}

.page-content h1 {
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  margin-bottom: 0.5rem;
}


.page-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-color);
  font-size: 0.9rem;
  margin-top: 2rem;
}
