:root {
  --bg: #faf8f4;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #3f7d6e;
  --line: #e6e1d8;
  --card: #f3efe8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1d1d;
    --text: #ece9e3;
    --muted: #a09d96;
    --accent: #7fc4b2;
    --line: #333535;
    --card: #242626;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover, a:focus-visible {
  border-bottom-color: var(--accent);
}

/* Top bar */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.site-name span {
  color: var(--accent);
}

.site-name:hover, .site-name:focus-visible {
  border-bottom-color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Page content */

main {
  flex: 1;
  width: 100%;
  max-width: 37rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: normal;
  line-height: 1.2;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--accent);
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

p {
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
}

.note {
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--card);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

/* About page */

.about-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-header h1 {
  margin: 0;
}

.avatar {
  flex-shrink: 0;
  width: 7rem;
  height: 7rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  object-fit: cover;
}

/* Shared text styles (the Experience page has its own file, experience.css) */

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
}

/* Project cards */

.card {
  margin-bottom: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.card p {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}
