/* Change these colors to update the entire site. */
:root {
  --paper: #faf8f2;
  --ink: #22231f;
  --wine: #752938;
  --rule: #ccc7bc;
  --serif: "Baskervville", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: auto; padding: 0 clamp(1.25rem,6vw,6rem); max-width: 1440px; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b87529; outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; background: white; }
header, nav, footer, .poster-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header { padding: 1.2rem 0; border-bottom: 1px solid var(--ink); }
.wordmark { font: bold 1.5rem var(--serif); text-decoration: none; }
.wordmark span, h1 em, h2 em { color: var(--wine); }
nav { gap: clamp(.8rem,3vw,3rem); }
nav a { text-decoration: none; }
nav a:hover, footer a:hover { color: var(--wine); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 8%; padding: clamp(3rem,6vw,6rem) 0; }
.label, .poster-head, .poster-body small, .poster-foot { font: 600 .79rem/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.label { color: var(--wine); margin: 0 0 1rem; }
h1, h2, .poster-body p { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4rem,8.8vw,8rem); line-height: .93; letter-spacing: -.065em; margin: 1.7rem 0; }
.intro { max-width: 36rem; font-size: clamp(1.1rem,1.6vw,1.35rem); }
.button { display: inline-block; padding: .7rem 1.25rem; margin-top: .7rem; background: var(--ink); color: white; text-decoration: none; }
.button:hover { background: var(--wine); }
.poster { color: #fff6dc; background: var(--wine); padding: clamp(1.5rem,3.3vw,3.5rem); border-left: .55rem double #d69c86; box-shadow: 6px 6px 0 #e2daca; transform: rotate(1deg); }
.poster-head, .poster-foot { padding: .5rem 0; border-bottom: 1px solid #d69c86; }
.poster-body { margin: 2.3rem 0 1.8rem; }
.poster-body p { font-size: clamp(3rem,4.8vw,5rem); line-height: .98; letter-spacing: -.045em; margin: .65rem 0; }
.poster-foot { border: 0; border-top: 1px solid #d69c86; }
.section { display: grid; grid-template-columns: 1fr 2fr; gap: 6%; padding: clamp(2.6rem,5vw,5rem) 0; border-top: 1px solid var(--rule); scroll-margin: 1.2rem; }
h2 { margin: 0; font-size: clamp(2.3rem,4.3vw,3.7rem); line-height: 1.04; letter-spacing: -.045em; }
.copy, details p { max-width: 48rem; font-size: 1.1rem; }
.copy p:first-child { margin-top: 0; }
details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
summary { cursor: pointer; font: 1.5rem/1.35 var(--serif); }
summary::marker { color: var(--wine); font-size: .75em; }
footer { border-top: 1px solid var(--ink); padding: 1.3rem 0; font-size: .9rem; }
@media (max-width: 680px) {
  .hero, .section { grid-template-columns: 1fr; gap: 2rem; }
  .poster { width: min(100%, 26rem); }
  .wordmark { font-size: 1.15rem; }
  nav { font-size: .9rem; }
}

/* Portfolio photographs, education, and the research archive. */
.feature, .gallery figure { margin: 0; }
.feature img { display: block; width: 100%; height: clamp(22rem,38vw,35rem); object-fit: cover; object-position: center 32%; }
figcaption { font: .94rem/1.5 var(--sans); padding: .7rem 0; }
.feature figcaption { border-bottom: 1px solid var(--rule); }
.wide { width: 100%; height: auto; display: block; }
.education p { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin: 0 0 1rem; }
.education span, .education strong { display: block; }
.education span, .read { color: var(--wine); font-size: .94rem; }
.education strong, h3, h4 { font-family: var(--serif); }
.education strong { font-size: 1.55rem; }
h3 { font-size: 1.8rem; line-height: 1.15; margin: 0 0 1rem; }
h4 { margin: 0; font-weight: normal; font-size: 1.45rem; line-height: 1.25; }
h4 a { text-decoration: none; }
h4 a:hover { text-decoration: underline; }
.paper { border-top: 1px solid var(--rule); padding: 1rem 0 1.35rem; }
.paper p { margin: .5rem 0; }
.paper + h3, .paper + .label { margin-top: 1.7rem; }
.album { padding: 3rem 0; }
.album h1 { font-size: clamp(3.3rem,7vw,7rem); }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem 1.5rem; margin-top: 2rem; }
.gallery img { width: 100%; display: block; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center 32%; }
.gallery strong { display: block; font: 1.45rem/1.35 var(--serif); }
@media (max-width: 760px) {
  header, nav { flex-wrap: wrap; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
}

.headline { font: 600 1.08rem/1.55 var(--sans); color: var(--wine); max-width: 37rem; }
.profile-banner { display: block; margin: 0 0 3rem; }
.profile-banner img, .announcement img { width: 100%; height: auto; display: block; }
.announcement { margin: 2rem 0; }
blockquote { margin: 1.4rem 0 .5rem; padding-left: 1rem; border-left: 2px solid var(--wine); font: italic 1.4rem/1.45 var(--serif); }
#mun .label:not(:first-child) { margin-top: 3rem; }
.album-nav { justify-content: flex-start; padding: 1rem 0; margin-bottom: 3rem; border-block: 1px solid var(--rule); }
.album-nav a { text-decoration: underline; }
.ted-album { margin-top: 3rem; padding: clamp(1.5rem,5vw,4rem); color: var(--paper); background: var(--wine); }
.ted-album .label { color: inherit; }

footer { flex-wrap: wrap; }
.contact { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-style: normal; }
@media (max-width: 600px) {
  footer { flex-direction: column; align-items: flex-start; }
  .contact { flex-direction: column; }
}
.feature { position: relative; }
.next-portrait { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.next-portrait:focus-visible { outline: 3px solid #085c96; outline-offset: 2px; }
.feature #rotation { position: absolute; bottom: .8rem; right: .8rem; padding: .45rem .75rem; background: #222; color: white; border: 1px solid white; font: inherit; font-size: .88rem; cursor: pointer; }
.album section h3 { margin: 2rem 0 .75rem; }
.album .gallery { margin: 1rem 0 2.5rem; gap: .85rem; }
.album #ted-ed { padding-top: 2rem; border-top: 1px solid var(--rule); }
.album .gallery img { object-position: center 45%; }

.link-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.link-list li { padding: .65rem 0; border-bottom: 1px solid var(--rule); }

.home {
  --paper: #f8fbfa;
  --ink: #152e40;
  --wine: #9b3449;
  --gutter: clamp(1.25rem, 6vw, 6rem);
  background: var(--paper);
}
.home header { border-color: #a9c6cc; }
.home .hero, .home #about, .home #now {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}
.home .hero {
  background-color: #eaf4f7;
  background-image: linear-gradient(105deg, #f0f8f8 17%, transparent 75%),
    repeating-radial-gradient(ellipse at 98% 70%, transparent 0 48px, #a7cbd4 49px, transparent 50px 85px);
}
.flag-line { display: flex; gap: .55rem; margin-bottom: 1.7rem; }
.flag-line i { width: 2.1rem; aspect-ratio: 3/2; box-shadow: 0 0 0 1px #24374428; }
.japan { background: radial-gradient(circle, #ba1842 0 32%, transparent 34%), white; }
.france { background: linear-gradient(90deg, #193876 33.33%, white 33.33% 66.67%, #d94750 66.67%); }
.italy { background: linear-gradient(90deg, #218159 33.33%, white 33.33% 66.67%, #cc4449 66.67%); }
.germany { background: linear-gradient(#252525 33.33%, #b52c35 33.33% 66.67%, #f7be40 66.67%); }
.ukraine { background: linear-gradient(#226eb5 50%, #fad34c 50%); }
.home .feature { border: .5rem solid white; box-shadow: .6rem .6rem 0 #a9cdd6; }
.home #about { background: #fff; align-items: start; }
.field-photo { display: block; margin-top: 1.6rem; color: var(--ink); text-decoration: none; }
.field-photo img { display: block; width: 100%; height: auto; }
.field-photo span { display: block; padding: .6rem 0; border-bottom: 1px solid var(--rule); text-decoration: underline; }
.home #now { background: #dfefed; }
.home #activities h3 { color: #245970; }
@media (max-width: 680px) {
  .home .hero { padding-top: 2rem; }
  .flag-line { margin-bottom: 1.1rem; }
  .home .hero > *, .home #about > * { min-width: 0; }
}

/* Site-wide typography, surfaces and navigation */
body { background: #f6faf9; color: #152e40; }
header { min-height: 4.5rem; border-color: #b5c9cd; }
header nav a:hover { color: #8d3046; }
.button { background: #183c50; border-radius: 2rem; }
.collection .album { padding-top: clamp(1rem, 3vw, 2.5rem); }
.collection-hero {
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 40vw, 35rem);
  padding: clamp(1.4rem, 5vw, 4.5rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  border-radius: 1.2rem;
  background: linear-gradient(0deg, rgba(8,27,42,.94), rgba(8,27,42,.05) 70%), var(--cover) var(--focus) / cover;
}
.collection-hero h1 { color: white; margin: 0; text-wrap: balance; }
.collection-hero h1 em { color: #ccece8; }
.collection .paper {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 1rem;
  background: #fff;
  border: 1px solid #cedddd;
  border-left: .28rem solid #47817e;
  border-radius: .85rem;
}
.collection .paper p { margin: .8rem 0; }
.collection .section { border-color: #b5c9cd; }
.collection .gallery img { border-radius: .65rem; }
.collection .gallery a { display: block; }
.collection .album-nav { justify-content: flex-start; border: 0; flex-wrap: wrap; margin-bottom: 1rem; }
.album-nav a { padding: .6rem 1rem; border-radius: 2rem; background: #dcece9; text-decoration: none; }
.mun-page blockquote { background: #dfefed; padding: 1.6rem; border-radius: 0 .8rem .8rem 0; }
.home .feature, .field-photo img { border-radius: .8rem; }
.home .feature img { border-radius: .4rem; }
.home .education { display: grid; gap: .8rem; }
.home .education p { border: 1px solid #c4d8dc; border-radius: .8rem; background: white; padding: 1.15rem 1.4rem; margin: 0; }
.home #activities .copy h3:not(:first-child) { border-top: 1px solid #bed3d6; padding-top: 1.5rem; margin-top: 1.5rem; }
.home #my-links .link-list { padding: .3rem 1.25rem; background: white; border: 1px solid #cedddd; border-radius: .8rem; }
.home #my-links li:last-child { border-bottom: none; }
@media (max-width: 680px) {
  .collection-hero { min-height: 17rem; }
  .collection-hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  header nav { justify-content: flex-start; gap: .1rem 1rem; }
  header nav a { display: inline-flex; align-items: center; min-height: 2.6rem; }
  .field-photo { max-width: 32rem; }
}
.research-page .collection-hero {
  background-color: #234958;
  background-image: linear-gradient(70deg, #17394b 8%, rgba(23,57,75,.83) 43%, rgba(23,57,75,.10) 100%), var(--cover);
  background-position: center, right 18%;
  background-size: cover, 70% auto;
  background-repeat: no-repeat;
}
.campus, .journey-portrait { margin: 1.5rem 0 0; }
.campus img, .journey-portrait img { display: block; width: 100%; border-radius: .8rem; }
.journey-portrait img { max-height: 30rem; object-fit: cover; object-position: center 28%; }
.diplomatic-flags { margin: 1.1rem 0; color: var(--ink); font-size: 1.3rem; line-height: 1.8; }
.research-page .presentation-cover { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; background: linear-gradient(115deg,#12354b,#316569); }
.presentation-cover img { display: block; width: 100%; border: .4rem solid white; border-radius: .35rem; box-shadow: 0 1.1rem 2rem #051b304d; }
.research-page .paper { display: grid; grid-template-columns: minmax(0,1fr) minmax(7rem, 31%); align-items: center; gap: 1rem; }
.pdf-preview { display: grid; place-items: center; background: #e5edec; padding: .75rem; border-radius: .5rem; }
.pdf-preview img { width: 100%; height: auto; max-height: 12rem; object-fit: contain; }
.home #my-links .field-photo img { max-height: 21rem; object-fit: contain; background: #e7efef; }
@media(max-width:680px) {
  .research-page .presentation-cover, .research-page .paper { grid-template-columns: 1fr; }
  .pdf-preview { max-width: 15rem; }
  .research-page .presentation-cover { gap: 1.25rem; }
  .home #my-links .field-photo { display: inline-block; width: 45%; vertical-align: middle; }
}

.assembly-flags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(.4rem,1vw,.9rem); padding: .9rem 0; }
.assembly-flags img, .assembly-flags span { width: clamp(1.5rem,2.5vw,2.25rem); height: 1.5rem; object-fit: contain; line-height: 1.5rem; font-size: 1.4rem; }
.home .assembly-flags { justify-content: flex-start; padding-top: 0; margin-bottom: 1rem; max-width: 34rem; }
.school-entry { display: flow-root; }
.school-logo { float: right; width: clamp(3rem,7vw,4.75rem); height: 4rem; object-fit: contain; margin-left: 1rem; }
.school-campus { display: block; width: 100%; max-height: 17rem; object-fit: cover; margin-top: 1rem; border-radius: .5rem; }

.research-page .work-index { display: block; }
.work-index > h2 { margin-bottom: 1.75rem; }
.work-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 6%; align-items: start; margin: 1rem 0 2.75rem; }
.work-row .topic { margin: 0; }
.topic img { display: block; width: 100%; height: clamp(12rem,19vw,18rem); object-fit: cover; border-radius: .75rem; }
.topic figcaption { line-height: 1.4; }
.topic small { font-size: .85rem; color: #40565c; }
.research-page .work-row .paper { margin: 0; align-self: stretch; }
@media (max-width: 680px) {
  .work-row { grid-template-columns: minmax(0,1fr); gap: .5rem; }
}

.conference-bunting { display: block; width: 100%; max-width: 42rem; height: auto; margin: 0 0 1rem; }
html { container-type: inline-size; }
.flag-canopy { position: relative; width: 100cqw; margin-inline: calc(50% - 50cqw); height: clamp(4.5rem, 7.8vw, 7rem); overflow: hidden; pointer-events: none; }
.flag-strand { position: absolute; inset: 0 0 clamp(1.1rem, 2.8vw, 2.5rem); }
.flag-strand svg { width: 100%; height: 100%; overflow: visible; }
.flag-strand path { fill: none; stroke: #4f6973; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.flag-strand span { position: absolute; width: clamp(1.1rem, 3.1vw, 3.3rem); transform: translateX(-50%) rotate(var(--tilt)); transform-origin: top center; }
.flag-strand img { display: block; width: 100%; max-height: clamp(1rem, 2.5vw, 2.4rem); object-fit: contain; object-position: top; transform-origin: top center; }
.location-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 2rem 6%; padding-block: 2.5rem 1rem; }
.location-footer p { font-size: 1rem; max-width: 34rem; }
.location-footer .contact { flex-direction: column; }
.city-map { display: block; width: 100%; height: 14rem; margin-bottom: .5rem; border: 1px solid #a9c6cc; border-radius: .75rem; }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid var(--rule); padding-top: 1rem; display: flex; justify-content: space-between; }
@media(max-width:680px) { .location-footer { grid-template-columns: 1fr; } }

.home .hero, .collection-hero { position: relative; isolation: isolate; overflow: clip; }
.home .hero { background: linear-gradient(115deg,#f7fbfd 6%,#e8f4fb 56%,#bdddf0); }
.hero > :not(canvas), .collection-hero > :not(canvas) { position: relative; z-index: 1; }
.diplomatic-globe { position: absolute; pointer-events: none; width: clamp(18rem,48vw,48rem); height: auto; right: -9%; top: -13%; opacity: .38; transform: translateY(var(--globe-shift,0px)) rotate(-18deg); }
.collection-hero .diplomatic-globe { width: clamp(16rem,36vw,32rem); right: -8%; top: -24%; opacity: .47; }
.home .feature { box-shadow: .52rem .58rem 0 #9ac4df, 0 1.1rem 2.2rem #164d7129; }
.section h2, .wordmark span { color: #164b6d; }
@media (prefers-reduced-motion:no-preference) {
  :is(.feature,.field-photo,.journey-portrait,.school-campus,.topic,.gallery figure,.presentation-cover > a) {
    transform: perspective(950px) translateY(var(--lift,0px)) rotateX(var(--pitch,0deg));
  }
  @supports (animation-timeline:view()) {
    .section h2, .work-row .paper > h3 { animation: chapter-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes chapter-arrive { from { transform: perspective(800px) translateX(-12px) rotateY(-6deg); } to { transform: none; } }
  }
}
@media(max-width:680px) { .home .diplomatic-globe { top: -.75rem; right: -9rem; opacity: .23; } }

.collection-hero.photo-banner { background: #102b3d; padding-bottom: clamp(4.4rem,7vw,6rem); }
.photo-banner > img.banner-frame { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; opacity: 0; }
.photo-banner > img.current { opacity: 1; }
.photo-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top,#071d30ed,transparent 75%); }
.photo-banner > .banner-next { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; }
.photo-banner > .banner-next:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.photo-banner > #rotation { position: absolute; right: 1rem; bottom: .85rem; z-index: 2; border: 1px solid #ffffff83; border-radius: 2rem; padding: .55rem 1rem; background: #102637dc; color: white; font: inherit; cursor: pointer; }
@media(prefers-reduced-motion:no-preference) { .banner-frame { transition: opacity .6s ease; } }

#interests .pool-start {width:min(100%,27rem);display:block;margin:1rem 0 2rem}
.interest-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0 2rem}
.interest-pair img {width:100%;height:auto;align-self:center}
#nepal-flag {border:0;background:transparent;color:inherit;cursor:pointer;padding:0;position:relative;width:100%;pointer-events:auto;touch-action:manipulation}
#nepal-flag::after {content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:44px;min-height:44px;width:100%;height:100%}

.closing-day {margin:2rem 0 1rem;max-width:30rem}.closing-day img {display:block;width:100%;height:auto}.closing-day figcaption {margin-top:.65rem;line-height:1.5}
