:root {
  --navy: #2c3e50;
  --accent: #c8956c;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --muted: #8a8279;
  --border: #e8e4de;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  border: none;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  border: none;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.5rem;
  color: var(--navy);
}

/* Main */
main { padding: 3rem 0; }
section { margin-bottom: 3.5rem; }

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.hero-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
}
.hero-text h1 { margin-bottom: 0.5rem; }
.hero-text .lede {
  font-size: 1.15rem;
  color: var(--navy);
  max-width: 42ch;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.06);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Resume-style */
.resume-section { margin-bottom: 2.75rem; }
.resume-section h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.entry { margin-bottom: 1.5rem; }
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.entry-title {
  font-weight: 600;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
}
.entry-org { color: var(--accent); font-weight: 500; }
.entry-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.entry-desc {
  color: var(--navy);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}
.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.entry-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.entry-list li:last-child { border-bottom: none; }

/* Prose */
.prose { max-width: 65ch; }
.prose p { font-size: 1.05rem; }

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
  max-width: 500px;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.contact-list .label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Password gate */
.gate {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.gate h2 { margin-bottom: 0.5rem; }
.gate p { color: var(--muted); font-size: 0.95rem; }
.gate form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.gate input[type="password"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--navy);
}
.gate input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
}
.gate button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--surface);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.gate button:hover { background: var(--accent); }
.gate-error {
  color: #b1463a;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.confidential-note {
  background: #f1ede5;
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: 0 4px 4px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  background: var(--surface);
}

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .hero-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .hero-text .lede { margin-left: auto; margin-right: auto; }

  .cards { grid-template-columns: 1fr; }

  .entry-header { flex-direction: column; gap: 0.15rem; }
  .entry-date { white-space: normal; }
}
