:root {
  --paper: #f7f6f2;
  --ink: #242622;
  --muted: #656b62;
  --accent: #b44c2c;
  --green: var(--accent);
  --line: #dcded6;
  --white: #fff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #efd4c7; color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(48px, 6vw, 80px); letter-spacing: -2.5px; }
h2 { font-size: 36px; letter-spacing: -1px; }
h3 { font-size: 24px; font-weight: 500; letter-spacing: -.45px; }
main { width: min(1200px, calc(100% - 112px)); margin: auto; }
.topbar { width: min(1200px, calc(100% - 112px)); margin: auto; min-height: 100px; display: flex; align-items: center; gap: 48px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; font-size: 16px; font-weight: 600; letter-spacing: -.3px; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.monogram { display: grid; place-items: center; width: 31px; height: 31px; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.topbar nav { display: flex; gap: 30px; font-size: 13px; }
.topbar a[aria-current] { color: var(--accent); }
.topbar a[aria-current]::after { content: ''; display: block; width: 3px; height: 3px; margin: 5px auto -8px; background: var(--accent); border-radius: 50%; }
.header-github { font-family: var(--mono); font-size: 11px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 26px; }
.header-github span { margin-left: 6px; }
.eyebrow { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; line-height: 1.5; letter-spacing: 1.1px; text-transform: uppercase; }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 9px; background: var(--accent); border-radius: 50%; }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px 20px; background: var(--ink); color: white; z-index: 10; }
.skip:focus { top: 15px; }
.site-footer { display: flex; align-items: center; gap: 38px; margin-top: 50px; padding: 30px 0 40px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-name { margin-right: auto; font-weight: 600; }
.footer-name span { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; font-weight: 400; }
.footer-links { display: flex; gap: 24px; }
.back-top { font-family: var(--mono); font-size: 10px; color: var(--muted); }
/* The diagram uses the same geometry with and without the interactive controls. */
.arm-demo { width: 100%; padding: 23px 26px 17px; border: 1px solid var(--line); background: #f0f1eb; position: relative; }
.arm-demo::before, .arm-demo::after { content: '+'; position: absolute; font: 16px var(--mono); color: #8c9286; line-height: 1; }
.arm-demo::before { top: -9px; left: -5px; }
.arm-demo::after { bottom: -9px; right: -5px; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; }
.demo-number { color: #71776b; font: 9px var(--mono); letter-spacing: 1px; }
.arm-demo h2 { margin-top: 18px; font: 25px var(--serif); letter-spacing: -.5px; }
.demo-intro { margin-top: 7px; color: var(--muted); font-size: 12px; }
.arm-diagram { display: block; width: 100%; height: auto; max-height: 310px; margin: 12px auto; overflow: visible; }
.demo-reach { fill: none; stroke: #c5cbbd; stroke-dasharray: 3 5; }
.demo-axis { stroke: #a1a69c; stroke-width: .8; fill: none; }
.demo-axis-label { fill: #777f6f; font: 10px var(--mono); }
.demo-angle { stroke: var(--accent); stroke-width: 1.1; fill: none; }
.demo-projection { stroke: var(--accent); stroke-width: .75; stroke-dasharray: 3 4; fill: none; opacity: .6; }
.demo-link { stroke-width: 5; stroke-linecap: round; }
.demo-link-first { stroke: var(--ink); }
.demo-link-second { stroke: var(--accent); }
.demo-joint-base { stroke: var(--ink); stroke-width: 2; fill: #f0f1eb; }
.demo-joint-center { fill: var(--ink); }
.demo-joint { stroke: var(--ink); stroke-width: 2; fill: #f0f1eb; }
.demo-tip { fill: var(--accent); }
.demo-tip-halo { fill: var(--accent); opacity: .1; }
.demo-labels { fill: var(--accent); font: 11px var(--mono); }
.demo-view-label { fill: #71776b; font: 8px var(--mono); letter-spacing: 1px; }
.demo-controls { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 15px 20px; padding: 0 2px 20px; }
.demo-controls[hidden] { display: none; }
.demo-controls label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; gap: 8px; }
.control-symbol { color: var(--muted); font: 10px var(--mono); margin-left: 4px; }
.demo-controls output { color: var(--accent); font: 10px var(--mono); min-width: 28px; text-align: right; }
.demo-controls input { margin: 0; width: 100%; appearance: none; background: transparent; cursor: pointer; min-height: 20px; }
.demo-controls input::-webkit-slider-runnable-track { height: 2px; background: #c4c9bc; }
.demo-controls input::-moz-range-track { height: 2px; background: #c4c9bc; }
.demo-controls input::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; margin-top: -5px; background: var(--accent); border: 2px solid #f0f1eb; box-shadow: 0 0 0 1px var(--accent); }
.demo-controls input::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid #f0f1eb; box-shadow: 0 0 0 1px var(--accent); }
.demo-caption { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #d7dccf; padding-top: 13px; font: 9px var(--mono); }
.demo-caption > span { color: var(--muted); }
.demo-caption output { color: var(--ink); margin-left: 5px; }
.demo-caption a { color: var(--accent); }
.demo-units { color: #656c5e; font-size: 9px; margin-top: 8px; }
/* The full biography remains a separate page, with its original section links. */
.hero { padding: 65px 0 55px; border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.resume-link { border: 1px solid var(--line); padding: 8px 13px; font: 11px var(--mono); }
.hero h1 { margin: 32px 0; font-size: clamp(54px, 7vw, 95px); letter-spacing: -3.5px; }
.hero h1 > span { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
.hero-bottom h2 { font-family: Arial, sans-serif; font-size: 28px; line-height: 1.5; letter-spacing: -.5px; }
.hero-company { color: var(--muted); font-size: .65em; letter-spacing: 0; }
.intro { color: var(--muted); font-size: 16px; }
.contact { display: flex; gap: 28px; margin-top: 24px; font-size: 13px; }
.contact a:first-child { color: var(--accent); }
.contact span { margin-left: 6px; }
.work-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 75px; align-items: start; }
.work-layout aside { position: sticky; top: 35px; }
.work-layout aside h2 { margin: 0 0 30px; font-size: 30px; }
.work-layout aside nav { display: grid; gap: 15px; font-size: 12px; }
.work-layout aside nav a { display: flex; gap: 14px; }
.work-layout aside nav span { font: 9px var(--mono); color: var(--muted); padding-top: 3px; }
.company-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.company-heading h2 { font-size: 43px; margin-top: 10px; }
.company-heading button { font-size: 11px; background: none; border: 1px solid var(--line); padding: 8px 12px; color: var(--accent); }
.company-intro { max-width: 720px; margin: 20px 0 18px; color: var(--muted); font-size: 14px; }
.progression { margin: 0 0 34px; font-size: 12px; line-height: 1.9; }
.progression span { color: var(--muted); margin-left: 9px; }
.chapter { border-top: 1px solid var(--line); padding: 28px 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; scroll-margin-top: 30px; }
.chapter-number { color: var(--accent); font: 10px var(--mono); padding-top: 5px; }
.lead { margin-top: 17px; color: var(--muted); font-size: 15px; }
.chapter details { margin-top: 18px; }
.chapter summary { list-style: none; font-size: 12px; color: var(--accent); cursor: pointer; display: flex; align-items: center; gap: 15px; width: fit-content; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary span { font-size: 20px; transition: transform .2s; }
.chapter details[open] summary span { transform: rotate(45deg); }
.chapter ul { padding-left: 18px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.chapter li { padding-left: 6px; margin-bottom: 14px; }
.chapter li::marker { color: var(--accent); }
.mentorship { padding: 16px 0; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 75px; border-top: 1px solid var(--line); padding: 45px 0; margin-top: 60px; }
.section-title h2 { font-size: 30px; margin-top: 12px; }
.career-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 24px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.career-row:last-child { margin: 0; padding-bottom: 0; border: 0; }
.meta { font-size: 11px; color: var(--muted); }
.career-row h3 { font-size: 22px; }
.career-row .role { font-size: 13px; margin: 8px 0 14px; }
.career-row p:not(.role) { font-size: 14px; color: var(--muted); margin-top: 12px; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
.education-item h3 { margin: 9px 0; font-size: 21px; }
.education-item > p { font-size: 13px; }
.education-item .meta { font-size: 11px; }
.badge { border: 1px solid var(--line); padding: 2px 5px; font-size: 9px; margin-left: 4px; }
.skills { display: flex; flex-wrap: wrap; list-style: none; gap: 9px; padding: 0; margin: 0; }
.skills li { padding: 6px 12px; border: 1px solid var(--line); font-size: 12px; }
.prose { color: var(--muted); font-size: 15px; max-width: 720px; }
.prose p { margin-bottom: 22px; }
.notes-link { display: inline-block; color: var(--accent); font-size: 13px; margin-top: 5px; }
.notes-header { padding: 65px 0 40px; border-bottom: 1px solid var(--line); }
.notes-header h1 { font-size: clamp(52px, 7vw, 80px); margin: 18px 0; }
.notes-header > p:last-child { color: var(--muted); font-size: 16px; }
.notes-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 75px; padding: 45px 0 45px; align-items: start; }
.notes-nav { position: sticky; top: 35px; display: grid; gap: 16px; font-size: 12px; }
.notes-nav .profile-link { margin-top: 15px; color: var(--accent); font-size: 11px; }
.note { max-width: 720px; scroll-margin-top: 35px; }
.note + .note { margin-top: 45px; padding-top: 45px; border-top: 1px solid var(--line); }
.note h2 { font-size: 33px; margin-bottom: 24px; }
.note p { margin-bottom: 20px; color: var(--ink); font-size: 17px; line-height: 1.8; }
.note .principles { margin: 4px 0 0; padding-left: 26px; }
.note .principles li { padding-left: 8px; margin-bottom: 18px; font-size: 17px; line-height: 1.8; }
.note .principles li::marker { color: var(--accent); font-weight: 600; }
.note .principles strong { font-weight: 600; }
@media (min-width: 1440px) { .topbar, main { width: min(1200px, calc(100% - 160px)); } }
@media (max-width: 1000px) {
  .topbar, main { width: calc(100% - 72px); }
  .topbar { gap: 30px; }
  .work-layout, .section, .notes-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
  .hero-bottom { gap: 40px; }
}
@media (max-width: 700px) {
  .topbar, main { width: calc(100% - 40px); }
  .topbar { min-height: 80px; gap: 18px; flex-wrap: wrap; padding: 20px 0; }
  .wordmark { font-size: 13px; gap: 9px; }
  .monogram { width: 27px; height: 27px; font-size: 17px; }
  .topbar nav { gap: 18px; font-size: 12px; }
  .header-github { display: none; }
  .site-footer { flex-wrap: wrap; margin-top: 30px; padding: 25px 0; gap: 24px; }
  .footer-name { flex-basis: 100%; }
  .footer-links { gap: 21px; }
  .back-top { margin-left: auto; }
  .arm-demo { padding: 20px; }
  .arm-demo h2 { font-size: 24px; }
  .demo-caption { flex-wrap: wrap; font-size: 9px; }
  .hero, .notes-header { padding: 35px 0; }
  .hero { margin-bottom: 35px; }
  .hero h1 { font-size: clamp(43px, 10vw, 66px); letter-spacing: -2px; }
  .hero-bottom, .work-layout, .section, .notes-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-bottom h2 { font-size: 25px; }
  .work-layout aside, .notes-nav { position: static; }
  .work-layout aside nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .company-heading h2 { font-size: 36px; }
  .section { margin-top: 35px; padding: 30px 0; }
  .section-title h2 { margin-top: 0; }
  .career-row { grid-template-columns: 1fr; gap: 12px; }
  .education-grid { grid-template-columns: 1fr; gap: 28px; }
  .notes-layout { padding-top: 25px; }
  .notes-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .notes-nav .profile-link { flex-basis: 100%; margin-top: 0; }
  .note h2 { font-size: 29px; }
  .note p, .note .principles li { font-size: 16px; }
  .chapter { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 360px) { .topbar { gap: 15px; } .topbar nav { width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  body { background: white; font-size: 10pt; }
  main { width: 100%; }
  .topbar, .work-layout aside, .contact, button, summary, .site-footer, .skip, .notes-nav, .notes-link { display: none !important; }
  .hero { padding: 0 0 20px; margin-bottom: 20px; }
  .hero h1 { font-size: 40pt; margin: 15px 0; letter-spacing: -2px; }
  .hero-bottom, .work-layout, .section, .notes-layout { display: block; }
  .hero-bottom h2 { font-size: 18pt; margin-bottom: 10px; }
  .intro, .lead, .chapter ul, .prose, .note p, .note .principles li { font-size: 10pt; }
  .chapter { padding: 16px 0; }
  details::details-content { content-visibility: visible; }
  .section { margin-top: 25px; padding: 20px 0; }
  .section-title { margin-bottom: 20px; }
  h2, h3 { break-after: avoid; }
  .education-item, .career-row { break-inside: avoid; }
  .education-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .mentorship { font-size: 9pt; }
  .notes-header { padding: 0 0 20px; }
  .notes-header h1 { font-size: 36pt; }
  .notes-layout { padding: 20px 0; }
  .note h2 { font-size: 20pt; }
  .note + .note { margin-top: 20px; padding-top: 20px; }
}
