/* ---------- Tokens ---------- */
:root {
  --paper: #F3F1EA;
  --ink: #232420;
  --ink-soft: #5B5D55;
  --line: #DAD6C9;
  --accent: #5B6B4F;
  --accent-warm: #9C7A4D;

  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --sidebar-width: 300px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-warm); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

/* ---------- Layout ---------- */
.page {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: var(--gutter);
}

.sidebar-inner {
  position: sticky;
  top: var(--gutter);
}

.mark {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  border: 1px solid var(--line);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 1.75rem 0;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top; /* or "center 20%", etc. */

}


.name {
  font-size: clamp(1.7rem, 2vw, 2rem);
  margin-bottom: 0.35rem;
}

.title {
  color: var(--ink-soft);
  margin: 0 0 1.25rem 0;
  font-size: 0.98rem;
}

.bio {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 2rem 0;
  max-width: 34ch;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.contact-list a {
  color: var(--ink-soft);
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover { color: var(--accent); }

/* ---------- Main content ---------- */
.content {
  flex: 1;
  padding: var(--gutter);
  min-width: 0;
}

.section {
  max-width: 62ch;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section:first-child { padding-top: 0; }
.section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-warm);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.section h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 1.25rem;
}

.section p {
  margin: 0 0 1rem 0;
}

.section p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  border-left: 2px solid var(--line);
  padding-left: 1.25rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.2rem 0;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.timeline-org {
  color: var(--accent-warm);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
}

.project h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.project h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.project h3 a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.project p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Skills ---------- */
.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .page { flex-direction: column; }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-inner { position: static; }

  .bio { max-width: none; }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }

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


.map-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  margin: 1.5rem 0;
}