:root {
  --paper: #1c2848;
  --white: #24325a;
  --ink: #f2f4fa;
  --body: #d3d9e8;
  --muted: #b4bdd3;
  --line: #34436d;
  --line-strong: #4d5e8f;
  --green: #d9b452;
  --green-deep: #c49e3c;
  --on-accent: #0b1122;
  --light: #2c3b66;
  --tint: #202c50;
  --rust: #d9b452;
  --deep: #16203c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Rubik, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open, body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
h2 { font-size: clamp(34px, 4.2vw, 52px); }
em { font-style: italic; color: var(--rust); }
::selection { background: #d9b452; color: #0b1122; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; padding: 12px 20px; background: var(--white); color: var(--ink); z-index: 200; }
.skip-link:focus { top: 16px; }

:root { --gutter: clamp(20px, 5.5vw, 96px); --section: clamp(28px, 3.5vw, 48px); }
.container { width: min(1400px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--green); margin-bottom: 18px; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 22px; background: var(--green); color: var(--on-accent); padding: 15px 24px; border-radius: 4px; font-size: 14px; font-weight: 500; transition: background .2s, transform .2s; }
.button:hover { background: var(--green-deep); transform: translateY(-1px); }
.button.small { padding: 10px 16px; gap: 14px; font-size: 13px; }
.button.light { background: var(--green); color: var(--on-accent); }
.button.light:hover { background: var(--green-deep); }
.text-link { color: var(--ink); font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 3px; display: inline-flex; gap: 10px; }
.text-link:hover { color: var(--rust); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(28, 40, 72, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { color: var(--ink); display: flex; align-items: center; gap: 13px; line-height: 1.4; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; border: 1px solid var(--ink); border-radius: 50% 50% 8px 8px; font-family: var(--serif); font-size: 20px; letter-spacing: -2px; padding-right: 2px; }
.brand-name { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--ink); }
.nav > a:not(.nav-contact):not(.chip) { position: relative; }
.nav > a:not(.nav-contact):not(.chip)::after { content: ""; position: absolute; height: 1px; background: var(--ink); left: 0; right: 100%; bottom: -5px; transition: right .2s; }
.nav > a:hover::after { right: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--body); }
.chip-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--light); border: 1px solid var(--line); font-size: 10px; font-weight: 600; color: var(--green); }
.chip:hover { color: var(--rust); }
.nav-divider { width: 1px; height: 26px; background: var(--line); margin: 0 -8px; }
.nav-contact { border: 1px solid var(--line-strong); padding: 10px 17px; border-radius: 4px; display: inline-flex; gap: 18px; transition: background .2s; }
.nav-contact:hover { background: var(--light); }
.menu-toggle { display: none; background: none; color: var(--ink); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 4px; font-size: 13px; }

@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .header-inner { height: 72px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 24px; font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-divider { width: 100%; height: 1px; margin: 0; }
}

/* Hero */
.hero { --name-fs: clamp(48px, 6.4vw, 84px); padding: 48px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 520px at 90% -10%, #2e4274 0%, transparent 60%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.hero-name { font-size: var(--name-fs); font-style: italic; line-height: 1.02; letter-spacing: -.04em; }
.hero-intro { color: var(--body); font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; max-width: 760px; margin-top: 16px; }
.hero-statement { color: var(--ink); font-family: var(--serif); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin-top: clamp(28px, 3vw, 40px); }
.hero-description { color: var(--muted); max-width: 520px; margin-top: 24px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.location { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 28px; }
.pin { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
/* Photo: top on the cap line of the name, bottom on the bottom of the buttons */
.portrait { position: relative; justify-self: end; align-self: stretch; width: min(100%, 520px); min-height: 0; margin-top: calc(var(--name-fs) * var(--cap-gap, .2)); border-radius: 260px 260px 14px 14px; overflow: hidden; background: var(--light); border: 1px solid rgba(217, 180, 82, .55); box-shadow: 0 0 0 6px rgba(217, 180, 82, .08), 0 0 44px 10px rgba(217, 180, 82, .42), 0 0 110px 20px rgba(120, 150, 230, .28); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats li { border-left: 2px solid var(--green); padding-left: 14px; }
.hero-stats b { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { justify-self: start; width: min(100%, 380px); height: auto; aspect-ratio: 4 / 5; margin-top: 8px; order: 2; }
  .location { margin-top: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Sections */
.section { padding: var(--section) 0; }
.section.tinted { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; }
.section-aside { max-width: 360px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
}

/* Books */
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); }
@media (max-width: 720px) { .book-grid { grid-template-columns: minmax(0, 440px); justify-content: center; } }
.book-card { display: flex; flex-direction: column; }
.book-cover { position: relative; display: block; border-radius: 6px; overflow: hidden; background: var(--light); aspect-ratio: 680 / 880; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.book-cover:hover img { transform: scale(1.025); }
.card-arrow { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--on-accent); display: grid; place-items: center; font-size: 15px; }
.card-meta { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.book-card h3 { font-size: 30px; margin-top: 14px; }
.card-sub { font-family: var(--serif); font-style: italic; color: var(--rust); margin-top: 6px; }
.card-text { color: var(--muted); font-size: 15px; margin-top: 12px; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 22px; font-size: 12.5px; }
.card-facts li { display: flex; align-items: center; gap: 8px; }
.card-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); }
.card-links { display: flex; align-items: center; gap: 22px; margin-top: auto; }

/* Publications */
.all-pubs { margin-top: 32px; }
.all-pubs summary { color: var(--ink); display: inline-flex; gap: 10px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--green); padding-bottom: 3px; list-style: none; }
.all-pubs summary::-webkit-details-marker { display: none; }
.all-pubs[open] summary span { transform: rotate(45deg); }
.all-list { margin-top: 28px; max-width: 900px; }
.all-year { font-family: var(--serif); font-size: 22px; color: var(--rust); padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
.all-pub { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.all-pub a { font-weight: 500; color: var(--ink); }
.all-pub a:hover { color: var(--rust); }
.all-authors, .all-venue { font-size: 13px; color: var(--muted); }
.all-authors b { color: var(--ink); font-weight: 600; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.fine a { text-decoration: underline; }

/* About */
.about { background: var(--tint); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; }
.about-lead { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); margin-top: 32px; padding-left: 20px; border-left: 2px solid var(--green); }
.about-grid > div:first-child { display: flex; flex-direction: column; }
.about-photos { display: flex; flex-wrap: wrap; gap: clamp(24px, 3.5vw, 48px); margin-top: auto; padding-top: clamp(36px, 4vw, 56px); padding-left: 22px; }
.about-photo { width: clamp(150px, 16vw, 240px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--green); box-shadow: 0 0 0 6px rgba(217, 180, 82, .08), 0 0 40px 8px rgba(217, 180, 82, .38), 0 0 90px 16px rgba(120, 150, 230, .26); transition: transform .3s; }
.about-photo:hover { transform: scale(1.04); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy > p { color: var(--muted); }
.about-copy > p + p { margin-top: 16px; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 40px; }
.focus h3 { color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.focus h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }
.focus p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .focus-grid { grid-template-columns: 1fr; } }

/* Experience */
.exp-list { border-top: 1px solid var(--line); }
.exp-item { border-bottom: 1px solid var(--line); }
.exp-item summary { color: var(--ink); display: grid; grid-template-columns: 200px 1fr 32px; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; }
.exp-item summary::-webkit-details-marker { display: none; }
.exp-date { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.exp-main { display: flex; flex-direction: column; }
.exp-title { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; line-height: 1.25; }
.exp-org { font-size: 13px; color: var(--muted); margin-top: 4px; }
.expand { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--green); transition: transform .2s; }
.exp-item[open] .expand { transform: rotate(45deg); }
.exp-item summary:hover .exp-title { color: var(--rust); }
.exp-body { color: var(--muted) !important; padding: 0 56px 28px 224px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.exp-body li { position: relative; padding-left: 18px; }
.exp-body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); }
@media (max-width: 760px) {
  .exp-item summary { grid-template-columns: 1fr 32px; gap: 6px 16px; }
  .exp-date { grid-column: 1 / -1; }
  .exp-title { font-size: 20px; }
  .exp-body { padding: 0 0 24px; }
}
.two-up { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; margin-top: 72px; }
@media (max-width: 860px) { .two-up { grid-template-columns: 1fr; gap: 40px; } }
.sub-head { font-size: 28px; margin-bottom: 22px; }
.sub-head ~ .sub-head { margin-top: 40px; }
.plain-list { display: grid; gap: 18px; color: var(--muted); font-size: 15px; }
.two-up > div:first-child { display: flex; flex-direction: column; }
.award-gallery { position: relative; width: 100%; max-width: 760px; aspect-ratio: 1405 / 900; margin-top: auto; padding-top: 0; }
.two-up > div:first-child .plain-list { margin-bottom: 48px; }
.award-photo { position: absolute; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--green); box-shadow: 0 0 0 6px rgba(217, 180, 82, .08), 0 0 44px 10px rgba(217, 180, 82, .38), 0 0 100px 20px rgba(120, 150, 230, .26); transition: transform .3s; }
.award-photo:hover { transform: scale(1.03); }
.award-photo img { width: 100%; height: 100%; object-fit: cover; }
.award-photo-1 { left: 0; top: 0; width: 49.1%; }
.award-photo-2 { left: 54.4%; top: 28.9%; width: 45.6%; }
.award-dot { position: absolute; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: inset 0.09em 0.09em 0.16em rgba(90, 50, 0, .5), inset -0.09em -0.09em 0.16em rgba(90, 50, 0, .5); /* inner shadows at 135° and -45° */ font-size: clamp(10px, 1.2vw, 18px); }
.award-dot:nth-of-type(1) { left: 57.4%; top: 12.7%; width: 8.4%; }
.award-dot:nth-of-type(2) { left: 70.3%; top: 10.0%; width: 4.3%; }
.award-dot:nth-of-type(3) { left: 80.7%; top: 8.8%; width: 6.0%; }
.award-dot:nth-of-type(4) { left: 92.1%; top: 16.4%; width: 4.8%; }
.award-dot:nth-of-type(5) { left: 8.7%; top: 82.0%; width: 5.0%; }
.award-dot:nth-of-type(6) { left: 19.3%; top: 86.1%; width: 6.0%; }
.award-dot:nth-of-type(7) { left: 31.5%; top: 85.7%; width: 4.3%; }
.award-dot:nth-of-type(8) { left: 39.8%; top: 74.9%; width: 8.4%; }
.plain-list b { color: var(--ink); font-weight: 500; }
.edu-list { display: grid; gap: 16px; }
.edu-list li { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid var(--line); }
.edu-list b { font-weight: 500; color: var(--ink); }
.edu-list li { border-left-color: var(--green) !important; }
.edu-list span:last-child { font-size: 13.5px; color: var(--muted); }

/* Contact */
.contact { background: radial-gradient(900px 400px at 10% 120%, #2e4274 0%, transparent 60%), var(--deep); color: var(--ink); padding: var(--section) 0; border-top: 1px solid var(--line); }
.contact .eyebrow { color: var(--green); }
.contact h2 { font-size: clamp(40px, 5vw, 66px); }
.contact em { color: var(--green); }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact-copy p { color: var(--body); margin-bottom: 26px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; font-size: 13px; }
.email { border-bottom: 1px solid var(--green); overflow-wrap: anywhere; }
.copy-email { background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 4px; padding: 6px 12px; font-size: 12px; }
.copy-email:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; } }

.site-footer { background: #131c36; color: var(--muted); border-top: 1px solid var(--line); font-size: 12.5px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 26px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Outlined secondary buttons */
.hero-actions .text-link, .card-links .text-link { border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 16px; }
.hero-actions .text-link { padding: 14px 22px; }
.hero-actions .text-link:hover, .card-links .text-link:hover { background: var(--light); color: var(--ink); }
.nav-contact { color: var(--ink); }
.pub-mark { border: 0; }

/* ---------- Clickable cards ---------- */
.card-plus { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; color: var(--green); border: 1px solid var(--line-strong); background: rgba(15, 23, 48, .35); transition: background .2s, color .2s, transform .2s; }
.book-cover { width: 100%; padding: 0; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.book-cover:hover, .book-cover:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px var(--green); }
.book-cover .card-arrow { font-size: 20px; transition: transform .2s; }
.book-cover:hover .card-arrow { transform: rotate(90deg); }

.pub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 980px) { .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pub-grid { grid-template-columns: minmax(0, 420px); justify-content: center; } }
.pub-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 18px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pub-art { position: relative; display: block; aspect-ratio: 1; border-radius: 7px; background: radial-gradient(circle at 50% 40%, #33467c 0%, #1f2b4e 75%); overflow: hidden; margin-bottom: 6px; }
.pub-art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .35s; }
.pub-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.pub-card .pub-title { color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.pub-card .pub-topic { font-size: 12.5px; color: var(--muted); }

.tools-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 72px 0 22px; }
.tools-top .sub-head { margin: 0; }
.tools-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tools-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 10px 18px; transition: transform .25s, border-color .25s, box-shadow .25s, background .25s; }
.tool-card img { width: 92px; height: 92px; object-fit: contain; transition: transform .35s; }
.tool-name { font-size: 14px; color: var(--ink); text-align: center; line-height: 1.3; }

.pub-card:hover, .tool-card:hover, .pub-card:focus-visible, .tool-card:focus-visible { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 20px 36px -20px rgba(0, 0, 0, .75); }
.tool-card:hover { background: var(--light); }
.pub-card:hover img, .tool-card:hover img { transform: scale(1.07) translateY(-2px); }
.pub-card:hover .card-plus, .tool-card:hover .card-plus, .pub-card:focus-visible .card-plus, .tool-card:focus-visible .card-plus { background: var(--green); color: var(--on-accent); transform: rotate(90deg); }
.pub-card:active, .tool-card:active, .book-cover:active { transform: translateY(-1px) scale(.985); }

/* ---------- Pop-up ---------- */
.pop { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 880px); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0; background: var(--white); color: var(--body); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .75); overflow: hidden; }
.pop[open] { display: flex; flex-direction: column; animation: pop .24s ease-out; }
.pop::backdrop { background: rgba(5, 8, 18, .7); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.pop-head .eyebrow { margin: 0; }
.pop-close { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); padding: 7px 16px; font-size: 13px; }
.pop-close:hover { background: var(--light); }
.pop-body { padding: 26px 32px 30px; overflow-y: auto; }
.pop-hero { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pop-img { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #33467c 0%, #1f2b4e 75%); display: grid; place-items: center; }
.pop-img:empty { display: none; }
.pop-img img { width: 88%; height: 88%; object-fit: contain; }
.pop-img.cover { width: 96px; height: 124px; background: none; }
.pop-img.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7); }
.pop-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.pop h3 { font-size: clamp(24px, 3vw, 32px); }
.pop-sub { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.pop-sub:empty { display: none; }
.pop-sub b { color: var(--ink); font-weight: 600; }
.pop-content { padding-top: 20px; }
.pop-content h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.pop-content p + h4, .pop-content ul + h4 { margin-top: 18px; }
.pop-content p + p { margin-top: 10px; }
.pop-example { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: var(--light); }
.pop-example p { color: var(--body); }
.pop-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pop-facts li { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--light); color: var(--ink); }
.pop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.pop-actions .text-link { border: 1px solid var(--line-strong); border-radius: 4px; padding: 13px 20px; }
@media (max-width: 560px) {
  .pop-body { padding: 22px 20px 24px; }
  .pop-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pop-head { padding: 12px 16px; }
}

/* ---------- Poster cards and poster pop-up ---------- */
.pub-art { aspect-ratio: 3 / 4; background: #f6ecd9; }
.pub-art img { object-fit: cover; object-position: top center; padding: 0; }
.pub-card:hover .pub-art img { transform: scale(1.04); }
.pop.has-poster { width: min(1080px, calc(100% - 32px)); }
.pop-layout { display: block; }
.pop.has-poster .pop-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.pop-poster { margin: 0; position: sticky; top: 0; }
.pop-poster a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .7); transition: transform .2s; }
.pop-poster a:hover { transform: translateY(-2px); }
.pop-poster img { width: 100%; height: auto; display: block; }
.pop-poster figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }
@media (max-width: 820px) {
  .pop.has-poster .pop-layout { grid-template-columns: 1fr; gap: 22px; }
  .pop-poster { position: static; max-width: 420px; margin: 0 auto; }
}

/* ---------- Very large screens (32-inch and up) ----------
   Scale the whole layout up so it fills big monitors instead of sitting
   small in the middle. Each step keeps roughly a 1600-1900px design width. */
@media (min-width: 1800px) { html { zoom: 1.12; } }
@media (min-width: 2100px) { html { zoom: 1.3; } }
@media (min-width: 2500px) { html { zoom: 1.5; } }
@media (min-width: 3000px) { html { zoom: 1.75; } }
@media (min-width: 3500px) { html { zoom: 2; } }

/* Print / PDF version */
@media print {
  @page { margin: 0; }
  html { zoom: 1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: var(--paper); }
  .site-header, .skip-link, .menu-toggle, .download-btn, .card-plus, .copy-email, .all-pubs summary, .expand, .pop { display: none !important; }
  .pub-card, .tool-card, .book-card, .exp-item, .focus, .edu-list li, .plain-list li, .all-pub, .hero-stats, .about-photos, .award-gallery { break-inside: avoid; }
  .section-head, h2, h3 { break-after: avoid; }
  .two-up, .about-grid, .book-grid { break-inside: avoid; }
  .section { padding: 40px 0; }
}
