/* ─── Reset & base ─────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #f4f3f0;
  --text:      #1c1c1a;
  --muted:     #7d7d75;
  --accent:    #3d6b5f;
  --accent-lt: #dce9e5;
  --border:    #e0dfd8;
  --max-w:     720px;
  --nav-h:     52px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

/* Thin accent stripe at very top of page */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
}

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

/* ─── Typography ───────────────────────────────────────────────────── */

h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* Section labels — small, uppercase, accent */
h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 2.25rem;
}

h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 0; }

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

a.subtle {
  color: var(--muted);
  font-size: 0.85rem;
}
a.subtle:hover { color: var(--text); text-decoration: none; }

/* ─── Layout ───────────────────────────────────────────────────────── */

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

/* Section cards — white, elevated above the warm page background */
.container.card {
  padding: 2.25rem 2.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.07);
}

section {
  padding: 1.25rem 0;
}

.hero {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

/* ─── Nav ──────────────────────────────────────────────────────────── */

#nav {
  position: sticky;
  top: 3px;                  /* sits just below the accent stripe */
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-contact a {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav-contact a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

/* ─── Hero ─────────────────────────────────────────────────────────── */

.positioning {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 2.25rem;
  max-width: 560px;
  letter-spacing: -0.02em;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* ─── What I bring ─────────────────────────────────────────────────── */

.bring-items {
  display: flex;
  flex-direction: column;
}

.bring-item {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  gap: 0 1.25rem;
}

.bring-item:last-child {
  border-bottom: none;
}

.bring-num {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;     /* align with heading cap-height */
  grid-column: 1;
  grid-row: 1;
}

.bring-item h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0.6rem;
}

.bring-item p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.95rem;
  color: #3d3d38;
  line-height: 1.75;
}

/* ─── Career ───────────────────────────────────────────────────────── */

.section-intro,
.career-intro {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Timeline grid */
.timeline { }

.tl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 2.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.tl-row:last-child {
  border-bottom: none;
}

/* Date column */
.tl-when {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
  padding-top: 0.22rem;    /* optically align with org name cap-height */
}

.tl-thread-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Content column */
.tl-what { }

.tl-org {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.tl-org-sub {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Thread rows: left rule on content */
.tl-thread-row .tl-what {
  border-left: 2px solid var(--accent-lt);
  padding-left: 1.25rem;
}

/* Sub-roles */
.tl-sub-roles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tl-sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.tl-role {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.tl-role-dates {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.tl-sub-roles p {
  font-size: 0.92rem;
  color: #3a3a36;
  line-height: 1.75;
}

/* Education: no sub-roles, just the org name */
.tl-education .tl-org {
  margin-bottom: 0;
}

/* ─── Contact ──────────────────────────────────────────────────────── */

#contact {
  padding-bottom: 3rem;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* ─── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 580px) {
  html { font-size: 16px; }

  section { padding: 0.75rem 0; }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .container.card {
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
  }

  #contact { padding-bottom: 2rem; }

  .nav-contact { display: none; }

  .nav-links { gap: 1.25rem; }

  /* Stack timeline columns vertically */
  .tl-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1.75rem 0;
  }

  .tl-when {
    text-align: left;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .tl-thread-tag {
    display: inline;
    margin-bottom: 0;
  }

  .tl-what {
    margin-top: 0.5rem;
  }

  .tl-thread-row .tl-what {
    padding-left: 0.9rem;
  }

  .bring-item {
    grid-template-columns: 1.5rem 1fr;
    gap: 0 0.9rem;
  }

  .tl-sub-head {
    flex-direction: column;
    gap: 0.05rem;
  }

  .hero-links,
  .contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
