:root {
  --ivory: #f7f3ea;
  --paper: #fbf8f1;
  --ink: #1a2034;
  --muted: #5d6275;
  --gold: #a8844a;
  --gold-soft: #d9c7a3;
  --line: rgba(26, 32, 52, 0.14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.1; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav__brand span { color: var(--gold); }

.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.nav__links a:hover { color: var(--ink); border-color: var(--gold); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  min-height: calc(100vh - 4.5rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 { font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 400; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--gold); }

.rule { margin: 2rem 0; display: flex; align-items: center; }
.rule span { display: block; width: 5rem; height: 1px; background: var(--gold); }

.hero__role {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
}
.hero__status { max-width: 34rem; margin: 0 0 2.5rem; color: var(--muted); }
.hero__status strong { color: var(--ink); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }

.hero__photo { margin: 0; justify-self: center; width: min(100%, 24rem); }

.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  outline: 1px solid var(--gold);
  outline-offset: 12px;
  background: var(--gold-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.hero__photo figcaption {
  margin-top: 1.75rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.section--narrow { max-width: 860px; }

.section__num {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}
.section h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; margin-bottom: 3rem; }

.subtitle {
  margin: 4rem 0 1.5rem;
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.subtitle:first-of-type { margin-top: 0; }

.prose p { margin: 0 0 1.25rem; }
.prose p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.8;
  padding: 0.35rem 0.75rem 0 0;
  color: var(--gold);
}

/* Timeline */
.entry {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }

.entry__date {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
}
.entry__body h4 { font-size: 1.8rem; font-weight: 500; }
.entry__org {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry__body p { margin: 0 0 1rem; }
.entry__body p.entry__org { margin: 0.25rem 0 1.25rem; }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.85rem 0.2rem 0.6rem;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.6;
  background: var(--paper);
}
.chip img { width: 1rem; height: 1rem; object-fit: contain; }
.chip:not(:has(img)) { padding-left: 0.85rem; }

/* Projects */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 2rem; }
.card {
  position: relative;
  padding: 3rem 2.5rem 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.4s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__index { margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold); }
.card h3 { font-size: 2.4rem; font-weight: 500; margin-bottom: 1.5rem; }
.card p { margin: 0 0 1rem; }

/* Skills */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  transition: background 0.3s;
}
.skill:hover { background: var(--paper); }
.skill img { width: 2.6rem; height: 2.6rem; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
.skill:hover img { filter: none; opacity: 1; }

/* Contact */
.section--contact { text-align: center; }
.contact__lead { max-width: 34rem; margin: 0 auto 3rem; font-family: var(--serif); font-size: 1.6rem; font-style: italic; line-height: 1.4; }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact li:last-child { border-bottom: 1px solid var(--line); }
.contact__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact a { font-family: var(--serif); font-size: 1.7rem; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact a:hover { border-color: var(--gold); }

/* Footer */
.footer {
  padding: 2.5rem 1rem;
  text-align: center;
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__photo { order: -1; width: min(70%, 18rem); }
  .entry { grid-template-columns: 1fr; gap: 0.5rem; }
}
