@font-face { font-family: Lora; src: url("assets/lora.ttf") format("truetype"); font-style: normal; font-weight: 400 700; font-display: swap; }
:root { --paper: #faf9f7; --ink: #282723; --muted: #77766e; --line: #e3e0d9; --type: Lora, Georgia, serif; --accent: #974d37; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--type); -webkit-font-smoothing: antialiased; }
::selection { background: #e2cdbb; }
a { color: inherit; text-underline-offset: 4px; }
a:hover, button:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
header { display: flex; justify-content: space-between; align-items: baseline; margin: 0 42px; padding: 28px 0 25px; border-bottom: 1px solid var(--line); gap: 20px; }
.identity { display: flex; align-items: baseline; gap: 24px; }
.identity>a { font-size: 24px; font-weight: 500; letter-spacing: -.6px; text-decoration: none; }
.identity>span { font-size: 12px; color: var(--muted); }
.header-links { display: flex; gap: 24px; font-size: 13px; }
.header-links a { text-decoration: none; }
main { max-width: 1600px; margin: auto; }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 46px; padding: 0 42px; min-height: calc(100svh - 204px); }
.molecular-space { min-width: 0; position: sticky; top: 15px; align-self: start; height: calc(100svh - 205px); min-height: 500px; max-height: 840px; display: flex; flex-direction: column; }


.tiny-cross { font: 19px/1 'Courier New', monospace; color: #7a8071; }
.stage { position: relative; width: 100%; height: clamp(410px, 62svh, 750px); flex: 1; min-height: 410px; }
.molecule-caption { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; touch-action: none; }
canvas.dragging { cursor: grabbing; }
canvas.over-region { cursor: pointer; }
#hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { pointer-events: auto; position: absolute; background: rgba(250,249,247,.96); padding: 7px 9px; min-height: 34px; border: 1px solid transparent; border-radius: 0; font-size: 13px; line-height: 1.3; white-space: nowrap; text-align: left; transform: translateY(-50%); }
.hotspot>span { color: #757b6d; margin-right: 8px; font: 10px 'Courier New', monospace; }
.hotspot:hover { border-color: #d7d6cb; }
.hotspot[aria-current="true"] { color: var(--accent); border-color: #c7b2a4; }
.hotspot[aria-current="true"]>span { color: var(--accent); }
.hotspot { border-color: #c7b2a4; color: var(--accent); }
.hotspot::after { content: ' ↗'; margin-left: 7px; }
.structure-controls { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); padding: 0 0 23px; gap: 12px; }
.structure-controls>div { display: flex; gap: 6px; }
.structure-controls button { border: 0; background: none; min-width: 34px; min-height: 36px; padding: 5px; font-size: 12px; }
.structure-controls button:disabled { opacity: .35; cursor: default; }
.reading-pane { margin: 36px 0 42px; padding: 0 0 0 28px; align-self: stretch; display: flex; flex-direction: column; }
.pane-top { display: flex; justify-content: flex-end; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 30px; }

.pane-top button { background: none; border: 0; padding: 0 0 5px; font-size: 11px; }
.entry { margin-bottom: 42px; scroll-margin-top: 24px; }
.entry h1, .entry h2 { font: 500 30px/1.25 var(--type); letter-spacing: -.7px; margin: 0 0 25px; }
.entry h3 { font-size: 17px; font-weight: 600; margin: 27px 0 10px; }
.entry p { margin: 0 0 20px; font-size: 17px; line-height: 1.75; font-weight: 400; }
.entry strong { font-weight: 600; }
.entry .aside-note { font-size: 13px; color: var(--muted); margin-top: 31px; }


.text-index { margin: 0 42px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.text-index summary { cursor: pointer; font-size: 13px; color: var(--muted); width: fit-content; }
.text-index .section-index { margin: 0; border: 0; padding: 22px 0 2px; gap: 23px; }


.section-index { margin: 0 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 26px; padding: 22px 0; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.index-label { color: var(--muted); margin-right: auto; }
.section-index a { text-decoration: none; }
.section-index a>span { font: 10px 'Courier New', monospace; color: #7b7f73; margin-right: 6px; }
.section-index a[aria-current="true"] { color: var(--accent); }
.section-index a[aria-current="true"]>span { color: var(--accent); }
footer { margin: 0 42px; padding: 19px 0 23px; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
footer a { text-decoration: none; }.structure-note { margin-left: 20px; color: #71786b; }
.highlights-list { padding: 0; margin: 0; list-style: none; }
.highlights-list li { border-bottom: 1px solid var(--line); padding: 0 0 16px; margin: 0 0 20px; }
.highlights-list li:last-child { border: 0; }
.highlights-list li>span { font: 11px 'Courier New', monospace; color: var(--muted); }
.highlights-list h3 { margin: 7px 0 8px; }
.highlights-list p { font-size: 16px; margin: 0; }
.highlights-list p + p { margin-top: 12px; }
.entry a { overflow-wrap: anywhere; }
.personal-photo { margin: 28px 0; }
.personal-photo a { display: block; }
.personal-photo img { display: block; width: 100%; height: auto; }
.portrait-photo { margin: 0 0 26px; }
.portrait-photo img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 62%; }
.personal-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 9px; }
.string-study { margin: 32px 0 10px; height: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.string-study i { display: block; height: 1px; background: #b9b7a8; }
.string-study i:nth-child(2) { opacity: .85; }.string-study i:nth-child(3) { opacity: .7; }.string-study i:nth-child(4) { opacity: .55; }.string-study i:nth-child(5) { opacity: .4; }.string-study i:nth-child(6) { opacity: .3; }
#molecule-fallback { position: absolute; top: 45%; left: 15%; right: 15%; color: var(--muted); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 12px; background: var(--ink); color: white; padding: 9px 14px; z-index: 10; }
.skip-link:focus { top: 12px; }
body.read-all .explorer { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); }
body.read-all .molecular-space { position: sticky; top: 0; height: min(760px, 95svh); align-self: start; }
body.read-all .entry { padding-bottom: 25px; border-bottom: 1px solid var(--line); }

@media (min-width:1500px) { .explorer { grid-template-columns: minmax(0,1fr) 480px; gap: 70px; }.reading-pane { padding-left: 38px; }.entry p { font-size: 18px; } }
@media (max-width:1050px) { header { margin: 0 28px; }.identity { gap: 16px; }.explorer { padding: 0 28px; gap: 24px; grid-template-columns: minmax(0,1fr) 390px; }.reading-pane { padding-left: 23px; }.section-index { margin: 0 28px; gap: 18px; }.index-label { display: none; }footer { margin: 0 28px; }.entry p { font-size: 16px; }.hotspot { font-size: 11px; padding: 7px 5px; }.hotspot>span { margin-right: 4px; } }
@media (max-width:880px) { header { margin: 0 22px; padding: 22px 0 20px; align-items: flex-start; }.identity { display: block; }.identity>a { font-size: 22px; }.identity>span { display: block; font-size: 11px; margin-top: 3px; }.header-links { gap: 15px; font-size: 12px; padding-top: 3px; }.header-links a:last-child { display: none; }.explorer, body.read-all .explorer { grid-template-columns: 1fr; gap: 0; padding: 0 22px; }.molecular-space { position: relative; top: 0; height: auto; min-height: 0; max-height: none; }.stage { min-height: 360px; height: 47svh; max-height: 470px; flex: auto; }.structure-controls { padding-bottom: 15px; font-size: 10px; }.reading-pane { padding: 23px 0 0; border-left: 0; border-top: 1px solid var(--line); margin: 0 0 26px; }.pane-top { margin-bottom: 23px; }.entry { max-width: 520px; margin-bottom: 5px; }.entry p { font-size: 17px; }.entry h1,.entry h2 { font-size: 28px; margin-bottom: 21px; }.section-index { margin: 0 22px; column-gap: 23px; row-gap: 14px; padding: 22px 0; }footer { margin: 0 22px; font-size: 9px; }.structure-note { margin-left: 15px; }body.read-all .molecular-space { position: static; height: auto; }body.read-all .entry { margin-bottom: 28px; padding-bottom: 25px; }.hotspot { min-height: 40px; } }
@media (max-width:370px) { header,.section-index,footer { margin-left: 16px; margin-right: 16px; }.explorer { padding-left: 16px; padding-right: 16px; }.header-links { gap: 10px; }.identity>a { font-size: 19px; }.stage { min-height: 330px; } }
@media (prefers-reduced-motion:no-preference) { .enhanced .entry { animation: appear .2s ease-out; }@keyframes appear { from { opacity: .3; transform: translateY(3px); }to { opacity: 1; transform: translateY(0); } } }
@media (max-width:1050px) { .text-index { margin-left: 28px; margin-right: 28px; } }
@media (max-width:880px) { .text-index { margin-left: 22px; margin-right: 22px; }.personal-photo { max-width: 520px; } }
@media (max-width:370px) { .text-index { margin-left: 16px; margin-right: 16px; } }
