:root {
  --paper: #f3eee4;
  --paper-deep: #e7e0d2;
  --ink: #1c1915;
  --muted: #4e483f;
  --pine: #1c3830;
  --pine-deep: #12241f;
  --copper: #8d3f24;
  --line: rgba(28, 25, 21, 0.14);
  --cream: #f6f1e7;
  --gold: #e3c48a;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 38rem;
  --wrap: 72rem;
  --gutter: 1.25rem;
  --header: 4.25rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(540px 240px at var(--sun-x, 68%) -40px, rgba(186, 214, 224, 0.85), transparent 70%),
    radial-gradient(720px 320px at 0% 0%, rgba(232, 214, 184, 0.65), transparent 58%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 180px at var(--sun-x, 68%) 0, rgba(255, 244, 220, 0.28), transparent 70%);
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

::selection { background: #efd3b4; color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  min-height: var(--header);
  background: rgba(243, 238, 228, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, color 0.4s ease;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.site-header.on-dark {
  background: rgba(16, 31, 28, 0.9);
  color: var(--cream);
  border-bottom-color: transparent;
}

.site-header.on-dark .nav a { color: rgba(246, 241, 231, 0.72); }
.site-header.on-dark .nav a:hover,
.site-header.on-dark .nav a[aria-current="true"] { color: var(--cream); }
.site-header.on-dark .nav-resume {
  color: var(--cream) !important;
  box-shadow: inset 0 -1px 0 var(--gold);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.wordmark svg { width: 2.4rem; height: 1.2rem; display: block; }

.wordmark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .wordmark path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

.js .wordmark.ready path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.wordmark:hover path,
.wordmark:focus-visible path { stroke: var(--copper); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="true"],
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-resume {
  color: var(--ink) !important;
  box-shadow: inset 0 -1px 0 var(--pine);
}

button.print {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: inset 0 -1px 0 var(--copper);
  padding: 0;
  cursor: pointer;
}

.hero { padding: 1.5rem 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.78fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  font-weight: 500;
}

.kicker time { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-variant-numeric: tabular-nums; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-optical-sizing: auto;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

h1 { font-size: clamp(3.4rem, 7vw, 5.7rem); }

.lede {
  margin: 1.25rem 0 0;
  max-width: 18em;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.role {
  margin: 1.25rem 0 0;
  max-width: 36em;
  color: var(--muted);
}

.portrait {
  width: min(100%, 20.5rem);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  margin-left: auto;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.ridge { margin: 0.25rem 0 0; color: var(--pine); }

.ridge svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ridge path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ridge .far { opacity: 0.35; stroke-width: 1.25; }
.ridge .near { stroke-width: 1.7; }

.js .ridge path {
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
}

.js .ridge path.drawn {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .ridge .far.drawn { transition-delay: 0.12s; }

.ridge .glow { fill: #e2b15a; filter: blur(6px); }
.ridge .sun { fill: #fff8ec; stroke: rgba(141, 63, 36, 0.35); stroke-width: 0.6; }

.js .ridge .glow,
.js .ridge .sun { opacity: 0; }

.js .ridge.ready .sun { opacity: 1; transition: opacity 0.7s ease; }
.js .ridge.ready .glow { opacity: 0.45; transition: opacity 0.9s ease; }

.section { padding: 5.5rem 0; scroll-margin-top: 4.5rem; }

h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin-bottom: 1.25rem; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--copper); }

.record {
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.record div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.record dt {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  padding-top: 0.3rem;
}

.record dd { margin: 0; }

.life {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #1b3831 0%, #142822 72%, #101f1c 100%);
  color: var(--cream);
  overflow: hidden;
}

.life::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 240px at var(--sun-x, 62%) 0%, rgba(236, 186, 120, 0.28), transparent 68%);
  opacity: 0.55;
  transition: opacity 1.4s ease;
  z-index: -1;
}

.life.is-lit::before { opacity: 1; }

.life .kicker { color: var(--gold); }
.life h2 { max-width: 16ch; }
.life .ridge { color: #d7e6da; margin-top: 2.5rem; }
.life .ridge .glow { fill: #f0c27a; }
.life .ridge .sun { stroke-color: transparent; stroke: rgba(255, 248, 236, 0.4); }
.life.is-lit .ridge.ready .glow { opacity: 0.95; }

.peak {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 16em;
  margin: 0 0 1.25rem;
}

.contact .big-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
}

.contact .big-link:hover,
.contact .big-link:focus-visible {
  box-shadow: inset 0 -0.08em 0 var(--pine);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a { color: var(--muted); text-underline-offset: 0.2em; }
.contact-list a:hover { color: var(--ink); }

.note { max-width: 36em; color: var(--muted); margin: 1.5rem 0 0; }

.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-main { padding-bottom: 4rem; }

.resume-main h1 { font-size: clamp(3rem, 6vw, 4.6rem); }

.positioning {
  max-width: 40rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contact-row a { color: inherit; }

.resume-main h2 {
  font-size: 1.7rem;
  margin: 2.4rem 0 0.8rem;
}

.resume-main h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: 1.4rem;
}

.meta { margin: 0.2rem 0 0.7rem; color: var(--muted); font-size: 0.95rem; }

.bullets, .groups { padding: 0; margin: 0; list-style: none; }
.bullets li {
  position: relative;
  padding-left: 1rem;
  margin: 0.55rem 0;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 1px;
  background: var(--copper);
}

.groups li { margin: 0.7rem 0; }
.groups strong {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero .kicker,
.hero h1,
.hero .lede,
.hero .role,
.hero .portrait {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.06s; }
.hero .lede { animation-delay: 0.14s; }
.hero .role { animation-delay: 0.22s; }
.hero .portrait { animation-delay: 0.12s; }

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait {
    display: block;
    margin: 1.75rem auto 0;
    width: min(100%, 18rem);
  }
  .hero .ridge { margin-top: 2.25rem; }
  .record div { grid-template-columns: 1fr; gap: 0.2rem; }
  .nav { gap: 0.85rem; font-size: 0.9rem; }
  h1 { font-size: clamp(3.1rem, 14vw, 4.4rem); }
}

@media (max-width: 560px) {
  :root { --gutter: 0.85rem; }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.85rem;
    padding-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .ridge path,
  .js .wordmark path { stroke-dashoffset: 0 !important; }
  .js .ridge .sun,
  .js .ridge .glow { opacity: 0.9 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: white; }
  body::before, .ridge .glow, .ridge .sun, .skip, .print, .nav { display: none !important; }
  .site-header { position: static; background: white; }
  .life { background: white; color: black; }
  .life .peak, .life p { color: black; }
  a { text-decoration: none; }
}
