:root {
  color-scheme: dark;
  --background: #232136;
  --text: #F8F9FA;
  --muted: #ceccdb;
  --line: #44415a;
  --accent: #c4a7e7;
  --rose: #eb6f92;
  --green: #9ccfd8;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #fafafa;
  --text: #18181b;
  --muted: #595960;
  --line: #e4e4e7;
  --accent: #d97706;
  --rose: #e11d48;
  --green: #059669;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--serif); -webkit-font-smoothing: antialiased; line-height: 1.75; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { color: var(--accent); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.page { width: min(100% - 48px, 680px); margin: 0 auto; padding: 44px 0; }
.eyebrow { margin: 0; font: 10px/1.7 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
h1, h2, h3 { color: var(--text); }
[data-theme="dark"] h2.eyebrow { color: #FAFBFC; }
.location { margin-bottom: 19px; }
h1 { font-size: clamp(38px, 7vw, 49px); font-weight: 400; letter-spacing: -.045em; line-height: 1.2; margin: 0 0 17px; }
.period { color: var(--accent); }
.specialties { font: 11px/1.9 var(--mono); color: var(--muted); margin: 0; }
.specialties span { color: var(--accent); margin: 0 5px; }
.social-links { display: flex; gap: 26px; margin-top: 26px; font: 11px/1.8 var(--mono); }
.social-links a { padding: 5px 0; }
.intro { margin-bottom: 65px; }
.about, .experience { padding-bottom: 41px; }
.statement { font-size: 25px; font-weight: 400; line-height: 1.5; letter-spacing: -.02em; margin: 20px 0 13px; }
.about > p:not(.statement) { font-size: 16px; color: var(--muted); margin: 0; max-width: 610px; }
.company-accent { color: var(--rose); }
.about > .interests { margin-top: 17px !important; font-size: 14px !important; }
.interests span { color: var(--text); }
.section-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-aside { font-size: 9px; letter-spacing: .02em; text-transform: none; }
.role { padding: 23px 0 25px; }
.role-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.role-heading-current { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.role-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
h3 { margin: 0; font-weight: 400; font-size: 18px; line-height: 1.5; }
.date { flex-shrink: 0; font: 10px/1.8 var(--mono); color: var(--muted); }
.organization { font: 11px/1.8 var(--mono); color: var(--muted); margin: 6px 0 0; }
.position { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 4px 0 0; }
.current { color: var(--green); font: 10px/1.8 var(--mono); }
.status-dot { display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-right: 7px; vertical-align: 2px; }
.role-description { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 590px; margin: 11px 0 0; }
.role-highlights { padding-left: 20px; font-size: 16px; line-height: 1.85; }
.role-highlights li + li { margin-top: 12px; }
.experience, .education { border-top: 1px solid var(--line); padding-top: 29px; }
.experience .role:last-child { padding-bottom: 0; }
.about h2, .education h2 { margin-bottom: 21px; }
.theme-toggle { position: absolute; top: 31px; right: max(25px, calc((100vw - 900px) / 2)); display: flex; align-items: center; justify-content: center; width: 72px; height: 64px; padding: 12px; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
@media (max-width: 520px) {
  .intro { margin-bottom: 48px; }
  .specialties { max-width: 280px; }
  .section-aside { display: none; }
  .role-heading { flex-direction: column; gap: 4px; }
  .date { font-size: 10px; }
  .role { padding: 22px 0; }
  .about, .experience { padding-bottom: 38px; }
  .theme-toggle { right: 16px; top: 22px; }
  .statement { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
