:root {
  color-scheme: dark;
  --background: #101915;
  --surface: #192720;
  --paper: #f2f4e9;
  --text: #eef1e8;
  --muted: #becbc0;
  --accent: #d2ed9e;
  --line: #3b4d41;
  --serif: Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .project h3 { font-family: var(--serif); font-weight: 400; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 3rem), 73rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .5rem; background: var(--accent); color: var(--background); transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(16px); }
.top-inner, nav, .brand { display: flex; align-items: center; }
.top-inner { min-height: 5rem; justify-content: space-between; gap: 1rem; }
.brand { text-decoration: none; gap: .75rem; font-weight: 700; }
.mark { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid #657856; border-radius: 50%; color: var(--accent); }
nav { gap: clamp(1rem, 4vw, 2.5rem); }
nav a { color: var(--muted); text-decoration: none; padding-block: .55rem; }
nav a:hover, footer a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(3.5rem, 7vw, 6.8rem); }
.eyebrow, .date { color: var(--accent); font-weight: 650; font-size: .875rem; letter-spacing: .105em; text-transform: uppercase; }
h1 { font-size: clamp(4rem, 8.4vw, 8.6rem); line-height: .83; letter-spacing: -.075em; margin: 1.5rem 0; }
.surname { display: block; color: var(--accent); font-size: .37em; line-height: 1.35; margin-top: .4em; letter-spacing: -.035em; }
.role { font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 650; }
.bio { max-width: 52ch; margin-top: .85rem; color: var(--muted); }
.quick-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.15rem; }
.quick-facts span { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.quick-facts strong { color: var(--accent); }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .68rem 1.05rem; border: 1px solid var(--line); border-radius: .35rem; text-decoration: none; font-size: .95rem; font-weight: 700; }
.primary { background: var(--accent); color: var(--background); border-color: var(--accent); }
.primary:hover { background: #e5f6c9; }
.secondary:hover { background: var(--surface); border-color: var(--accent); }
.portrait { position: relative; padding: .65rem; border: 1px solid #607152; border-radius: 48% 48% .65rem .65rem / 31% 31% .65rem .65rem; background: linear-gradient(145deg, #2d3d32, #111b16); box-shadow: 0 1.5rem 4rem #0006; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 40%; border-radius: inherit; background: var(--surface); }
.portrait-label { position: absolute; z-index: 1; right: 1.15rem; bottom: 1.15rem; padding: .55rem .7rem; border: 1px solid #ffffff33; border-radius: .4rem; background: #101915cc; color: var(--muted); font-size: .72rem; line-height: 1.35; backdrop-filter: blur(10px); }
.portrait-label strong { color: var(--accent); font-weight: 650; }
.section { padding-block: clamp(3.1rem, 7vw, 6.2rem); }
.section-heading { margin-bottom: 1.9rem; }
h2 { font-size: clamp(2.3rem, 5.1vw, 4.25rem); line-height: 1.06; letter-spacing: -.055em; }
.timeline { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: 2rem; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .6rem 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job .date { margin-top: .22rem; letter-spacing: .045em; }
.job h3, .skills h3 { font-size: 1.18rem; line-height: 1.25; margin-bottom: .35rem; }
.job-role { color: var(--text); font-weight: 650; margin-bottom: .35rem; }
.job div p:last-child, .skills p { color: var(--muted); }
.projects { background: var(--paper); color: var(--background); color-scheme: light; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.project { padding: clamp(1.3rem, 3.4vw, 2.35rem); border: 1px solid #b9c6b2; border-radius: .55rem; }
.project.featured { background: #223b2d; color: var(--text); border-color: #223b2d; }
.project .eyebrow { color: #3a5e38; }
.project.featured .eyebrow, .project.featured a { color: var(--accent); }
.project h3 { font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; margin: .55rem 0 .7rem; }
.project a { display: inline-block; margin-top: .8rem; font-weight: 700; text-underline-offset: .24em; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.skills article { border-top: 1px solid var(--line); padding-top: 1rem; }
footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.7rem; }
footer p { color: var(--muted); margin-top: .7rem; }
address { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; font-style: normal; }
address a { text-underline-offset: .24em; }
@media (max-width: 57rem) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 25rem); margin-inline: auto; }
  .project-grid, .skills { grid-template-columns: 1fr; }
  .footer-inner { align-items: start; flex-direction: column; }
  .quick-facts { gap: .35rem; }
  .quick-facts span { font-size: .72rem; }
}
@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner { align-items: flex-start; flex-direction: column; gap: .15rem; padding-top: .7rem; }
  nav a { font-size: .94rem; }
  h1 { font-size: clamp(3.45rem, 13.7vw, 4.6rem); }
  .job { grid-template-columns: 1fr; }
}
