:root {
  --bg: #f4f1eb;
  --bg-alt: #ece7de;
  --ink: #1c1b19;
  --muted: #5e594f;
  --line: #d8d1c5;
  --accent: #7a5a33;
  --accent-hover: #5c4123;
  --paper: #fffcf7;
  --max: 1120px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  font-size: 0.92rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }
.lang {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-left: 0.4rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang a { text-decoration: none; color: var(--muted); }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  margin: 0.28rem 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 5rem;
}
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.hero .intro {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.portrait-frame {
  background: var(--bg-alt);
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* Sections */
section {
  padding: 4.25rem 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.when {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.what strong { font-weight: 600; display: block; margin-bottom: 0.15rem; }
.what p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Milestones & advisory */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.5rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.015em;
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Cases */
.cases {
  display: grid;
  gap: 1.15rem;
}
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.55rem;
}
.case h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.015em;
}
.case-when {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.case dl { margin: 0; }
.case dl > div + div { margin-top: 0.85rem; }
.case dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.case dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Press */
.press { list-style: none; margin: 0; padding: 0; }
.press li {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}
.press li:last-child { border-bottom: 1px solid var(--line); }
.press a { text-decoration: none; display: block; }
.press a:hover .ptitle { color: var(--accent); }
.pmeta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.ptitle {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.pnote { color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }

/* Project */
.project {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  align-items: start;
}
.project a.ext {
  color: var(--accent);
  text-underline-offset: 3px;
}
.project a.ext:hover { color: var(--accent-hover); }

/* Contact */
.contact-block .btn { margin-top: 0.5rem; }
.fine {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding: 2.5rem 0 3.25rem; }
  .portrait-frame { aspect-ratio: 4 / 5; max-width: 28rem; }
  .section-head, .timeline li, .project { grid-template-columns: 1fr; gap: 0.55rem; }
  .timeline li { padding: 1.2rem 0 1.35rem; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0;
    top: 4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.85rem;
  }
  .menu-toggle { display: block; }
  .header-inner { position: relative; }
}
@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
  .hero h1 { font-size: 2.35rem; }
}

.card h3 a.ext {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}
.card h3 a.ext:hover { color: var(--accent); text-decoration: underline; }
