:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #20231f;
  --muted: #66685f;
  --line: #cbc7ba;
  --accent: #315c4c;
  --accent-soft: #dce7df;
  --measure: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.13em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link {
  background: var(--ink);
  color: white;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.site-header, main, .site-footer { margin-inline: auto; max-width: var(--measure); padding-inline: 1.4rem; }
.site-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-block: 1.2rem; }
.wordmark { color: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.92rem; font-weight: 750; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.nav-toggle { background: transparent; border: 1px solid var(--line); color: var(--ink); display: none; font: inherit; padding: 0.35rem 0.6rem; }
.site-nav { display: flex; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9rem; gap: 1.2rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

main { min-height: 70vh; padding-block: clamp(3rem, 8vw, 7rem); }
.hero { max-width: 54rem; }
.eyebrow { color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 6.8rem); font-weight: 500; letter-spacing: -0.045em; margin: 0.3rem 0 1.2rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 500; margin-top: 0; }
h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1rem; letter-spacing: 0.01em; }
.lede { color: #3d403a; font-size: clamp(1.3rem, 2.4vw, 1.75rem); max-width: 46rem; }
.section { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 7rem); padding-top: 2rem; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border-left: 3px solid var(--accent); padding: 0.15rem 0 0.15rem 1.1rem; }
.card p, .muted { color: var(--muted); }
.action { display: inline-block; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.92rem; font-weight: 700; margin-top: 1rem; }
.article-list { list-style: none; margin: 2rem 0; padding: 0; }
.article-list li { border-top: 1px solid var(--line); padding-block: 1.2rem; }
.article-list h2 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.article-meta { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.82rem; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.prose h2 { margin-top: 2.5rem; }
.prose pre { overflow-x: auto; }
.prose img { height: auto; max-width: 100%; }
.cv-section { display: grid; gap: 1rem; grid-template-columns: minmax(10rem, 1fr) 3fr; margin-top: 3rem; }
.cv-section h2 { font-size: 1.25rem; }
.launch-note { background: var(--accent-soft); border: 1px solid #adc2b5; padding: 1rem 1.2rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.78rem; justify-content: space-between; padding-block: 1.5rem 2.5rem; }

@media (max-width: 42rem) {
  .grid, .cv-section { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { background: var(--paper); border: 1px solid var(--line); display: none; flex-direction: column; padding: 1rem; position: absolute; right: 1.4rem; top: 4rem; }
  .site-nav[data-open="true"] { display: flex; }
}

@media print {
  body { background: white; color: black; font-size: 10.5pt; }
  .site-header, .site-footer, .launch-note { display: none; }
  main { max-width: none; padding: 0; }
  a { color: black; text-decoration: none; }
  .cv-section { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
