/* Human pass — loaded last. Same layout; swaps the "tasteful template" look
   (cream + sage, DM Sans + italic serif accent, pills, mono caps labels, soft shadows)
   for something closer to a researcher's own notebook: one text serif, ink-blue links,
   hairline rules, square corners. Delete this file's <link> to get the old look back. */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/SourceSerif4-Variable.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400 700;font-display:swap;src:url(../fonts/SourceSerif4-Italic-Variable.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/IBMPlexMono-Regular.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/IBMPlexMono-Medium.woff2) format('woff2')}
:root{
  --paper:#ffffff;--surface:#ffffff;--ink:#161616;--muted:#56565a;--line:#e7e7e4;--line-strong:#c2c2bd;
  --accent:#9b2226;--accent-strong:#6f1418;--soft:#f6f6f4;--tint:#f7e6e4;--mark:#9b2226;
  --block:#181816;--block-ink:#f3f1ea;--block-muted:#a9a69c;--block-line:#33322e;--block-accent:#ec9a92;
  --shadow:none;
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:'Source Serif 4',Georgia,serif;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#141413;--surface:#141413;--ink:#ebe8e0;--muted:#a8a49a;--line:#2b2a27;--line-strong:#4a4842;
    --accent:#ec9a92;--accent-strong:#f5bdb6;--soft:#1c1b19;--tint:#3a2322;--mark:#ec9a92;
    --block:#1c1b19;--block-ink:#ebe8e0;--block-muted:#a8a49a;--block-line:#33322e;--block-accent:#ec9a92;--shadow:none;
  }
}
:root[data-theme="dark"]{
  --paper:#141413;--surface:#141413;--ink:#ebe8e0;--muted:#a8a49a;--line:#2b2a27;--line-strong:#4a4842;
  --accent:#ec9a92;--accent-strong:#f5bdb6;--soft:#1c1b19;--tint:#3a2322;--mark:#ec9a92;
  --block:#1c1b19;--block-ink:#ebe8e0;--block-muted:#a8a49a;--block-line:#33322e;--block-accent:#ec9a92;--shadow:none;
}

body,.editorial{font-size:17.5px;line-height:1.65;font-optical-sizing:auto;font-feature-settings:"onum" 1,"kern" 1}
::selection{background:#ffe9a8;color:#181816}

/* Links look like links again */
.editorial-main a:not(.btn):not(.pill):not(.project):not([class*="card"]):hover{color:var(--accent)}
.update-row a,.news-item a,.about-intro .intro-links a{color:var(--accent);text-decoration-color:color-mix(in srgb,var(--accent) 35%,transparent)}

/* Header: name set like a byline, not a logo */
.site-name{font-weight:600;font-size:26px;letter-spacing:-.01em}
.site-role{font-style:italic;font-size:15px}
.site-nav a{font-size:16.5px;color:var(--ink)}
.site-nav a[aria-current]{border-bottom-width:2px}

/* Hero: plain sentence, no staccato + italic-accent trick */
.editorial.home-page .hero h1{font-family:var(--serif);font-weight:500;letter-spacing:-.018em;line-height:1.08;font-size:clamp(34px,7.2cqi,54px);margin-top:0}
.hero h1 em{font-family:inherit;font-style:normal;font-size:1em;color:inherit;letter-spacing:inherit}
.hero-name{display:flex;align-items:center;gap:24px}
.hero-name img{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:none}
.editorial.home-page .hero h1{font-size:clamp(40px,9cqi,64px);line-height:1;letter-spacing:-.025em;font-weight:600}
.hero-role{margin-top:12px;font-size:18px;font-style:italic;color:var(--muted)}
.hero-name .hero-affiliation{margin-top:8px;font-size:16px;line-height:1.5;font-style:normal;color:var(--muted)}
.editorial.home-page .hero-lede{margin-top:32px}
.home-page .site-identity{visibility:hidden}
.editorial.home-page .hero-lede{color:var(--ink);font-size:18.5px;line-height:1.7;max-width:36em}

/* Buttons: squarer, quieter; the ghost button becomes a link */
.btn{border-radius:3px;height:44px;font-size:16px;font-weight:600}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-strong)}
[data-theme="dark"] .btn-primary{color:#141413}
.btn-ghost{border-color:transparent;padding:0 10px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--line-strong)}
.btn-ghost:hover{background:none;border-color:transparent;text-decoration-color:currentColor}
.text-link{font-size:16px;font-weight:600}

/* Kill the mono-caps micro-labels; keep mono only where it is actually data */
.lab-head,.lab-stages,.ro-label,.lab-hint,.section-index,.topline,.side-note,.badge,.new-tag,.news-item time,
.type-chip,.project-cat,.source,.tl-label,.kind,.glance-label,.question-label,.short-block h3,.takeaways h3,.fig-num,
.glance-facts dt,.finding-num,.data-table thead th,.pager-dir,.experience .eyebrow,.record-table thead th{text-transform:none!important;letter-spacing:0!important}
.project-cat,.tl-label,.kind,.glance-label,.question-label,.short-block h3,.takeaways h3,.fig-num,.finding-num,.pager-dir,.experience .eyebrow{font-family:var(--serif)!important;font-style:italic;font-size:15px!important}
.type-chip{border:0!important;padding:0!important;font-style:italic;font-size:14px;color:var(--muted)}
.toolbar-status{font-family:var(--serif);font-style:italic;font-size:14px}
.lab-head,.ro-label,.lab-hint,.lab-stages{font-family:var(--serif);font-size:13px}
.lab-head .lab-title{font-weight:600}
.section-index{font-family:var(--serif);font-style:italic;font-size:15px}
.section-index{display:none}

/* The demo becomes a figure in a paper, not a floating SaaS card */
.lab{border-radius:0;box-shadow:none;border:0;border-top:2px solid var(--ink);border-bottom:1px solid var(--line);padding:12px 0 10px;background:transparent}
.lab-log{border-radius:0;background:var(--soft);border:0}
.lab-gates button{border-radius:2px;background:transparent;font-family:var(--mono)}
.lab-gates .gate-measure{background:var(--accent);color:#fff}
[data-theme="dark"] .lab-gates .gate-measure{color:#141413}
.lab figcaption{font-style:italic;font-size:14px;border-top:0;padding-top:4px}
.lab-dot{box-shadow:none}

/* "New" is a margin note, not a pastel chip */
.new-tag{background:none;padding:0;border-radius:0;margin-right:8px;font:italic 600 14px var(--serif);color:var(--mark);vertical-align:0}

/* Section headings are headings */
.list-heading h2{font:600 24px/1.2 var(--serif);color:var(--ink);letter-spacing:-.01em}
.list-heading>a{font-size:15px}
.update-row{font-size:16.5px;gap:28px}
.update-row time{font-size:14.5px;font-variant-numeric:oldstyle-nums}
.home-explore>p{font:600 24px/1.2 var(--serif);color:var(--ink);margin-bottom:20px}
.home-explore a{font-size:19px;font-weight:600}
.home-explore span{font-size:15px;font-style:italic}

/* Corners and chips across the other pages */
.pill,.segmented,.segmented button,.badge,.project,.focus-card,.glance,.question,.short-block,.takeaways,.glossary,.finding,.data-table,.limits,.fig,.resource,.pager-card,.teaching,.contact,.verification-note,.lightbox{border-radius:2px!important}
.project,.pager-card,.glance{box-shadow:none!important}
.project:hover,.pager-card:hover,.resource:hover{transform:none!important}
.badge{font-family:var(--serif);font-size:13px;font-style:italic;padding:2px 8px}
.page-intro h1,.page-heading h1,.section-head h2{font-weight:500;letter-spacing:-.02em}
.paper h3{font-weight:500}

.editorial-footer{font-size:15px}
.footer-note{font-style:italic}

/* Filters read as a line of text choices, not a segmented control */
.segmented{border:0;background:none;padding:0;gap:4px 22px}
.segmented button{padding:4px 0;border-radius:0!important;font-size:16px;color:var(--muted);border-bottom:2px solid transparent}
.segmented button[aria-pressed="true"]{background:none;color:var(--ink);border-bottom-color:var(--accent)}
.segmented button i{font:italic 14px var(--serif);margin-left:5px}

/* Arrows are just arrows */
.arrow-dot{width:auto;height:auto;border:0;border-radius:0;color:var(--muted);font-size:18px}
.project:hover .arrow-dot,.essay:hover .arrow-dot,.course:hover .arrow-dot,.resource:hover .arrow-dot{background:none;color:var(--accent);transform:translate(2px,-2px)}

/* Writing: drop the 01–07 counters */
.essay{grid-template-columns:minmax(0,1fr) auto;padding:26px 0}
.essay-num{display:none}
.essay h3{font-weight:500}
.source{font-family:var(--serif);font-style:italic;font-size:14px}

/* Timeline: dates in text, no glowing current-dot */
.tl-date{font:italic 15px var(--serif);color:var(--muted)}
.tl-item.is-current::before{box-shadow:none}
.tl-item h3{font-weight:600}
.teach-intro h3 em{font-style:normal;color:inherit}
.teaching{background:var(--soft)}
@media(max-width:560px){.segmented{flex-wrap:wrap;overflow:visible;gap:4px 18px}.segmented button{padding:4px 0;font-size:15.5px}}

/* Name-led hero is shorter than the figure: centre it against the figure instead of leaving a hole */
.editorial.home-page .hero{align-items:center}
.editorial.home-page .hero-copy{justify-content:center}

/* Project cards: no counters, captions in text not mono */
.project-top>span:not(.type-chip){visibility:hidden}
.metric span{font:italic 14px/1.5 var(--serif)}
.project-cta{font-size:16px;font-weight:600}
.project{border-color:var(--line)}
.project:hover{border-color:var(--line-strong)}
@media(max-width:800px){.home-page .site-identity{display:none}}
@media(max-width:560px){
  .hero-name{flex-direction:column;align-items:flex-start;gap:18px}
  .hero-name img{width:72px;height:72px}
  .editorial.home-page .hero h1{font-size:44px}
  .hero-role{font-size:16.5px;margin-top:8px}
  .hero-name .hero-affiliation{font-size:14.5px}
}

/* Project pages: headlines are now descriptive sentences, not 2-word slogans, so set them smaller */
.project-page main h1:not(:has(span)){font-size:clamp(32px,3.9vw,52px)!important;line-height:1.1!important;letter-spacing:-.015em!important;max-width:20em;text-wrap:balance}

/* Project pages keep their own themes. Only legibility is evened out here:
   labels that rendered at 7–10px get a readable floor, decorative chip/diagram text a smaller one. */
.experience :is(.media-zoom,thead th,.compiler-masthead span,.compiler-status,.compiler-footer span,.compiler-footer strong,
  .duke-event-line span,.duke-event-stats div span,.duke-methods article span,
  .factoring-margin-notes p span,.factoring-margin a,.factoring-cover-footer span,.factoring-read-link,.factoring-file,
  .event-ticket span,.event-ticket a,.completion-seal span,.hack-scoreboard div span,.group-points span,.challenge-list small,ul li small,
  .ledger-heading span,.official-record div span,.record-deltas span,.podium-rank span,.notebook-label span,.notebook-machines,
  .paper-masthead span,.chem-specs div span,.atelier-tabs span,.equation-label){font-size:12px!important;letter-spacing:.03em!important}
.experience :is(.compiler-panel-bar span,.compiler-panel-note,.duke-echo-top span,.duke-echo-caption,.chip-pin,.chip-metal,.gpu-chip span){font-size:10px!important}
.experience .topline{font-size:12px}
/* These two themes had secondary text just under 4.5:1 */
.experience--ecdsa{--muted:#6b5e53}
.experience--duke-quantum{--muted:#55637c}
@media(max-width:560px){
  .experience .topline span,.experience .pager-metric,.experience .factoring-masthead span{font-size:11.5px!important}
  .experience .benchmark-strip span{font-size:11.5px!important}
}
.experience--qhack .hack-scoreboard small{font-size:.6em!important}
