:root {
  --bg: #f4efe6;
  --bg-2: #ebe4d6;
  --ink: #1d1b16;
  --muted: #6b6457;
  --line: #d6cdbb;
  --accent: #2f6b5a;
  --accent-ink: #f4efe6;
  --topo: #b9ad95;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --bg-2: #1c1b16;
    --ink: #ece6d9;
    --muted: #9c9483;
    --line: #2f2c24;
    --accent: #7fbfa7;
    --accent-ink: #14130f;
    --topo: #3a362c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.topo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.topo path { fill: none; stroke: var(--topo); stroke-width: 1; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  font: 600 20px/1 var(--serif);
  text-decoration: none;
  letter-spacing: .02em;
}
.brand span { color: var(--accent); }
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav nav a:hover { color: var(--ink); }

main { padding: 0 clamp(20px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }

/* Hero */
.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 72px;
  position: relative;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
h1 {
  font: 400 clamp(52px, 11vw, 148px)/.95 var(--serif);
  letter-spacing: -.03em;
  margin: 0 0 32px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(18px, 2.1vw, 22px);
  max-width: 34ch;
  color: var(--muted);
  margin: 0 0 40px;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.coords {
  position: absolute;
  right: 0;
  bottom: 32px;
  font: 400 13px/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* Sections */
section:not(.hero) { padding: clamp(72px, 12vw, 140px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 48px; }
.num { font: 400 14px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); }
h2 { font: 400 clamp(36px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.02em; margin: 0; }
h3 { font: 600 20px/1.3 var(--serif); margin: 0 0 8px; }

.about-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); margin-bottom: 72px; }
.about-body p { margin: 0; color: var(--muted); }
.about-body .big { font: 400 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); color: var(--ink); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.pillars svg {
  width: 32px; height: 32px; margin-bottom: 20px;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.pillars p { margin: 0; font-size: 15px; color: var(--muted); }

/* Timeline */
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:first-child { padding-top: 0; }
.when { font: 400 14px/1.8 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); }
.timeline p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Contact */
.mail {
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  font: 400 clamp(32px, 7vw, 88px)/1.1 var(--serif);
  letter-spacing: -.02em;
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 40px;
}
.mail span { color: var(--accent); transition: transform .25s; }
.mail:hover span { transform: translateX(10px); }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.links a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: border-color .2s, color .2s;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Photos */
figure { margin: 0; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-photo img, .about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(29, 27, 22, .35);
}
.hero-photo { position: relative; }
.hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent);
  border-radius: 28px;
  z-index: -1;
}
.about-body { grid-template-columns: .8fr 1.2fr; align-items: start; }
.about-photo img { aspect-ratio: 3 / 4; object-position: 50% 60%; }
.about-text { display: grid; gap: 20px; align-self: center; }

.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-2);
}
.gallery img, .gallery video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.gallery figure:hover img, .gallery figure:hover video { transform: scale(1.03); }
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-photo { order: -1; max-width: 420px; }
  .hero-photo::after { inset: 12px -12px -12px 12px; }
  .about-body, .pillars { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .coords { display: none; }
  .nav nav a:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
