/* EB Garamond, SIL Open Font License (see fonts/OFL.txt). Self-hosted: no third-party requests. */
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --wash: #f1efe7;
  --ink: #181e1a;
  --muted: #565e58;
  --line: #dad7cb;
  --green: #1f3d30;
  --serif: "EB Garamond", Garamond, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.1875rem/1.55 var(--serif); text-rendering: optimizeLegibility; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
p + p { margin-top: .8rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.wrap { width: min(1040px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 2; padding: .6rem 1rem; background: var(--green); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; color: var(--paper); }

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--ink); }
.brand { font-size: 1.4rem; font-weight: 500; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .45em; }
.nav a[aria-current="page"] { color: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: end; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(3.4rem, 8.4vw, 6.6rem); font-weight: 400; line-height: .96; letter-spacing: -.018em; }
.hero.has-portrait { align-items: center; }
.lead { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; }
.hero .lead { margin-top: 2rem; max-width: 34rem; }
.availability { max-width: 34rem; margin-top: 1rem; color: var(--green); font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .5rem 1.5rem; border: 1px solid var(--green); background: var(--green); color: var(--paper); font-weight: 500; text-decoration: none; }
.button:hover { background: #12271e; color: var(--paper); }
.button.quiet { background: transparent; color: var(--green); }
.button.quiet:hover { background: var(--wash); color: var(--green); }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }

.facts { border-top: 1px solid var(--ink); }
.facts > div { padding-block: .75rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 1rem; font-style: italic; }
.facts dd { line-height: 1.35; }
.facts.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; margin-bottom: 3.5rem; }

.section { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem 3.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.section-head h2 { font-size: 1.9rem; }
.section-head .text-link { display: inline-flex; align-items: center; min-height: 32px; color: var(--green); font-size: 1.05rem; }
.text-link { text-decoration: underline; }

.entry + .entry { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; }
.entry h3, .feature h3 { font-size: 1.6rem; }
.entry h3 a, .feature h3 a { text-decoration-color: #9fb0a5; }
.when { flex: none; margin: 0; color: var(--muted); font-style: italic; }
.entry .org { margin-top: .2rem; color: var(--muted); }
.entry-head ~ p:not(.org), .entry .org + p { margin-top: .65rem; max-width: 40rem; }
.entry .detail { color: var(--muted); }
.entry ul { max-width: 40rem; margin-top: .75rem; padding-left: 1.1rem; }
.entry li + li { margin-top: .3rem; }
.entry li::marker { color: var(--green); }

.feature-art { margin-bottom: 1.5rem; background: var(--wash); }
.feature-art img { aspect-ratio: 16 / 7; object-fit: cover; object-position: center 38%; }

.skills > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: .85rem; border-top: 1px solid var(--line); }
.skills > div:first-child { padding-top: 0; border-top: 0; }
.skills dt { color: var(--muted); font-style: italic; }

.email { font-size: clamp(1.4rem, 4vw, 2.5rem); line-height: 1.25; overflow-wrap: anywhere; }
.section-body > p + .email, .contact > p + .email { margin-top: .75rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; padding: 0; list-style: none; }

.page-head { max-width: 52rem; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); font-weight: 400; line-height: 1.02; letter-spacing: -.012em; }
.page-head .lead { max-width: 40rem; margin-top: 1.25rem; }
.page-head .context { margin-top: 1rem; color: var(--muted); font-style: italic; }
.cv-actions { margin: 0 0 3rem; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem 5rem; align-items: start; padding-top: 3rem; border-top: 1px solid var(--line); }
.prose { max-width: 40rem; font-size: 1.28rem; line-height: 1.65; }
.prose p + p { margin-top: 1.2rem; }
.prose h2, .prose h3 { margin-block: 1.6em .6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .6rem; }
.prose blockquote { margin-inline: 0; padding-left: 1.3rem; border-left: 2px solid var(--line); }
article.prose { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.page-head + .prose { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.back { margin-top: 2.5rem; }
.contact { padding-top: 2.5rem; border-top: 1px solid var(--line); }

.project-image { margin-bottom: 1rem; }
.project-image img { max-height: 400px; object-fit: cover; object-position: center 40%; }
figcaption { padding-top: .5rem; color: var(--muted); font-size: .95rem; font-style: italic; }

.listing { padding: 0; list-style: none; }
.listing li + li { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.listing h3 { font-size: 1.5rem; }
.listing p { margin-top: .35rem; }
.listing .context { color: var(--muted); font-style: italic; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2rem; padding-block: 1.75rem 2.5rem; border-top: 1px solid var(--ink); color: var(--muted); font-size: 1.05rem; }
.site-footer p { margin: 0; overflow-wrap: anywhere; }
.page + .site-footer { margin-top: 5rem; }
.home + .site-footer { margin-top: 0; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 56px); }
  .hero, .about { grid-template-columns: minmax(0, 1fr); }
  .hero .portrait, .about .portrait { order: -1; width: min(64%, 17rem); }
  .section { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
  .facts.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 1rem .35rem; }
  .nav { width: 100%; justify-content: space-between; gap: 0 .75rem; }
  .entry-head { flex-direction: column; }
  .entry h3, .feature h3 { font-size: 1.45rem; }
  .actions .button { flex: 1 1 10rem; }
  .facts.strip, .skills > div { grid-template-columns: minmax(0, 1fr); }
  .skills > div { gap: .15rem; }
  .feature-art img { aspect-ratio: 4 / 3; }
}
@media print {
  .site-header, .site-footer, .actions, .skip { display: none; }
  .wrap { width: 100%; }
  body { background: white; font-size: 11pt; }
}
