:root {
  color-scheme: light;
  --ink: #202820;
  --muted: #4e594e;
  --paper: #f8f7f1;
  --panel: #eeeee5;
  --line: #d5d8cb;
  --accent: #386044;
  --display: "Baskervville", Baskerville, Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid #55794b; outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 1; padding: .65rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 80px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; }
nav, .footer div { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
nav a, .footer a { font-size: .88rem; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3rem, 8vw, 6rem); }
.label { margin: 0 0 1rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(4rem, 8.9vw, 8.25rem); line-height: .88; letter-spacing: -.063em; }
h1 span { color: var(--accent); }
.lede { max-width: 34ch; margin: 1.7rem 0 1.8rem; font-size: clamp(1rem, 1.6vw, 1.22rem); color: var(--muted); }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: .55rem; padding: .68rem .9rem; border: 1px solid var(--accent); font-size: .84rem; font-weight: 650; text-decoration: none; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #254a31; color: white; }
.secondary:hover { background: var(--panel); }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 45% 42%; background: var(--panel); }
.section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
.project { background: #e6e9df; }
.project-grid { align-items: start; }
.project-copy { max-width: 64ch; }
.project-copy p { margin: 0 0 1rem; color: var(--muted); }
.project-button { margin-top: .35rem; }
.project-button:hover { background: #daddd2; }
.work, .about { background: var(--panel); }
h2 { font-size: clamp(2.35rem, 5vw, 4.35rem); line-height: .99; letter-spacing: -.045em; }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.14; }
.entries article { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.entries article:last-child { border-bottom: 1px solid var(--line); }
.entries p, .about div > p:not(.label) { margin: .55rem 0 0; color: var(--muted); max-width: 57ch; }
.about div > p + p { margin-top: 1rem; }
.matrix { margin: 0; }
.matrix div { display: grid; grid-template-columns: minmax(8rem, .8fr) 1.2fr; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.matrix div:last-child { border-bottom: 1px solid var(--line); }
dt { font-weight: 650; }
dd { margin: 0; color: var(--muted); }
.footer { min-height: 84px; font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 44px); }
  .hero, .section-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 480px; aspect-ratio: 1.2; }
  h1 br, h2 br { display: none; }
}
@media (max-width: 430px) {
  .top { flex-wrap: wrap; padding-block: .9rem; gap: .35rem 1rem; }
  .top nav { width: 100%; }
  h1 { font-size: clamp(2.85rem, 12vw, 4rem); }
  .matrix div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
