:root {
  --paper: #ffffff;
  --paper-soft: #f6f8fb;
  --ink: #111827;
  --muted: #566173;
  --rule: #d8dee8;
  --accent: #0f6f78;
  --accent-deep: #0b4c63;
  --accent-soft: #e6f4f5;
  --shadow: 0 24px 60px rgba(23, 36, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0, rgba(255, 255, 255, 0) 360px),
    var(--paper);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--rule);
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  margin-left: auto;
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 8vw, 88px) 0 52px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.lede {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.lede:last-of-type {
  margin-bottom: 0;
}

.portrait-frame {
  position: relative;
  margin: 0;
}

.portrait-frame::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid #b7dadd;
  content: "";
  z-index: 0;
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.wip-page {
  max-width: 660px;
  padding: clamp(72px, 12vw, 140px) 0;
}

.cv-page {
  padding: clamp(44px, 7vw, 76px) 0 84px;
}

.cv-intro {
  max-width: 760px;
  margin-bottom: 46px;
}

.cv-section {
  display: grid;
  grid-template-columns: minmax(140px, 0.26fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.cv-section h2 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cv-entry {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  gap: 20px;
  padding: 0 0 24px;
}

.cv-entry:last-child {
  padding-bottom: 0;
}

.cv-entry + .cv-entry {
  border-top: 1px solid rgba(216, 222, 232, 0.78);
  padding-top: 24px;
}

.cv-entry-single {
  grid-template-columns: 1fr;
}

.cv-entry.compact {
  padding-bottom: 18px;
}

.cv-entry.compact + .cv-entry.compact {
  padding-top: 18px;
}

.cv-entry-body h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.42;
}

.cv-entry-body p,
.cv-entry-body li,
.cv-list p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.68;
}

.cv-entry-body p {
  margin-bottom: 10px;
}

.cv-entry-body p:last-child,
.cv-list p:last-child {
  margin-bottom: 0;
}

.cv-entry-body ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 1.15rem;
}

.cv-date {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

.cv-list {
  grid-column: 2;
  display: grid;
  gap: 16px;
}

@media (max-width: 780px) {
  body {
    font-size: 17px;
  }

  .page-shell {
    width: min(100% - 32px, 680px);
  }

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

  .hero {
    min-height: auto;
    padding: 36px 0 52px;
  }

  .portrait-frame {
    width: min(100%, 430px);
  }

  .portrait-frame::before {
    inset: 12px -10px -12px 10px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .cv-section,
  .cv-entry {
    grid-template-columns: 1fr;
  }

  .cv-entry,
  .cv-list {
    grid-column: 1;
  }

  .cv-date {
    text-align: left;
  }
}
