/* A quiet, editorial layout. System fonts keep every page self-contained. */
:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #242824;
  --muted: #62665f;
  --rule: #dedfd6;
  --blue: #315ad7;
  --surface: #fff;
  --selection: #dce4ff;
  --on-blue: #fff;
  --badge-ink: #355843;
  --badge-bg: #e8ede4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #191c1a; --ink: #eaece5; --muted: #acb1a6; --rule: #373d37;
    --blue: #91aaff; --surface: #222622; --selection: #334466; --on-blue: #191c1a;
    --badge-ink: #bed4b5; --badge-bg: #2c3a2d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191c1a; --ink: #eaece5; --muted: #acb1a6; --rule: #373d37;
  --blue: #91aaff; --surface: #222622; --selection: #334466; --on-blue: #191c1a;
  --badge-ink: #bed4b5; --badge-bg: #2c3a2d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: var(--selection); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { color: var(--blue); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 2px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 20px; }
.skip-link:focus { top: 12px; color: var(--paper); }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 110px; border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -2px; }
.wordmark span { color: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 500; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; }
.site-header nav [aria-current] { color: var(--blue); }
.nav-contact { margin-left: 12px; }
.nav-contact span { margin-left: 10px; }
.theme-picker { position: relative; }
.theme-picker > summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 50%; list-style: none; cursor: pointer; }
.theme-picker > summary::-webkit-details-marker { display: none; }
.theme-picker > summary:hover, .theme-picker[open] > summary { background: var(--surface); border-color: var(--rule); }
.theme-icon { display: none; }
.theme-picker[data-mode="system"] .icon-system, .theme-picker[data-mode="light"] .icon-light, .theme-picker[data-mode="dark"] .icon-dark { display: block; }
.theme-options { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 145px; padding: 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 8px 24px #00000012; }
.theme-options button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 12px; font-size: 13px; color: var(--ink); background: transparent; border: 0; border-radius: 3px; }
.theme-options button:hover { background: var(--paper); }
.theme-options button[aria-pressed="true"] { color: var(--blue); }
.theme-options button span { visibility: hidden; }
.theme-options button[aria-pressed="true"] span { visibility: visible; }
.hero { display: grid; grid-template-columns: 1fr 260px; gap: 70px; padding: 87px 0 84px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.75px; line-height: 1.5; text-transform: uppercase; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.blue-dot { display: inline-block; width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.hero h1 { font-family: var(--serif); font-size: clamp(82px, 8.7vw, 116px); font-weight: 400; letter-spacing: -6.5px; line-height: 1.08; margin: 22px 0 25px -5px; }
.name-period { color: var(--blue); }
.hero-statement { font-size: 30px; font-weight: 400; line-height: 1.38; letter-spacing: -.65px; }
.hero-description { max-width: 455px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 13px 20px; font-size: 13px; font-weight: 500; line-height: 1.5; border: 1px solid transparent; border-radius: 3px; transition: background-color .18s, border-color .18s; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--blue); color: var(--on-blue); }
.button-outline { border-color: var(--rule); background: transparent; }
.button-outline:hover { border-color: var(--blue); color: var(--blue); }
.text-link { font-size: 13px; font-weight: 500; }
.text-link span { display: inline-block; margin-left: 7px; }
.text-link:hover { text-decoration: underline; }
.hero-note { padding-top: 0; }
.portrait { width: 196px; height: 196px; display: grid; place-items: center; margin: 0 0 27px 5px; }
.portrait img { display: block; width: 156px; height: 156px; border: 1px solid var(--rule); padding: 6px; border-radius: 50%; object-fit: cover; object-position: 35% 45%; }
.note-body { padding-left: 24px; border-left: 1px solid var(--rule); }
.note-body .eyebrow { color: var(--muted); font-size: 10px; }
.note-title { font-size: 22px; line-height: 1.4; letter-spacing: -.3px; margin-top: 12px; }
.note-title span { color: var(--muted); }
.note-detail { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 16px; }
.location { display: flex; align-items: center; gap: 7px; margin-top: 25px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.section { border-top: 1px solid var(--rule); padding-top: 31px; }
.section h2 { font-size: 15px; font-weight: 500; letter-spacing: -.15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-aside { font-size: 11px; color: var(--muted); }
.experience-row { display: grid; grid-template-columns: 245px 1fr 24px; gap: 28px; padding: 29px 0; border-bottom: 1px solid var(--rule); }
.experience-meta { display: flex; flex-direction: column; gap: 5px; }
.job-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-role { font-size: 12px; }
.experience-body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -.4px; }
.current-label { color: var(--badge-ink); background: var(--badge-bg); border-radius: 3px; padding: 3px 7px; font-size: 9px; font-weight: 500; letter-spacing: .2px; }
.experience-body > p { font-size: 14px; color: var(--muted); margin-top: 9px; max-width: 525px; }
.experience-body .experience-detail { color: var(--ink); font-size: 11px; margin-top: 12px; }
.row-index { font-size: 10px; color: var(--muted); padding-top: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.experience-more { display: inline-block; margin: 23px 0 58px 273px; }
.about { display: grid; grid-template-columns: 245px 1fr; gap: 28px; padding-top: 34px; padding-bottom: 62px; }
.about-content { max-width: 635px; }
.about-content p { font-size: 16px; line-height: 1.85; }
.about-content p + p { margin-top: 15px; color: var(--muted); }
.about-content .text-link { display: inline-block; margin-top: 22px; color: var(--blue); }
.contact { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; border-top: 1px solid var(--rule); padding: 52px 0 63px; }
.contact .eyebrow { color: var(--muted); }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: 43px; letter-spacing: -1.5px; line-height: 1.2; margin-top: 18px; }
.contact h2 span { color: var(--blue); }
.contact-links { display: flex; flex-direction: column; gap: 13px; padding-bottom: 7px; align-items: flex-start; }
.email-link { font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.email-link:hover { border-color: var(--blue); }
.email-link span { margin-left: 10px; }
.contact-links .text-link { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-top: 1px solid var(--rule); padding-block: 25px 32px; font-size: 10px; color: var(--muted); }
.footer-dot { margin-inline: 8px; }
.site-footer > div { display: flex; gap: 23px; }
.site-footer a { padding-block: 7px; }
.site-footer a span { margin-left: 4px; }

/* The resume uses the same type and colors, with a denser reading rhythm. */
.resume-main { max-width: 920px; }
.resume-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 35px 0; }
.resume-sheet { padding: 55px 64px 60px; background: var(--surface); border: 1px solid var(--rule); margin-bottom: 65px; }
.resume-header h1 { font-family: var(--serif); font-size: 64px; line-height: 1.2; font-weight: 400; letter-spacing: -3px; margin-top: 8px; }
.resume-header h1 span { color: var(--blue); }
.resume-header .eyebrow { color: var(--muted); }
.resume-title { font-size: 17px; margin-top: 7px; }
.resume-location { color: var(--muted); font-size: 13px; margin-top: 4px; }
.resume-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 12px; }
.resume-links a { text-decoration: underline; }
.print-website { display: none; }
.resume-summary { color: var(--muted); font-size: 14px; line-height: 1.8; border-top: 1px solid var(--rule); padding-top: 23px; margin: 25px 0 32px; }
.resume-section + .resume-section { margin-top: 32px; }
.resume-section > h2 { font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.6px; border-bottom: 1px solid var(--rule); padding-bottom: 9px; margin-bottom: 21px; }
.resume-job + .resume-job { margin-top: 23px; }
.resume-job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.resume-job h3, .education-grid h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.resume-company { font-size: 12px; margin-top: 4px; color: var(--muted); }
.resume-company span { margin-inline: 5px; color: var(--muted); }
.resume-company a { text-decoration: underline; }
.resume-job ul { font-size: 13px; line-height: 1.7; margin: 9px 0 0; padding-left: 17px; }
.resume-job li + li { margin-top: 4px; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.education-grid p { font-size: 12px; margin-top: 5px; }
.education-grid .education-date { color: var(--muted); font-size: 11px; }
.skills-section > p { display: grid; grid-template-columns: 130px 1fr; gap: 15px; font-size: 12px; line-height: 1.8; }
.skills-section > p + p { margin-top: 6px; }
.skills-section strong { font-weight: 500; }
.skills-section span { color: var(--muted); }
.not-found { min-height: 65vh; padding-block: 90px; }
.not-found h1 { font: 400 64px / 1.2 var(--serif); letter-spacing: -2px; margin: 20px 0; }
.not-found h1 span { color: var(--blue); }
.not-found > p:not(.eyebrow) { color: var(--muted); }

@media (min-width: 1500px) { .hero { padding-block: 105px; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 220px; gap: 40px; }
  .hero-statement { font-size: 27px; }
  .experience-row { grid-template-columns: 195px 1fr 20px; gap: 22px; }
  .experience-more { margin-left: 217px; }
  .about { grid-template-columns: 195px 1fr; gap: 22px; }
  .contact h2 { font-size: 37px; }
  .resume-sheet { padding: 45px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 85px; }
  .site-header nav { gap: 22px; font-size: 12px; }
  .site-header nav .nav-github { display: none; }
  .site-header nav .nav-contact { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 50px 0 48px; }
  .hero h1 { font-size: 88px; margin-top: 20px; margin-left: -3px; letter-spacing: -5px; }
  .hero-statement { font-size: 27px; }
  .hero-description { font-size: 15px; max-width: 440px; }
  .hero-actions { gap: 20px; }
  .hero-actions .button { padding: 12px 16px; gap: 18px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-note { border-top: 1px solid var(--rule); padding-top: 23px; display: flex; align-items: center; gap: 24px; }
  .portrait { flex-shrink: 0; width: 96px; height: 96px; margin: 0; }
  .portrait img { width: 84px; height: 84px; padding: 4px; }
  .note-body { border: 0; padding: 0; }
  .note-title { font-size: 18px; margin-top: 5px; }
  .note-title br { display: none; }
  .note-title span { margin-left: 5px; }
  .note-detail { display: none; }
  .location { margin-top: 9px; }
  .experience-row { grid-template-columns: 1fr; gap: 12px; padding: 25px 0; position: relative; }
  .experience-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding-right: 25px; }
  .job-role, .job-date { font-size: 11px; }
  .row-index { position: absolute; right: 0; top: 23px; }
  .experience-body h3 { font-size: 20px; }
  .experience-more { margin: 23px 0 40px; }
  .about { grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
  .about-content p { font-size: 15px; }
  .contact { flex-direction: column; align-items: flex-start; padding: 38px 0 40px; gap: 27px; }
  .contact h2 { font-size: 38px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; }
  .site-footer > div { gap: 24px; }
  .resume-main { width: calc(100% - 32px); }
  .resume-toolbar { margin: 25px 8px; gap: 12px; }
  .resume-toolbar .button { padding: 10px 12px; gap: 10px; font-size: 11px; }
  .resume-toolbar .text-link { font-size: 11px; }
  .resume-sheet { padding: 32px 24px; margin-bottom: 36px; }
  .resume-header h1 { font-size: 54px; }
  .resume-title { font-size: 15px; }
  .resume-links { gap: 10px 20px; }
  .resume-job-top { flex-direction: column; gap: 5px; }
  .education-grid { grid-template-columns: 1fr; gap: 20px; }
  .skills-section > p { display: flex; flex-direction: column; gap: 2px; }
  .skills-section > p + p { margin-top: 10px; }
  .not-found h1 { font-size: 48px; }
}
@media (max-width: 380px) {
  .site-header nav { gap: 14px; }
  .hero h1 { font-size: 78px; }
  .hero-statement { font-size: 24px; }
  .hero-actions { gap: 20px; }
  .hero-actions .button { padding-inline: 14px; gap: 14px; }
  .section-aside { font-size: 9px; }
  .section h2 { font-size: 14px; }
  .contact h2 { font-size: 33px; }
  .site-footer > div { gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@page { size: letter; margin: 0.45in 0.55in; }
@media print {
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    color-scheme: light;
    --paper: #fff; --surface: #fff; --ink: #111; --muted: #444; --rule: #ccc; --blue: #315ad7;
  }
  html, body { background: white; color: black; font-size: 10pt; }
  .site-header, .site-footer, .resume-toolbar, .skip-link { display: none !important; }
  .resume-main { width: 100%; max-width: none; margin: 0; }
  .resume-sheet { margin: 0; padding: 0; border: 0; }
  .resume-header > .eyebrow { display: none; }
  .resume-header h1 { font-family: var(--sans); font-size: 25pt; font-weight: 650; letter-spacing: -1px; margin: 0; }
  .resume-header h1 span { display: none; }
  .resume-title { font-size: 10pt; margin-top: 3px; }
  .resume-location { font-size: 9pt; margin-top: 1px; }
  .resume-links { margin-top: 7px; font-size: 9pt; gap: 16px; }
  .resume-links a { text-decoration: none; }
  .print-website { display: inline; }
  .resume-summary { font-size: 9.5pt; line-height: 1.4; margin: 12px 0 14px; padding-top: 10px; }
  .resume-section + .resume-section { margin-top: 15px; }
  .resume-section > h2 { font-size: 8pt; padding-bottom: 5px; margin-bottom: 10px; }
  .resume-job { break-inside: avoid; }
  .resume-job + .resume-job { margin-top: 12px; }
  .resume-job-top { flex-direction: row; gap: 15px; }
  .resume-job h3, .education-grid h3 { font-size: 10pt; }
  .resume-company { font-size: 9pt; margin-top: 2px; }
  .resume-job .job-date { font-size: 9pt; }
  .resume-job ul { font-size: 9.5pt; line-height: 1.4; margin-top: 5px; padding-left: 15px; }
  .resume-job li + li { margin-top: 2px; }
  .education-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .education-grid p { font-size: 9pt; margin-top: 2px; }
  .education-grid .education-date { font-size: 8pt; }
  .skills-section > p { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 9pt; }
  .skills-section > p + p { margin-top: 3px; }
  .resume-section h2 { break-after: avoid; }
  a { color: inherit !important; }
}
