@font-face {
  font-family: 'Duru Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/duru-sans.ttf') format('truetype');
}
@font-face {
  font-family: 'Yanone Kaffeesatz';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/yanone-kaffeesatz.ttf') format('truetype');
}
:root {
  --accent: #9e50ac;
  --navy: #2b334a;
  --text: #2d3748;
  --footer: #718096;
  --content-width: 1290px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; color: var(--text); background: #fff; font: 400 1rem/1.6 'Duru Sans', sans-serif; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .12em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { color: var(--accent); font-family: 'Yanone Kaffeesatz', sans-serif; font-weight: 700; line-height: 1.5; margin: 1.5em 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }
p, ul, ol { margin: 0 0 2rem; }
li > p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
mark { background: transparent; color: inherit; }
hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.visually-hidden, .form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 100; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--navy); color: white; }
.header-inner { max-width: var(--content-width); margin: auto; min-height: 80px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 0; }
.site-brand { color: white; display: inline-flex; align-items: center; flex-shrink: 0; flex-grow: 1; gap: 1rem; text-decoration: none; }
.site-brand:hover { color: white; }
.site-brand img { width: 60px; height: 67px; object-fit: contain; }
.site-brand span { font-size: 36px; font-weight: 700; line-height: 1.2; }
.primary-navigation { flex-grow: 1; }
.primary-navigation > ul { display: flex; justify-content: space-between; padding: 0; margin: 0; align-items: center; list-style: none; }
.primary-navigation a, .submenu summary { color: white; text-decoration: none; display: block; padding: 1.7rem .9em; }
.primary-navigation a:hover, .primary-navigation a[aria-current], .submenu summary:hover, .submenu summary.current-section { background: rgba(158,80,172,.4); }
.submenu { position: relative; }
.submenu summary { list-style: none; display: flex; align-items: center; gap: .6rem; }
.submenu summary::-webkit-details-marker { display: none; }
.chevron { width: .4rem; height: .4rem; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin-top: -.2rem; }
.submenu > ul { position: absolute; left: 0; top: 100%; width: 200px; margin: 0; padding: 0; list-style: none; background: white; box-shadow: 0 2px 13px #0000001a; z-index: 10; }
.submenu li a { padding: 1em; color: var(--navy); }
.submenu li a:hover, .submenu li a[aria-current] { color: white; background: var(--accent); }
.menu-toggle { display: none; }
.menu-backdrop { display: none; }
.page-hero { position: relative; isolation: isolate; padding: 120px 24px; text-align: center; overflow: hidden; background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: #0006; z-index: -1; }
.hero-image { display: none; }
.page-hero h1 { color: white; font-size: 72px; margin: 0; }
.hero-home { padding: 300px 24px 0; }
.hero-top { background-position: 50% 0; }
.home-page .page-hero, .links-page .page-hero { background-image: url('/assets/media/2021/03/DMU-buildinigs.png'); }
.biography-page .page-hero { background-image: url('/assets/media/2021/03/biography.jpg'); }
.publications-page .page-hero { background-image: url('/assets/media/2021/03/books.jpg'); }
.research-page .page-hero { background-image: url('/assets/media/2021/03/chemisrty-bottles.jpg'); }
.public-engagement-page .page-hero { background-image: url('/assets/media/2021/03/public-engagement.jpg'); }
.teaching-page .page-hero { background-image: url('/assets/media/2021/03/teaching.jpg'); }
.members-page .page-hero { background-image: url('/assets/media/2021/03/members.jpg'); }
.positions-page .page-hero { background-image: url('/assets/media/2021/03/positions.jpg'); }
.content-section { max-width: var(--content-width); margin: auto; padding: 24px; }
.content-grid { padding: 0; margin: 0; }
.content-section::after, .content-column::after { content: ''; display: table; clear: both; }
.layout-halves, .layout-thirds, .layout-quarters, .layout-biography, .layout-sidebar { display: grid; gap: 32px; align-items: start; }
.layout-halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-biography { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.layout-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.content-column { min-width: 0; }
.content-section > :first-child, .content-column > :first-child:not(figure) { margin-top: 0; }
.content-column > :last-child, .content-section > :last-child { margin-bottom: 0; }
.content-section h2, .content-section h3 { font-size: 36px; }
.page-jumps { margin-bottom: 0; }
.biography-page .content-section h2, .research-page .content-section > h2:first-child { font-size: 48px; }
.public-engagement-page .content-section h2 { font-size: 28px; }
.public-engagement-page .page-hero + .content-section h2 { font-size: 36px; }
.content-image { margin: 1em 0; }
.content-image img { height: auto; }
.image-right { float: right; margin: .5em 0 2em 2em; }
.image-left { float: left; margin: .5em 2em 2em 0; }
.image-centred { text-align: center; }
figcaption { font-size: .875rem; text-align: center; margin-top: .5em; }
.about-section { display: grid; grid-template-columns: minmax(0, calc(25% - 64px / 3)) minmax(0, calc(45% - 64px / 3)) minmax(0, calc(30% - 64px / 3)); gap: 32px; background: #f2f2f2; }
.portrait-panel, .molecule-panel { min-height: 400px; background-size: cover; background-position: center; }
.portrait-panel { background-image: url('/assets/media/2021/03/Tim-Snape.jpg'); }
.molecule-panel { background-image: url('/assets/media/2021/03/testJmol.gif'); }
.about-copy { padding-top: 20px; }
.about-copy h2 { font-size: 48px; margin: 0 0 24px; }
.research-section { display: grid; grid-template-columns: minmax(0, calc(30% - 64px / 3)) minmax(0, calc(40% - 64px / 3)) minmax(0, calc(30% - 64px / 3)); gap: 32px; }
.research-copy { padding: 20px; }
.research-copy h2 { font-size: 36px; margin: 0 0 18px; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; }
.photo-gallery a { display: block; overflow: hidden; }
.photo-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s; }
.photo-gallery a:hover img { transform: scale(1.04); }
.button-row { text-align: center; }
.button { display: inline-block; padding: .6em 1em; border: 0; border-radius: 3px; background: var(--accent); color: white; text-decoration: none; line-height: 1.6; }
.button:hover { background: var(--navy); color: white; box-shadow: 0 15px 25px -7px #0000001a; }
.button:disabled { opacity: .65; cursor: wait; }
.location-map { display: block; border: 0; width: 100%; height: 450px; }
.contact-page .content-section:first-of-type { max-width: none; padding: 0; }
.contact-page h2 { font-size: 43px; }
.contact-page .content-column:last-child h2 { font-size: 46px; }
.contact-form { display: grid; gap: 1rem; }
.contact-form input, .contact-form textarea { display: block; width: 100%; border: 1px solid #e2e8f0; border-radius: 3px; background: white; color: var(--text); padding: .4em .5em; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-status:empty { display: none; }
.form-status { margin: 0; }
.site-footer { background: var(--footer); color: white; border-top: 1px solid #4a5568; text-align: center; font-size: .75rem; padding: 10px 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 48px 64px; border: 0; background: #000e; color: white; }
.lightbox[open] { display: grid; grid-template-columns: 1fr; place-items: center; }
.lightbox::backdrop { background: #000c; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img { max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: transparent; color: white; font-size: 40px; padding: 12px; }
.lightbox-close { top: 4px; right: 12px; }
.lightbox-previous { left: 4px; top: 45%; }
.lightbox-next { right: 4px; top: 45%; }
body:has(.lightbox[open]) { overflow: hidden; }
.error-page .content-section { min-height: 60vh; }
@media (min-width: 1025px) {
  .submenu:not([open]):hover > ul { display: block; }
}
@media (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; }
  .site-brand span { display: none; }
  .menu-toggle:not([hidden]) { display: grid; place-items: center; width: 48px; height: 44px; border: 0; background: transparent; color: #edf2f7; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: currentColor; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 4px; right: 12px; z-index: 32; }
  body.menu-open { overflow: hidden; }
  .menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: #0006; z-index: 30; }
  .primary-navigation { flex-basis: 100%; }
  .primary-navigation[data-collapsible="true"]:not(.is-open) { display: none; }
  .primary-navigation.is-open { position: fixed; inset: 0 0 0 auto; width: 90%; overflow: auto; padding: 54px 24px 24px; background: #090c10; z-index: 31; box-shadow: 0 0 2rem #0000001a; }
  .primary-navigation > ul { display: block; padding-bottom: 1rem; }
  .primary-navigation a, .submenu summary { padding: 1em 0; border-bottom: 1px solid #ffffff1a; font-size: .875rem; }
  .submenu > ul { position: static; width: 100%; box-shadow: none; background: transparent; padding-left: 1rem; }
  .submenu li a { color: white; }
  .primary-navigation a[aria-current], .submenu summary.current-section { color: var(--accent); background: transparent; }
  .submenu summary { justify-content: space-between; }
  .page-hero { background-attachment: scroll; }
  .about-section, .research-section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .page-hero h1 { font-size: 72px; overflow-wrap: break-word; }
  .hero-home h1 { font-size: 45px; }
  .layout-halves, .layout-thirds, .layout-quarters, .layout-biography, .layout-sidebar, .about-section, .research-section { grid-template-columns: minmax(0, 1fr); }
  .about-copy { padding: 20px 24px 0; }
  .research-section { gap: 0; }
  .research-copy { padding: 20px; }
  .image-left, .image-right { float: none; margin: 1em 0; }
  .biography-page .content-image { text-align: right; }
  .photo-gallery { margin: 0 24px 24px; }
  .content-section { overflow-wrap: anywhere; }
  .lightbox { padding: 48px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-gallery img { transition: none; }
}
