/* A quiet, text-first academic website. */
:root { color-scheme: light; --ink: #24394a; --body: #3e464d; --accent: #294e71; --line: #d9dfe3; }
* { box-sizing: border-box; }
body { margin: 0; background: #fdfdfb; color: var(--body); font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.7; }
.site-header, main { width: min(920px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 0 25px; border-bottom: 1px solid var(--line); }
.site-name { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 24px; white-space: nowrap; }
nav { display: flex; gap: 27px; flex-wrap: wrap; }
a { color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: #101f2b; }
nav a { font-size: 18px; text-decoration: none; padding: 5px 0; }
nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main { padding: 58px 0 80px; }
h1, h2 { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(40px, 5vw, 56px); line-height: 1.15; letter-spacing: -1.1px; }
h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.3; }
p { max-width: 780px; margin: 0 0 20px; }
.subtitle { margin-top: 14px; color: var(--accent); font-size: 22px; }
section { margin-top: 45px; }
.interests { margin: 0; padding-left: 25px; }
.interests li { padding-left: 6px; margin: 9px 0; }
.interests li::marker { color: var(--accent); }
.education { list-style: none; margin: 0; padding: 0; }
.education li { margin-bottom: 25px; }
strong { font-weight: 600; }
.contact { margin-top: 42px; }
.publication-intro { margin-top: 25px; }
.papers { list-style: none; padding: 0; margin: 42px 0 0; }
.papers li { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.papers li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.papers h2 { font-family: Arial, Helvetica, sans-serif; font-size: 23px; line-height: 1.5; font-weight: 600; margin-bottom: 15px; }
.papers h2 a { text-decoration: none; }
.papers h2 a:hover { text-decoration: underline; }
.papers p { margin: 4px 0; font-size: 18px; line-height: 1.65; }
.skip { position: absolute; top: -100px; left: 16px; padding: 8px 12px; background: white; }
.skip:focus { top: 8px; }
@media(max-width: 760px) {
  .site-header, main { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 18px; padding: 25px 0 20px; }
  nav { gap: 24px; }
  nav a { font-size: 17px; }
  main { padding-top: 38px; padding-bottom: 55px; }
  body { font-size: 19px; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  section { margin-top: 36px; }
  .subtitle { font-size: 20px; }
  .papers h2 { font-size: 22px; }
}
@media(max-width: 370px) { nav { gap: 17px; } nav a { font-size: 16px; } }

/* Restore the original monogram; keep the page text-led. */
.site-name { display: flex; align-items: center; gap: 15px; }
.monogram { font-family: Georgia, 'Times New Roman', serif; font-size: 56px; line-height: 1; letter-spacing: -7px; padding-right: 7px; }
.monogram span { color: #347969; }
.home-section { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 42px; }
.home-education, .projects, .news { list-style: none; padding: 0; margin: 0; }
.home-education li, .projects li { margin-bottom: 23px; }
.home-education li:last-child, .projects li:last-child { margin-bottom: 0; }
.news li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; margin-top: 23px; }
.news time { color: var(--accent); }
.news p { margin: 0; }
@media (min-width: 761px) and (max-width: 980px) { .site-header { flex-direction: column; align-items: flex-start; gap: 20px; } }
@media (max-width: 760px) { .monogram { font-size: 50px; } .site-name { gap: 13px; } .home-section { padding-top: 28px; margin-top: 34px; } .news li { grid-template-columns: 1fr; gap: 6px; } }

.students { border-top: 1px solid var(--line); padding-top: 32px; }
.student-list { list-style: none; margin: 0; padding: 0; }
.student-list li { margin-top: 25px; }
.student-list h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 400; line-height: 1.3; color: var(--ink); margin: 0 0 8px; }
.student-list p { margin: 0; }

/* Consistent 4:5 portrait windows; original photo files remain unchanged. */
.portrait { display: block; width: 240px; height: 300px; object-fit: cover; object-position: 50% 30%; flex: none; }
.person-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 38px; align-items: start; }
.person-details { padding-top: 5px; }
.person-details p:last-child { margin-bottom: 0; }
.student-list .person-row { margin-top: 32px; }
.student-list h3 { font-size: 28px; }
.about-lead { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: center; margin-bottom: 28px; }
.about-lead .portrait { grid-column: 2; grid-row: 1; }
.about-lead p { grid-column: 1; grid-row: 1; margin: 0; }
@media (max-width: 620px) {
  .about-lead, .person-row { grid-template-columns: 1fr; gap: 24px; }
  .about-lead .portrait, .about-lead p { grid-column: auto; grid-row: auto; }
  .portrait { max-width: 100%; }
  .student-list .person-row { margin-top: 32px; }
}

/* Dark frame with a clear, blue-accented reading surface. */
:root { --ink: #172f48; --body: #35424e; --accent: #1767a6; --line: #dbe3eb; }
body { background: #191d23; }
.site-header { width: min(1040px, calc(100% - 64px)); padding: 30px 0; border-bottom: 0; }
.site-name { color: #f6f8fb; }
.monogram span { color: #72b9ed; }
nav a { color: #e6ebf1; }
nav a:hover { color: #8dccf7; }
nav a[aria-current="page"] { color: #8dccf7; box-shadow: 0 2px #72b9ed; }
main { width: min(1040px, calc(100% - 64px)); background: #fdfefe; margin-bottom: 48px; padding: 52px 60px 64px; border-top: 4px solid #428ec5; }
h1 { color: #152a3e; }
h2 { color: #1767a6; }
.subtitle { color: #52677b; }
.student-list h3 { color: #172f48; }
.home-section, .students { border-color: #dbe3eb; }
.portrait { background: #e5eaf0; }
@media(max-width: 760px) {
  .site-header { width: calc(100% - 40px); padding: 24px 0; }
  main { width: calc(100% - 24px); padding: 32px 22px 44px; margin-bottom: 24px; }
  h1 { font-size: 40px; }
}
@media (min-width: 621px) and (max-width: 820px) { .about-lead, .person-row { grid-template-columns: 1fr; gap: 24px; } .about-lead .portrait, .about-lead p { grid-column: auto; grid-row: auto; } }

/* Recruitment announcement, with the same restrained blue accent. */
nav { column-gap: 23px; row-gap: 10px; }
.openings { border-left: 3px solid #428ec5; padding: 3px 0 3px 25px; }
.opening-term { color: var(--accent); font-size: 24px; font-weight: 600; margin-top: -4px; }
.openings p:last-child { margin-bottom: 0; }
.contact-email { overflow-wrap: anywhere; }
@media(max-width: 760px) { .openings { padding-left: 18px; } nav { column-gap: 24px; row-gap: 10px; } }

/* Typography matched to quan-research.com: Arvo regular and bold. */
@font-face { font-family: 'Arvo'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/arvo-regular.ttf') format('truetype'); }
@font-face { font-family: 'Arvo'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/arvo-bold.ttf') format('truetype'); }
@font-face { font-family: 'Arvo'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/arvo-italic.ttf') format('truetype'); }
@font-face { font-family: 'Arvo'; font-style: italic; font-weight: 700; font-display: swap; src: url('fonts/arvo-bold-italic.ttf') format('truetype'); }
body, .site-name, h1, h2, h3, .student-list h3, .papers h2 { font-family: 'Arvo', Georgia, serif; }
h1, h2, h3, .site-name, .student-list h3, .papers h2, nav a { font-weight: 700; }
strong, .opening-term { font-weight: 700; }
h1 { letter-spacing: -0.5px; }
.monogram { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
@media (max-width: 1150px) { .site-header { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* Full-width light page; dark background belongs only to the top navigation. */
body { background: #fdfefe; }
.site-header {
  width: 100%;
  background: #191d23;
  padding: 30px max(32px, calc((100% - 1040px) / 2));
}
main { border-top: 0; }
@media(max-width: 760px) {
  .site-header { width: 100%; padding: 24px 20px; }
}

.affiliation-logos { display: flex; align-items: center; justify-content: space-between; gap: 36px; background: #0033a0; padding: 28px 32px; margin: 30px 0 0; }
.affiliation-logos img { display: block; height: auto; object-fit: contain; min-width: 0; }
.university-logo { width: 39%; }
.college-logo { width: 53%; }
.cv-link { margin: 26px 0 0; }
@media(max-width: 640px) { .affiliation-logos { flex-direction: column; gap: 22px; padding: 26px 20px; } .university-logo { width: min(100%, 300px); } .college-logo { width: 100%; max-width: 380px; } }

/* Dark mineral texture is decorative; the reading area stays light. */
.site-header {
  background-color: #111a24;
  background-image: linear-gradient(90deg, rgba(8, 16, 25, .70), rgba(8, 16, 25, .38)), url('images/mineral-header.png');
  background-size: cover;
  background-position: center 52%;
  border-bottom: 1px solid #354b60;
}
.site-name, nav a { text-shadow: 0 1px 3px rgba(0, 0, 0, .65); }
.about-heading { color: var(--accent); font-size: 30px; line-height: 1.3; letter-spacing: normal; margin: 0 0 16px; }
@media(max-width: 760px) { .site-header { background-position: 65% center; } .about-heading { font-size: 28px; } }
@media(max-width: 400px) { .site-name { font-size: 18px; gap: 10px; } .monogram { font-size: 44px; } }

/* One full illustration beneath each research-interest heading. */
.interest-gallery { margin-top: 28px; }
.interest-item { margin: 0 0 42px; }
.interest-item:last-child { margin-bottom: 0; }
.interest-item h3 { font-size: 25px; line-height: 1.4; color: var(--ink); margin: 0 0 18px; }
.interest-image { display: block; width: 100%; max-width: 760px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
@media(max-width: 760px) { .interest-item h3 { font-size: 23px; } .interest-item { margin-bottom: 32px; } }

/* Research overview: title, illustration, then concise explanation. */
.interest-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.interest-item, .interest-item:last-child { display: grid; grid-template-rows: 72px auto 1fr; align-content: start; gap: 20px; margin: 0; min-width: 0; }
.interest-item h3 { font-size: 23px; line-height: 1.35; margin: 0; }
.interest-image { width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.interest-item p { font-size: 18px; line-height: 1.65; margin: 0; }
@media(max-width: 850px) { .interest-gallery { grid-template-columns: 1fr; gap: 38px; } .interest-item, .interest-item:last-child { grid-template-rows: auto auto auto; gap: 18px; } .interest-item h3 { font-size: 25px; } .interest-image { max-width: 600px; } .interest-item p { font-size: 19px; } }

/* Education stays with the student profile. */
.student-education { margin-top: 24px; }
.student-education p { font-size: 18px; line-height: 1.65; margin: 0 0 16px; }
.student-education p:last-child { margin-bottom: 0; }

/* Display only the event photograph from the owner-provided screenshot. */
.news-content { min-width: 0; }
.news-photo { position: relative; width: 50%; max-width: 310px; aspect-ratio: 890 / 530; overflow: hidden; margin-top: 20px; }
.news-photo img { position: absolute; width: 121.01124%; max-width: none; height: auto; left: -14.1573%; top: -67.73585%; }

/* Research: spacious overview and three illustrated research themes. */
.research-overview { margin: 0 auto; max-width: 840px; }
.research-page h1, .research-topic h2 { text-align: center; color: var(--ink); }
.research-page h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.25; }
.research-page h1::after, .research-topic h2::after { content: ''; display: block; width: 76px; height: 2px; background: #428ec5; margin: 26px auto 36px; }
.research-overview p { max-width: none; font-size: 21px; line-height: 1.8; }
.research-overview p:last-child { margin-bottom: 0; }
.research-topic { margin-top: 72px; }
.research-topic h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.35; margin: 0; }
.research-topic-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 42px; align-items: center; }
.research-topic-body img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.research-topic-body p { font-size: 20px; line-height: 1.75; margin: 0 0 18px; }
.research-topic-body p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .research-topic { margin-top: 50px; }
  .research-topic-body { grid-template-columns: 1fr; gap: 24px; }
  .research-topic-body img { width: 100%; max-width: 460px; margin: 0 auto; }
  .research-overview p, .research-topic-body p { font-size: 19px; }
  .research-page h1::after, .research-topic h2::after { margin: 22px auto 28px; }
}

/* Published figures: original image files, with CSS windows for indicated details. */
.paper-figure { margin: 0; min-width: 0; }
.paper-art { display: flex; align-items: center; width: 100%; aspect-ratio: 4 / 3; }
.paper-art > img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.paper-window { display: block; position: relative; overflow: hidden; width: 100%; }
.paper-window img, .research-topic-body .paper-window img { position: absolute; display: block; max-width: none; height: auto; aspect-ratio: auto; margin: 0; }
.paper-figure figcaption { font-size: 12px; line-height: 1.6; color: #52677b; margin-top: 10px; }
.paper-figure figcaption a { color: inherit; text-decoration: none; }
.paper-figure figcaption a:hover { text-decoration: underline; }
.paper-figure figcaption span { display: block; }
@media (max-width: 820px) {
  .research-topic-body > .paper-figure { width: 100%; max-width: 460px; margin: 0 auto; }
  .research-topic-body .paper-art > img { width: 100%; max-width: none; margin: 0; }
}

/* Hide stray panel marks in the supplied diagram without altering its scientific content. */
.adsorbent-diagram { display: block; position: relative; width: 100%; }
.research-topic-body .adsorbent-diagram img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: auto; margin: 0; }
.adsorbent-diagram::before, .adsorbent-diagram::after { content: ''; position: absolute; left: 0; background: #fff; pointer-events: none; }
.adsorbent-diagram::before { top: 0; width: 10%; height: 12%; }
.adsorbent-diagram::after { bottom: 0; width: 10%; height: 3%; }
/* Quieter publication typography, retaining clear contrast and hierarchy. */
.papers h2 { font-size: 20px; line-height: 1.55; margin-bottom: 10px; }
.papers h2 a { color: #476782; }
.papers h2 a:hover { color: #234c70; }
.papers p { font-size: 16px; line-height: 1.7; color: #52616d; }
.papers p:last-child { color: #687784; }

/* Compact university marks on the Contact page, with no banner background. */
.contact-affiliations { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-logo { display: block; flex: none; object-fit: contain; max-width: 100%; height: auto; }
.contact-logo-uk { width: 190px; }
.contact-logo-engineering { width: 280px; }
@media(max-width: 520px) { .contact-affiliations { gap: 22px; } }

/* Equipment photos supplied in the owner's equipment list. */
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; margin-top: 30px; }
.equipment-item { margin: 0; min-width: 0; }
.equipment-item img { display: block; width: 100%; height: 185px; object-fit: contain; }
.equipment-item figcaption { margin-top: 14px; color: var(--ink); font-size: 17px; line-height: 1.5; text-align: center; }
@media(max-width: 760px) { .equipment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; } .equipment-item img { height: 155px; } }
@media(max-width: 440px) { .equipment-grid { grid-template-columns: 1fr; } .equipment-item img { height: 190px; } }

.equipment-item img.equipment-rotated { width: 185px; margin-inline: auto; transform: rotate(90deg); }
@media(max-width:760px) { .equipment-item img.equipment-rotated { width:155px; } }
@media(max-width:440px) { .equipment-item img.equipment-rotated { width:190px; } }

/* One year label at the left of each group of selected publications. */
.publication-year { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 28px; margin-top: 38px; }
.publication-year > h2 { font-size: 26px; line-height: 1.4; margin: 0; color: #476782; }
.publication-year .papers { margin: 0; }
.papers h3 { font-size: 20px; line-height: 1.55; margin: 0 0 10px; }
.papers h3 a { color: #476782; text-decoration: none; }
.papers h3 a:hover { color: #234c70; text-decoration: underline; }
@media(max-width:600px) { .publication-year { grid-template-columns: 1fr; gap: 18px; } }

.journal-covers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; max-width: 760px; margin: 30px 0; }
.journal-covers img { display: block; width: 100%; height: 245px; object-fit: contain; object-position: left center; }
@media(max-width:600px) { .journal-covers { gap: 12px; } .journal-covers img { height: auto; aspect-ratio: 3 / 4; } }

/* A group welcome with an authentic laboratory photograph. */
.group-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); align-items: center; gap: 52px; margin-top: 0; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.welcome-affiliation { color: var(--accent); font-size: 18px; margin-bottom: 20px; }
.welcome-copy h1 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.25; margin-bottom: 26px; }
.welcome-copy p:not(.welcome-affiliation) { font-size: 19px; line-height: 1.75; }
.welcome-copy p:last-child { margin-bottom: 0; }
.welcome-photo { display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; border-radius: 20px; }
@media(max-width:760px) { .group-welcome { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; } .welcome-photo { max-width: 260px; margin-inline: auto; } .welcome-copy h1 { font-size: 34px; } }

/* Group framework stays complete and scales with the reading width. */
.research-framework img { display: block; width: 100%; height: auto; margin-top: 24px; }

/* Custom vector P monogram framed by a crystal-inspired hexagon. */
.lab-mark { display: block; width: 54px; height: 60px; flex: none; }
.site-name { gap: 17px; }
@media(max-width:760px) { .lab-mark { width: 45px; height: 50px; } .site-name { gap: 14px; } }
@media(max-width:400px) { .lab-mark { width: 40px; height: 45px; } .site-name { gap: 11px; } }

/* Compact Contact typography, scoped to this page. */
.contact-page { font-size: 18px; line-height: 1.65; }
.contact-page h1 { font-size: 42px; }
.contact-page h2 { font-size: 25px; }
.contact-page .opening-term { font-size: 20px; }
@media(max-width:760px) { .contact-page h1 { font-size: 34px; } .contact-page h2 { font-size: 23px; } .contact-page { font-size: 17px; } }

/* Featured call for papers within Home News. */
.special-issue-call { background: #f0f5f9; border-left: 3px solid #428ec5; padding: 24px 28px; margin: 26px 0 32px; border-radius: 0 10px 10px 0; }
.special-issue-call .issue-label { color: #476782; font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.special-issue-call h3 { color: var(--ink); font-size: 23px; line-height: 1.45; margin: 0 0 16px; }
.special-issue-call h3 a { color: inherit; text-decoration: none; }
.special-issue-call h3 a:hover { text-decoration: underline; }
.special-issue-call p { font-size: 17px; line-height: 1.65; margin: 0 0 10px; }
.special-issue-call .issue-deadline { color: #294e71; font-weight: 700; margin-bottom: 0; }
@media(max-width:600px) { .special-issue-call { padding: 20px; } .special-issue-call h3 { font-size: 21px; } }
