/*
Theme Name: Bao Nguyen Academic Portfolio
Theme URI: https://bao-nguyen.me
Author: Bao Nguyen
Description: A responsive academic portfolio theme for an agricultural and environmental economist.
Version: 2.7.8
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bao-nguyen
*/
:root{--ink:#071c1a;--paper:#f2f1e8;--muted:#a9b8ae;--lime:#b6d878;--gold:#e6b968;--line:rgba(242,241,232,.17);--max:1180px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--paper);font-family:"DM Sans",sans-serif;font-size:16px;line-height:1.6}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:auto;padding-left:24px;padding-right:24px}
.site-header{border-bottom:1px solid var(--line);position:absolute;z-index:20;width:100%}
.site-header .wrap{height:86px;display:flex;align-items:center;justify-content:space-between}
.brand{font:500 1.5rem/1 "Newsreader",serif}
.brand span,.accent{color:var(--lime)}
.menu{display:flex;gap:34px;align-items:center;list-style:none;margin:0;padding:0}
.menu a{font-size:.875rem;color:#d8e1dc}
.hero{min-height:760px;height:100vh;max-height:980px;padding-top:170px;padding-bottom:90px;display:grid;grid-template-columns:1.7fr .8fr;gap:8vw;align-items:center}
.eyebrow,.section-label,.tag{font-size:.74rem;text-transform:uppercase;letter-spacing:.16em;font-weight:600}
.eyebrow{color:var(--lime)}
h1,h2,h3,p{margin-top:0}
.hero h1{font:400 clamp(4rem,8vw,7.4rem)/.87 "Newsreader",serif;letter-spacing:-.055em;margin:25px 0 34px}
.hero h1 em,.large-copy em{font-weight:400;color:var(--lime)}
.lede{font-size:1.12rem;max-width:610px;color:#c4d0ca}
.actions{display:flex;gap:14px;margin-top:40px}
.button{padding:15px 21px;border-radius:100px;font-weight:600;font-size:.9rem;border:1px solid var(--line)}
.button.primary{background:var(--lime);color:var(--ink);border-color:var(--lime)}
.field-note{align-self:end;margin-bottom:60px;border-top:1px solid var(--line);padding-top:22px}
.field-note .section-label{color:var(--gold)}
.field-note h2{font:400 1.8rem "Newsreader",serif}
.field-note p{color:var(--muted)}
section.block{padding-top:130px;padding-bottom:130px;border-top:1px solid var(--line)}
.section-label{color:var(--gold);margin-bottom:60px}
.about-grid{display:grid;grid-template-columns:1.4fr .7fr;gap:9vw}
.large-copy{font:400 clamp(2.7rem,5vw,4.9rem)/1.03 "Newsreader",serif;letter-spacing:-.04em}
.bio{color:#bdcac3}
.light-section{background:var(--paper);color:var(--ink);max-width:none}
.light-inner{max-width:var(--max);margin:auto;padding:125px 24px}
.heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:55px}
.heading .section-label{margin:0}
.heading h2,.experience h2{font:400 clamp(2.6rem,5vw,4.4rem) "Newsreader",serif;letter-spacing:-.04em;margin:0}
.research-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}
.research-card{min-height:290px;padding:28px;border:1px solid #cfd1c6;display:flex;flex-direction:column;justify-content:space-between}
.research-card.feature{grid-row:span 2;min-height:592px;background:#102c28;color:var(--paper);border:0}
.card-number{font-size:.74rem;color:#65736b}
.feature .card-number{color:var(--lime)}
.tag{color:#667b70}
.feature .tag{color:var(--gold)}
.research-card h3{font:400 clamp(2rem,4vw,3.5rem)/1 "Newsreader",serif;letter-spacing:-.035em}
.research-card p:not(.tag){color:#5e6b65}
.research-card.feature p:not(.tag){color:#becbc5}
.timeline{border-top:1px solid var(--line);margin-top:55px}
.timeline article{display:grid;grid-template-columns:160px 1fr;padding:30px 0;border-bottom:1px solid var(--line)}
.timeline time{color:var(--lime);font-size:.78rem;text-transform:uppercase;letter-spacing:.13em}
.timeline h3{font:400 1.85rem "Newsreader",serif;margin-bottom:3px}
.timeline p{color:var(--muted);margin:0}
.degrees{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:1px;background:var(--line)}
.degrees>*{background:var(--ink);padding:30px;min-height:260px}
.degrees h2{font:400 3rem/1.05 "Newsreader",serif}
.degrees article span{color:var(--gold);font-size:.73rem;text-transform:uppercase;letter-spacing:.14em}
.degrees article h3{font:400 1.7rem "Newsreader",serif;margin:55px 0 10px}
.degrees article p{font-size:.88rem;color:#c4d0ca}
.contact{text-align:center}
.contact h2{font:400 clamp(4rem,9vw,8rem)/.95 "Newsreader",serif;letter-spacing:-.05em;margin:10px 0 35px}
.contact>a{border-bottom:1px solid var(--lime);padding-bottom:6px}
.site-footer{border-top:1px solid var(--line)}
.site-footer .wrap{padding-top:30px;padding-bottom:30px;display:flex;justify-content:space-between;color:var(--muted);font-size:.75rem}
.content-area{padding-top:150px;padding-bottom:100px;min-height:70vh}
.content-area h1{font:400 clamp(3rem,7vw,6rem)/.95 "Newsreader",serif}
.post-list article{padding:28px 0;border-bottom:1px solid var(--line)}
.post-list h2{font:400 2rem "Newsreader",serif}
.entry-content{max-width:760px}
.entry-content a{color:var(--lime);text-decoration:underline}
@media(max-width:800px){.menu li:not(:last-child){display:none}
.hero{height:auto;min-height:0;grid-template-columns:1fr;gap:65px}
.field-note{margin-bottom:20px}
.about-grid,.research-grid,.degrees{grid-template-columns:1fr}
.research-card.feature{min-height:430px}
.heading{display:block}
.heading .section-label{margin-bottom:30px}
.timeline article{grid-template-columns:95px 1fr}
.degrees>*{min-height:220px}
}
.publications{border-top:1px solid var(--line)}
.publication-list{border-top:1px solid var(--line)}
.publication-list>a{display:grid;grid-template-columns:100px 1fr 35px;gap:24px;padding:28px 0;border-bottom:1px solid var(--line)}
.publication-list>a>span{color:var(--lime);font-size:.78rem;letter-spacing:.12em}
.publication-list h3{font:400 clamp(1.4rem,2.6vw,2.25rem)/1.12 "Newsreader",serif;margin-bottom:8px}
.publication-list p{color:var(--gold);margin:0;font-size:.86rem}
.publication-list b{color:var(--lime);font-weight:400}
.institution-logo{display:block;width:min(100%,320px);height:auto;box-sizing:border-box;object-fit:contain;margin:0 0 28px;padding:18px;background:#fff!important;border:1px solid rgba(19,38,33,.12);border-radius:4px;filter:none!important;mix-blend-mode:normal!important;opacity:1!important}
.cv-card{margin-top:34px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.cv-card div{display:flex;flex-direction:column}.cv-card span{color:var(--paper);font-weight:600}.cv-card small{color:var(--muted);margin-top:3px}.cv-status{font-size:.8rem;color:var(--lime)!important;white-space:nowrap}
.older-publications{margin-top:22px}.older-publications summary{list-style:none;cursor:pointer;border:1px solid var(--line);padding:20px 24px;display:flex;align-items:center;justify-content:space-between}.older-publications summary::-webkit-details-marker{display:none}.older-publications summary span{font-weight:600}.older-publications summary span:after{content:" +";color:var(--lime);margin-left:8px}.older-publications[open] summary span:after{content:" −"}.older-publications summary small{color:var(--muted)}.older-publications .publication-list{margin-top:12px}.publication-list strong{color:var(--paper)}.publication-list em{color:var(--gold)}

/* Light academic theme */
:root{--ink:#f8faf7;--paper:#132621;--muted:#66766f;--lime:#477a35;--gold:#94691e;--line:rgba(19,38,33,.16)}
body{background:var(--ink);color:var(--paper)}
.menu a,.lede,.bio,.field-note p,.timeline p,.degrees article p{color:#52655d}
.light-section{background:#eef3ed;color:var(--paper)}
.research-card.feature{background:#17352f;color:#fff}
.research-card.feature p:not(.tag){color:#d3ded8}.feature .tag{color:#e6bd70}
.degrees>*{background:var(--ink)}
.publication-list strong{color:var(--paper)}
.button.primary{color:#fff}
@media(max-width:800px){.publication-list>a{grid-template-columns:58px 1fr 20px;gap:12px}}
+
/* Animated career globe */
.career-globe{width:min(100%,330px);margin:0 auto 30px;text-align:center}
.globe-sphere{position:relative;width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;border:1px solid rgba(71,122,53,.35);background-color:#e7efe4;background-image:radial-gradient(circle at 32% 25%,rgba(255,255,255,.95),transparent 30%),radial-gradient(ellipse at 65% 62%,rgba(71,122,53,.18) 0 9%,transparent 10%),radial-gradient(ellipse at 43% 38%,rgba(71,122,53,.16) 0 7%,transparent 8%),repeating-linear-gradient(90deg,transparent 0 38px,rgba(71,122,53,.17) 39px 40px),repeating-radial-gradient(ellipse at center,transparent 0 31px,rgba(71,122,53,.13) 32px 33px);box-shadow:inset -32px -18px 54px rgba(19,53,47,.22),inset 18px 12px 35px rgba(255,255,255,.8),0 20px 50px rgba(19,53,47,.13);animation:globe-rotate 16s linear infinite}
.globe-sphere:before,.globe-sphere:after{content:"";position:absolute;inset:7%;border:1px solid rgba(71,122,53,.22);border-radius:50%;pointer-events:none}
.globe-sphere:before{transform:scaleX(.42)}
.globe-sphere:after{transform:scaleY(.38)}
.globe-pin{position:absolute;z-index:3;display:flex;align-items:center;gap:5px;font-size:.61rem;line-height:1;color:#132621;white-space:nowrap;text-shadow:0 1px 3px rgba(255,255,255,.95)}
.globe-pin i{width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#94691e;box-shadow:0 0 0 3px rgba(148,105,30,.2),0 0 12px rgba(148,105,30,.6);animation:pin-pulse 2.2s ease-out infinite}
.globe-pin b{font-weight:700;background:rgba(248,250,247,.76);padding:3px 5px;border-radius:8px;backdrop-filter:blur(3px)}
.pin-uk{left:16%;top:22%}.pin-ch{left:24%;top:35%}.pin-kr{left:58%;top:27%}.pin-th{left:52%;top:57%}.pin-vn{left:62%;top:65%}.pin-ph{left:69%;top:48%}
.pin-ch i,.pin-th i{animation-delay:.4s}.pin-kr i,.pin-vn i{animation-delay:.8s}.pin-ph i{animation-delay:1.2s}
.globe-caption{margin:12px 0 0!important;color:var(--muted)!important;font-size:.67rem!important;text-transform:uppercase;letter-spacing:.12em}
@keyframes globe-rotate{to{background-position:0 0,180px 0,-150px 0,80px 0,0 0}}
@keyframes pin-pulse{0%{box-shadow:0 0 0 0 rgba(148,105,30,.38),0 0 10px rgba(148,105,30,.45)}70%{box-shadow:0 0 0 8px rgba(148,105,30,0),0 0 15px rgba(148,105,30,.5)}100%{box-shadow:0 0 0 0 rgba(148,105,30,0),0 0 10px rgba(148,105,30,.45)}}
@media(max-width:800px){.career-globe{width:min(82vw,300px)}.globe-pin{font-size:.58rem}}
@media(prefers-reduced-motion:reduce){.globe-sphere,.globe-pin i{animation:none}}
+
/* Modern geometric typography */
body{font-family:"Open Sans",Arial,sans-serif}
.monogram,.brand,h1,h2,h3,.large-copy,.section-heading h2,.heading h2,.experience h2,.degree-lead h2,.degrees h2,.contact h2,.content-area h1,.post-list h2,.publication-list h3{font-family:"Open Sans",Arial,sans-serif;font-weight:600}
h1,.hero h1{line-height:.94;letter-spacing:-.06em}
.large-copy{line-height:1.08;letter-spacing:-.045em}
.research-card h3,.timeline h3,.publication-list h3{letter-spacing:-.035em}
.timeline h3{font-size:2.15rem;line-height:1.18;font-weight:600}
+
/* Balanced type scale and layout rhythm */
:root{--space-section:96px}
.hero{min-height:720px;height:auto;max-height:none;padding-top:150px;padding-bottom:var(--space-section)}
h1,.hero h1{font-size:clamp(3.25rem,6vw,5.5rem);line-height:1;letter-spacing:-.055em;max-width:780px;margin:24px 0 28px}
.lede{font-size:1.08rem;line-height:1.7}
.statement,.experience,.education,.publications,.contact,section.block{padding-top:var(--space-section);padding-bottom:var(--space-section)}
.large-copy{font-size:clamp(2.15rem,3.7vw,3.55rem);line-height:1.12}
.section-heading h2,.heading h2,.experience h2{font-size:clamp(2.6rem,4vw,3.65rem);line-height:1.08}
.research,.light-inner{padding-top:var(--space-section);padding-bottom:var(--space-section)}
.research-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.research-card,.research-card.feature{grid-row:auto;min-height:360px;padding:30px}
.research-card h3{font-size:clamp(1.65rem,2.25vw,2.2rem);line-height:1.15;margin-bottom:18px}
.research-card p:not(.tag){font-size:.98rem;line-height:1.65}
.timeline{margin-top:42px}
.timeline article{grid-template-columns:150px 1fr;padding:27px 0;align-items:center}
.timeline h3{font-size:1.75rem;line-height:1.25;letter-spacing:-.025em;margin-bottom:5px}
.timeline p{font-size:.95rem}
.publication-list>a{grid-template-columns:90px 1fr 30px;padding:25px 0}
.publication-list h3{font-size:clamp(1.25rem,1.7vw,1.6rem);line-height:1.35;letter-spacing:-.02em}
.degree-grid,.degrees{grid-template-columns:1.05fr repeat(3,1fr)}
.degree-grid>*,.degrees>*{min-height:240px;padding:28px}
.degree-lead h2,.degrees h2{font-size:2.5rem;line-height:1.1}
.degree-grid article h3,.degrees article h3{font-size:1.4rem;line-height:1.25;margin:48px 0 10px}
.contact h2{font-size:clamp(3.2rem,6vw,5.4rem);line-height:1}
@media(max-width:900px){.research-grid{grid-template-columns:1fr}.research-card,.research-card.feature{min-height:270px}.degree-grid,.degrees{grid-template-columns:1fr 1fr}.degree-lead,.degrees>div{grid-column:1/-1}.timeline article{grid-template-columns:110px 1fr}.timeline h3{font-size:1.5rem}}
@media(max-width:600px){:root{--space-section:72px}.hero{padding-top:125px}.hero h1,h1{font-size:clamp(2.85rem,13vw,4rem)}.large-copy{font-size:2.1rem}.degree-grid,.degrees{grid-template-columns:1fr}.timeline article{grid-template-columns:1fr;gap:8px}.timeline h3{font-size:1.4rem}.publication-list>a{grid-template-columns:50px 1fr 20px}.section-heading h2,.heading h2,.experience h2{font-size:2.65rem}}
+
/* Unnumbered alternating section headings */
.section-title,.section-heading,.heading{margin-bottom:52px}
.section-title h2,.section-heading h2,.heading h2{font-size:clamp(2.8rem,4.5vw,4.2rem);line-height:1.05;letter-spacing:-.045em;margin:0}
.section-title.left,.section-heading:not(.align-right),.heading:not(.align-right){text-align:left;justify-content:flex-start}
.section-heading.align-right,.heading.align-right{display:flex;justify-content:flex-end;text-align:right}
.degree-grid,.degrees{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.degree-grid article,.degrees article{min-width:0}
.footer-email{border-bottom:1px solid var(--line);padding-bottom:2px}
footer,.site-footer .wrap{gap:24px;flex-wrap:wrap}
@media(max-width:800px){.section-title,.section-heading,.heading{margin-bottom:38px}.degree-grid,.degrees{display:grid;grid-template-columns:repeat(3,minmax(245px,1fr));overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;padding-bottom:10px}.degree-grid article,.degrees article{scroll-snap-align:start}.site-footer .wrap,footer{justify-content:flex-start}.site-footer .wrap>*:last-child,footer>*:last-child{margin-left:auto}}
+
/* Education CV row and campus footer image */
.cv-row{margin-top:22px;padding:22px 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px}
.cv-row div{display:flex;flex-direction:column}.cv-row>div>span{font-size:1.05rem;font-weight:600}.cv-row small{color:var(--muted);margin-top:3px}.cv-row>span{color:var(--gold);font-size:.82rem;font-weight:600;white-space:nowrap}
.campus-band{max-width:none;width:100%;height:clamp(360px,46vw,620px);margin:0;background-image:linear-gradient(90deg,rgba(8,27,24,.72),rgba(8,27,24,.08)),url("assets/birmingham-campus.jpg");background-size:cover;background-position:center;display:flex;align-items:flex-end;color:#fff}
.campus-band>div{width:min(100%,1180px);margin:0 auto;padding:0 24px 48px;display:flex;flex-direction:column;text-shadow:0 2px 16px rgba(0,0,0,.45)}
.campus-band span{font-size:.75rem;text-transform:uppercase;letter-spacing:.16em;font-weight:600}.campus-band strong{font-size:clamp(2rem,4vw,3.8rem);line-height:1.1;margin-top:8px}
@media(max-width:600px){.cv-row{align-items:flex-start}.cv-row>span{white-space:normal;text-align:right}.campus-band{height:420px;background-position:58% center}.campus-band>div{padding-bottom:34px}}
+
/* Vertically centred section-title bands */
.section-title,.section-heading,.heading{display:flex;align-items:center;min-height:156px;padding:28px 0;margin-bottom:48px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.light-section .heading,.research .section-heading{border-color:rgba(19,38,33,.16)}
@media(max-width:600px){.section-title,.section-heading,.heading{min-height:128px;padding:22px 0;margin-bottom:38px}}
+
/* Exact title centring and uniform research cards */
.section-title,.section-heading,.heading{display:grid;align-items:center;height:156px;min-height:0;padding:0}
.section-title.left,.section-heading:not(.align-right),.heading:not(.align-right){justify-items:start;justify-content:stretch}
.section-heading.align-right,.heading.align-right{display:grid;justify-items:end;justify-content:stretch;text-align:right}
.research-card,.research-card.feature{background:#17352f;color:#fff;border:0}
.research-card p:not(.tag),.research-card.feature p:not(.tag){color:#d3ded8}
.research-card .card-number,.research-card.feature .card-number{color:#b6d878}
.campus-band{height:auto;min-height:0;aspect-ratio:16/9;background-image:url("assets/birmingham-campus-clean.png");background-color:#f7f7f7;background-size:cover;background-position:center;display:block}
@media(max-width:600px){.section-title,.section-heading,.heading{height:128px;min-height:0;padding:0}.campus-band{height:auto;min-height:250px;aspect-ratio:auto;background-position:center}}
+
/* Education-list education and stronger navigation */
.nav-links,.menu{font-size:1rem;font-weight:700}
.nav-links>a,.menu a{font-size:1rem;font-weight:700}
.education-list{border-top:1px solid var(--line)}
.education-list article{display:grid;grid-template-columns:minmax(260px,.85fr) 1.5fr;gap:48px;padding:34px 0;border-bottom:1px solid var(--line)}
.education-list article>h3{font-size:1.35rem;line-height:1.35;margin:0}
.degree-row{display:grid;grid-template-columns:18px 1fr;gap:8px;padding:5px 0 18px}
.degree-row>span{color:var(--gold);font-weight:700}.degree-row strong{font-size:1.08rem}.degree-row strong small{font-size:.9rem;font-weight:500;color:var(--muted)}
.degree-row p{margin:7px 0 0;color:var(--muted);font-size:.94rem}.degree-row em{color:var(--paper)}
@media(max-width:700px){.education-list article{grid-template-columns:1fr;gap:18px;padding:28px 0}.nav-links,.menu{font-size:.95rem}.nav-links>a,.menu a{font-size:.95rem}}
+
/* Final section spacing and degree alignment */
section.education,section.experience,section.publications{padding-top:0}
.section-title,.section-heading,.heading{height:176px;min-height:176px;margin-bottom:52px;padding:0;place-items:center start}
.section-heading.align-right,.heading.align-right{place-items:center end}
.degree-row{grid-template-columns:20px minmax(0,1fr);align-items:start}
.degree-stack{min-width:0}.degree-stack .degree-row+.degree-row{margin-top:2px}
.education-list article>.degree-stack,.education-list article>.degree-row{grid-column:2}
.timeline{margin-top:0}
.timeline article{grid-template-columns:170px minmax(0,1fr);min-height:116px;padding:24px 0;align-items:center}
.timeline article>time{margin:0;align-self:center}.timeline article>div{min-width:0}.timeline article h3,.timeline article p{margin-top:0}.timeline article p{margin-bottom:0}
@media(max-width:900px){.timeline article{grid-template-columns:125px minmax(0,1fr)}}
@media(max-width:700px){.education-list article>.degree-stack,.education-list article>.degree-row{grid-column:1}}
@media(max-width:600px){.timeline article{grid-template-columns:1fr;min-height:0;gap:8px;padding:24px 0;align-items:start}}
.degree-row>div{margin:0;padding:0}.degree-row strong{display:block;margin:0;line-height:1.5}
@media(max-width:600px){.section-title,.section-heading,.heading{height:140px;min-height:140px;margin-bottom:40px}}
.section-title,.section-heading,.heading{display:flex!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box;padding-top:0!important;padding-bottom:0!important}
.section-heading.align-right,.heading.align-right{justify-content:flex-end!important}
@media(max-width:800px){.institution-logo{width:280px;height:auto}}
.field-note .section-label{font-size:.84rem;margin:30px 0 12px}.field-note h2{font-size:clamp(1.55rem,2vw,2.1rem);line-height:1.15;margin-bottom:12px;white-space:nowrap;letter-spacing:-.035em}.field-note>p:not(.section-label){font-size:1.02rem;line-height:1.65}

/* Contact section linked from the primary navigation. */
section.contact-section{padding-top:0;scroll-margin-top:24px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.contact-grid>*{min-width:0}
.contact-intro p{max-width:480px;color:#52655d;font-size:1.08rem;line-height:1.7;margin-bottom:28px}
.contact-intro .button{display:inline-flex;align-items:center;gap:12px}
.contact-details{margin:0}
.contact-details>div{padding:0 0 24px;border-bottom:1px solid var(--line)}
.contact-details>div+div{padding-top:24px}
.contact-details dt{color:var(--muted);font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;margin-bottom:8px}
.contact-details dd{margin:0;font-size:clamp(1.05rem,1.65vw,1.3rem);font-weight:600;overflow-wrap:anywhere}
.contact-details a{color:var(--lime);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.contact-section a:focus-visible{outline:2px solid var(--lime);outline-offset:6px}
@media(max-width:700px){.contact-grid{grid-template-columns:1fr;gap:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
