/* Typography and figure proportions shared by every page. */
:root{--paper:#faf9f6;--body:#30312f;--muted:#60625c;--line:#d6d5ce}
.site-header{min-height:88px}
.site-header .wordmark{font-size:27px;letter-spacing:-.035em}
.home-intro{padding-block:36px 40px}
.home-intro h1{font-size:clamp(44px,6.2vw,82px);letter-spacing:-.035em;line-height:1.1;white-space:normal}
.science-home .intro-bottom{margin-top:22px;align-items:center;gap:42px}
.intro-copy{font-size:25px;line-height:1.5}
.page-intro{padding-block:38px 32px}
.page-intro h1{font-size:clamp(38px,4.5vw,58px);line-height:1.1;letter-spacing:-.025em;margin-top:0}
.page-lead,.research-intro .page-lead{font-size:24px;line-height:1.5;margin-top:20px;max-width:760px}
.prose,.research-essay .prose,.software-description,.science-software-copy p,.project-detail-main p,.writing-entry-main p,.elsewhere p,.research-contact p{font-family:var(--serif);font-size:21px;line-height:1.65}
.prose,.research-essay .prose{max-width:720px}
.research-personal-note{margin-top:24px}
.research-essay{padding-block:8px 42px}
.research-essay p+p{margin-top:22px}
.about-layout{display:block;border-top:0;padding-top:0;padding-bottom:56px}
.about-prose{max-width:720px;font-size:23px;line-height:1.65;letter-spacing:0}
.about-contact{margin-top:30px;padding-top:24px}
.page-writing .elsewhere{padding-block:25px 30px;grid-template-columns:180px 1fr;gap:38px}
.elsewhere h2{font-size:31px;margin-top:0}
.elsewhere p{margin-bottom:10px}
.project-detail,.project-detail+.project-detail{padding-block:29px 32px;grid-template-columns:200px 1fr;gap:42px}
.project-detail-main h2,.software-heading h2,.science-software h2{font-size:36px;margin-top:0;margin-bottom:16px}
.project-detail-main .project-credit,.software-description .software-note{font-family:var(--sans);font-size:14px}
.science-software{padding-block:30px 45px;gap:42px}
.software-section{padding-block:30px 40px}
.writing-entry-main h2{font-size:32px}
.helix-study figcaption p{font-size:14px;color:var(--muted)}
.helix-equation{font-size:23px}
.helix-curvatures{font-size:22px;gap:28px}
.helix-curvatures sub{font-size:12px}
.phase-plate{--plot-ink:#233b33;--plot-muted:#45564b;--plot-line:#bbc5ba;background:transparent;color:var(--plot-ink);border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:28px 0}
.phase-introduction h2{font-size:33px;margin-top:0}
.phase-introduction p{font-family:var(--serif);font-size:20px;line-height:1.5}
.phase-plate a{color:var(--ink);text-decoration-color:var(--muted)}
.phase-plate a:hover,.phase-reset:hover{color:var(--accent)}
.phase-plate :is(button,input,summary,[role=button]):focus-visible{outline-color:var(--accent)}
.preset-buttons button{border-color:#798e7c}
.preset-buttons button:hover{border-color:var(--ink);background:#e5ebdf}
.preset-buttons button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.phase-slider input{accent-color:var(--ink)}
.plot-legend i{background:#40674f}
.plot-legend .legend-mean{background:var(--accent)}
.tract-hit:hover rect:nth-of-type(2){fill:#b8cbae}
.sequence-details code{color:#45564b}
.sequence-details .seq-a{color:#843c2c;background:#e9e4d8}
.phase-table th,.phase-table td{border-color:var(--line)}
.phase-noscript{color:var(--accent)}
.phase-caption p,.plot-explanation,.sequence-readout{font-size:14px}
@media(max-width:800px){.research-intro{grid-template-columns:1.1fr 1fr;gap:24px}.science-home .intro-bottom{gap:24px}.intro-copy{font-size:23px}.phase-introduction h2{font-size:31px}}
@media(max-width:650px){.site-header{padding-block:18px 13px;gap:13px}.site-header .wordmark{font-size:26px}.home-intro{padding-block:27px 30px}.home-intro h1{font-size:clamp(41px,11vw,63px)}.page-intro{padding-block:30px 25px}.page-intro h1{font-size:42px}.page-lead,.research-intro .page-lead{font-size:22px;margin-top:16px}.science-home .intro-bottom,.research-intro{display:block}.intro-copy{font-size:23px}.helix-study{margin-top:22px}.helix-equation{font-size:22px}.helix-curvatures{font-size:21px}.helix-study figcaption p{font-size:13px}.prose,.research-essay .prose,.software-description,.science-software-copy p,.project-detail-main p,.writing-entry-main p,.elsewhere p,.research-contact p{font-size:20px;line-height:1.6}.about-prose{font-size:22px}.page-writing .elsewhere{display:block;padding-block:22px 26px}.elsewhere h2{margin-bottom:12px}.project-detail,.project-detail+.project-detail{display:block;padding-block:25px}.project-detail-label{margin-bottom:14px}.phase-plate{padding:24px 0}.phase-introduction h2{font-size:30px}.phase-introduction p{font-size:19px}.phase-caption p{font-size:14px}.phase-plots{padding-bottom:18px}.science-software{display:block}.science-software h2{margin-top:0}.research-jumps{padding-bottom:24px}.about-layout{padding-bottom:38px}}

.helix-study img,.research-intro .helix-study img{height:235px;object-fit:contain}
@media(max-width:650px){.helix-study img,.research-intro .helix-study img{height:190px}}

.home-research-link{padding-bottom:42px}.research-overview .page-lead{max-width:720px}.page-research .research-essay .prose{margin-inline:0}

/* Neutral reading surfaces; green remains in headings and diagrams. */
.research-personal-note{color:var(--body)}
.code-block{background:#f0efea}
.phase-plate{--plot-muted:#555b54;--plot-line:#c8ccc4}
.phase-introduction p{color:var(--body)}

.research-essay h2{font-size:31px;line-height:1.2;margin:36px 0 18px;letter-spacing:-.02em}.research-overview .page-lead{font-size:23px;line-height:1.6}.research-essay h2+p{margin-top:0}@media(max-width:650px){.research-overview .page-lead{font-size:22px}.research-essay h2{font-size:28px;margin-top:30px}}

.research-visual{margin:30px 0 38px}.research-visual img{width:100%;height:auto}.research-visual figcaption{font-family:var(--sans);font-size:13px;line-height:1.6;color:var(--muted);margin-top:12px}.research-visual>a{display:block}.research-visual+p{margin-top:24px}

.page-cover{position:relative;margin-top:26px;min-height:200px;display:flex;align-items:center;overflow:hidden}
.page-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.page-cover h1{position:relative;z-index:1;font-size:56px;line-height:1.08;letter-spacing:-.025em;padding:35px 36px;max-width:48%;margin:0}
.page-cover+.page-intro{padding-top:28px}.page-cover+.page-intro .page-lead{margin-top:0}
.page-about .page-cover+.page-intro{padding-block:15px}
@media(max-width:650px){.page-cover{margin-top:20px;min-height:170px}.page-cover h1{font-size:42px;padding:25px 20px;max-width:75%}.page-cover>img{object-position:60% center;opacity:.45}.page-cover h1{text-shadow:0 1px 12px #faf9f6}.page-cover+.page-intro{padding-top:24px}}

@media(max-width:650px){.site-header nav{gap:10px}.site-header nav a{font-size:13px}}

.home-frontispiece{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:330px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:32px}.home-frontispiece h1{font-size:clamp(42px,4.2vw,54px);line-height:1.12;letter-spacing:-.025em}.home-frontispiece img{display:block;width:100%;height:330px;object-fit:contain}.science-home .intro-bottom{margin-top:0}@media(max-width:650px){.home-frontispiece{grid-template-columns:1fr;gap:0;padding-bottom:10px;margin-bottom:26px}.home-frontispiece h1{font-size:42px}.home-frontispiece img{height:235px;width:100%;margin-top:8px}}
