:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #1f2933;
  --muted: #5c6971;
  --line: #cbd4d1;
  --accent: #155149;
  --soft: #f1f4f1;
  --focus: #b76c00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14201f;
    --ink: #edf3f0;
    --muted: #c1cec9;
    --line: #3a4b48;
    --accent: #a5e1d7;
    --soft: #1d2b29;
    --focus: #ffd05f;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { max-width: none; margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrapper { width: min(100% - 2rem, 760px); margin: 0 auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 1; padding: .5rem .75rem; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; flex-wrap: wrap; gap: .85rem 1.25rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
nav { display: flex; flex: 1 1 360px; flex-wrap: wrap; gap: .35rem 1rem; }
nav a, .enhanced-link { font-size: .9rem; }
.enhanced-link { margin-left: auto; white-space: nowrap; }

main { padding-bottom: 3rem; }
section { padding: 3.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.hero { padding-top: 5.5rem; }
.eyebrow, .date { margin: 0 0 .7rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 800; letter-spacing: .05em; line-height: 1.4; text-transform: uppercase; }
.hero-identity { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.hero-identity .eyebrow { margin: 0; }
.hero-headshot { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 12%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { max-width: 22ch; font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { margin-bottom: 1.2rem; font-size: clamp(2.5rem, 8vw, 4.4rem); letter-spacing: -.04em; }
h2 { margin-bottom: 1.2rem; font-size: clamp(1.8rem, 5vw, 2.55rem); letter-spacing: -.025em; }
h3 { margin-bottom: .65rem; font-size: 1.08rem; line-height: 1.4; }
p, li, dd { max-width: 68ch; }
section > p:not(.eyebrow), article > p { color: var(--muted); }
.hero > p:not(.eyebrow) { max-width: 62ch; font-size: 1.12rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin: 1.75rem 0 0; font-weight: 700; }
.resume-hero { padding-bottom: 3.5rem; }
.resume-title { margin-bottom: .45rem; color: var(--accent); font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 750; }
.resume-contact { color: var(--muted); font-size: .95rem; }

dl { margin: 2rem 0 0; }
dt { margin-bottom: .35rem; color: var(--ink); font-weight: 800; }
dd { margin: 0; color: var(--muted); }
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.strengths div { padding: 1.1rem; background: var(--soft); }
.skill-list, .background-list { display: grid; gap: 1.1rem; }
.skill-list div, .background-list div { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.recommendation { max-width: 68ch; margin-top: 2rem; padding: 1.35rem; border-top: 3px solid var(--accent); background: var(--soft); }
.recommendation h3 { margin-bottom: .3rem; color: var(--ink); }
.recommendation p { margin-bottom: .65rem; color: var(--muted); }
.recommendation p:last-child { margin: 0; font-weight: 800; }

article { padding: 1.8rem 0; border-top: 1px solid var(--line); }
article + article { margin-top: .4rem; }
article header { margin-bottom: 1rem; }
ul { max-width: 68ch; margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
li + li { margin-top: .6rem; }
.contact { padding: 3rem 1.5rem; border: 0; background: var(--soft); }
.contact > p:last-child { margin: 1.5rem 0 0; font-weight: 800; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.5rem 0 2rem; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 600px) {
  .site-header { align-items: flex-start; }
  nav { order: 3; flex-basis: 100%; }
  .enhanced-link { margin-left: auto; }
  .strengths { grid-template-columns: 1fr; }
  section { padding: 2.75rem 0; }
  .hero { padding-top: 4rem; }
}

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