:root {
  color-scheme: light;
  --background: #fafaf8;
  --surface: #fff;
  --text: #171717;
  --muted: #595e66;
  --accent: #2457c5;
  --accent-hover: #173e91;
  --border: #deded8;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #dce6ff; color: var(--text); }
a { color: var(--accent); text-underline-offset: 0.2em; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; font-weight: 650; }
h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
.site-shell { max-width: 1120px; margin-inline: auto; padding-inline: 40px; }

.skip-link { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 10px 16px; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { min-height: 110px; border-bottom: 1px solid var(--border); }
.wordmark { color: var(--text); font-size: 20px; font-weight: 650; letter-spacing: -0.04em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 64px; padding-block: 100px 104px; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0.065em; }
.hero h1 { margin-bottom: 24px; }
.intro { max-width: 650px; font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.5; letter-spacing: -0.015em; }
.hero-detail { max-width: 600px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.headshot { display: block; width: 200px; height: 200px; border-radius: 50%; background: #eaeae5; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; font-size: 15px; font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: 24px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.text-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.text-link:hover, .project-links a:hover { text-decoration: underline; }

.work-section { padding-bottom: 88px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.project h3 { margin-bottom: 18px; }
.project > p { font-size: 16px; line-height: 1.7; }
.project > p.project-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.project strong { font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: auto; padding-top: 24px; }
.project-links a { font-size: 14px; font-weight: 600; text-decoration: none; }

.about-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 80px; padding-block: 72px 80px; border-top: 1px solid var(--border); }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p { margin-bottom: 18px; color: var(--muted); font-size: 17px; }
.about-copy .text-link { display: inline-block; margin-top: 8px; }
.skills { align-self: center; margin: 0; }
.skills div + div { margin-top: 24px; }
.skills dt { margin-bottom: 5px; font-size: 14px; font-weight: 650; }
.skills dd { margin: 0; color: var(--muted); font-size: 16px; }

.contact-section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-block: 60px; border-top: 1px solid var(--border); }
.contact-email { font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 550; overflow-wrap: anywhere; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--border); }
.site-footer p { color: var(--muted); font-size: 13px; }
.site-footer nav { gap: 24px; }
.site-footer a { font-size: 13px; }

@media (max-width: 800px) {
  .site-shell { padding-inline: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) 144px; gap: 32px; padding-block: 72px 80px; }
  .headshot { width: 144px; height: 144px; }
  .project { padding: 26px; }
  .about-section { gap: 40px; }
}

@media (max-width: 600px) {
  .site-shell { padding-inline: 22px; }
  .site-header { min-height: 0; padding-block: 22px; align-items: flex-start; flex-direction: column; gap: 14px; }
  nav { gap: 24px; }
  .hero { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 28px; padding-block: 44px 64px; }
  .headshot { width: 104px; height: 104px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-links { gap: 24px; }
  .section-heading { margin-bottom: 24px; gap: 8px; }
  .project-grid, .about-section { grid-template-columns: minmax(0, 1fr); }
  .project-grid { gap: 18px; }
  .project { padding: 26px; }
  .work-section { padding-bottom: 56px; }
  .about-section { padding-block: 48px 56px; gap: 36px; }
  .contact-section { padding-block: 44px; gap: 24px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
