:root {
  --bg: #fafafa;
  --ink: #172026;
  --muted: #59636e;
  --line: #d9dee3;
  --panel: #ffffff;
  --accent: #126b63;
  --accent-dark: #0d4f49;
  --warm: #8a5a12;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(250, 250, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

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

.section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 48px;
  min-height: 560px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.portrait {
  margin: 0;
  justify-self: end;
}

.portrait img {
  display: block;
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(31, 41, 51, 0.18);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.prose {
  max-width: 900px;
  color: var(--muted);
  font-size: 17px;
}

.prose p {
  margin: 0 0 18px;
}

.tinted {
  position: relative;
}

.tinted::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: #f1f6f5;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.split-list article,
.timeline article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.split-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: block;
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 800;
}

.achievement-list,
.entry-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.achievement-list li,
.entry-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

.achievement-list strong,
.entry-list strong {
  color: var(--warm);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.achievement-list span,
.entry-list span {
  color: var(--muted);
}

.entry-list li > span {
  display: grid;
  gap: 6px;
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li {
  padding-left: 2px;
}

.compact-list strong {
  color: var(--warm);
  font-weight: 850;
}

.note {
  margin: 24px 0 0;
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.contact p {
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  font-weight: 750;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait {
    justify-self: start;
  }

  .portrait img {
    width: min(260px, 72vw);
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .achievement-list li,
  .entry-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  .lead,
  .prose {
    font-size: 16px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}
