@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
  --header: #000000;
  --paper: #ffffff;
  --ink: #212121;
  --gold: #d39f10;
  --teal: #006580;
  --map-blue: #007bff;
  --rule: #d7d7d7;
  --content: 1154px;
  --header-height: 56px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 1px;
}

a:hover {
  color: #004d62;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #78b9ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 12px;
  transform: translateY(-160%);
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  flex: 0 0 var(--header-height);
  background: var(--header);
}

.header-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-logo {
  width: 46px;
  height: 41px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  overflow: hidden;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 27px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 300;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: #ffffff;
}

.site-nav a[aria-current='page'] {
  font-weight: 700;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-toggle {
  margin-left: 10px;
  flex: 0 0 32px;
  width: 32px;
}

.menu-toggle {
  display: none;
}

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid #3c3c3c;
  background: #111111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  color: #ffffff;
}

.search-panel[hidden] {
  display: none;
}

.search-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #707070;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
}

.search-results {
  max-height: 260px;
  overflow: auto;
}

.search-results:not(:empty) {
  padding-top: 8px;
}

.search-results a,
.search-empty {
  display: block;
  padding: 10px 8px;
  color: #ffffff;
  font-size: 14px;
}

.search-results a:hover {
  background: #2a2a2a;
}

main {
  flex: 1 0 auto;
}

.home-main {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 464px) minmax(0, 645px);
  column-gap: 37px;
  justify-content: start;
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 1401;
  object-fit: cover;
}

.contact-card {
  padding: 13px 8px 0;
  font-style: normal;
  line-height: 1.22;
}

.contact-card p {
  margin: 0;
}

.contact-card .map-link {
  color: var(--map-blue);
  text-decoration: none;
}

.contact-email {
  margin-top: 33px !important;
}

.intro {
  padding-top: 14px;
}

.intro h1,
.page-heading {
  margin: 0;
  color: var(--gold);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.intro h1 {
  margin-bottom: 46px;
}

.intro p {
  margin: 0 0 15px;
  line-height: 1.38;
  text-align: justify;
  text-wrap: pretty;
}

.site-footer {
  width: 100%;
  flex: 0 0 auto;
  padding: 20px 0 32px;
}

.footer-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding-right: 8px;
  display: flex;
  justify-content: flex-end;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
}

.social-links img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.content-main {
  width: min(1146px, calc(100% - 40px));
  margin: 0 auto;
}

.publications-main {
  width: min(1144px, calc(100% - 40px));
  padding: 78px 0 66px;
  padding-left: 6px;
}

.publications-main .page-heading {
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 300;
}

.publication-list {
  display: grid;
  gap: 50px;
}

.publication {
  margin: 0 0 0 20px;
}

.publication-title {
  margin: 0 0 17px;
  font-size: 18.6667px;
  font-weight: 700;
  line-height: 1.38;
}

.publication-title a {
  color: var(--teal);
}

.publication-first .publication-title {
  max-width: 1055px;
}

.publication p {
  margin: 0 0 16px;
  line-height: 1.38;
}

.publication p:last-child {
  margin-bottom: 0;
}

.vitae-main {
  padding: 120px 0 0;
  padding-left: 7px;
}

.vitae-main .page-heading {
  margin-bottom: 15.5px;
}

.vitae-intro {
  margin: 0;
}

.cv-viewer {
  position: relative;
  width: calc(100% + 16px);
  height: 587px;
  margin-top: 127px;
  margin-left: -8px;
  border: 1px solid #a9a9a9;
  background: #202020;
  overflow: hidden;
}

.cv-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #202020;
  scrollbar-color: #777777 #202020;
  scrollbar-width: thin;
}

.cv-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cv-scroll::-webkit-scrollbar-track {
  background: #202020;
}

.cv-scroll::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #777777;
}

.cv-page {
  position: relative;
  left: 3px;
  display: block;
  width: 800px;
  max-width: none;
  height: auto;
  margin: 0 auto 18px;
  background: #ffffff;
}

.cv-page:last-child {
  margin-bottom: 0;
}

.cv-open {
  position: absolute;
  top: 11px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.86);
  color: #ffffff;
  text-decoration: none;
}

.cv-open:hover {
  background: #000000;
  color: #ffffff;
}

.cv-open svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cv-info {
  position: absolute;
  bottom: 11px;
  left: 11px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cv-toolbar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  min-height: 42px;
  padding: 0 6px 0 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 21px;
  background: rgba(35, 35, 35, 0.9);
  color: #ffffff;
  font-size: 13px;
}

.cv-toolbar button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cv-toolbar button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.not-found-main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.not-found-main p {
  font-size: 18px;
}

.not-found-main .page-heading {
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  .home-main {
    grid-template-columns: minmax(0, 40%) minmax(0, 57%);
    column-gap: 3%;
  }

  .intro h1 {
    font-size: clamp(38px, 4.8vw, 48px);
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0 10px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
  }

  .brand {
    margin-left: 0;
    gap: 0;
  }

  .brand-name {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 5;
    display: none;
    height: auto;
    margin: 0;
    padding: 8px 0 12px;
    border-top: 1px solid #313131;
    background: #000000;
  }

  .site-nav[data-open='true'] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
  }

  .search-toggle {
    margin-left: auto;
    flex-basis: 38px;
    width: 38px;
  }

  .search-panel {
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .home-main {
    width: calc(100% - 40px);
    padding: 100px 0 62px;
    display: block;
  }

  .contact-card {
    padding-top: 16px;
  }

  .intro {
    margin-top: 92px;
    padding: 0 8px;
  }

  .intro h1 {
    margin-bottom: 43px;
    font-size: 36px;
    line-height: 1.2;
  }

  .intro p {
    text-align: left;
  }

  .footer-inner {
    padding-right: 0;
    justify-content: center;
  }

  .content-main {
    width: calc(100% - 40px);
  }

  .publications-main {
    padding: 72px 0 48px;
  }

  .publications-main .page-heading {
    font-size: 32px;
  }

  .publication-list {
    gap: 40px;
  }

  .publication-title {
    font-size: 17px;
  }

  .vitae-main {
    padding: 72px 0 0;
    padding-left: 0;
  }

  .vitae-main .page-heading {
    font-size: 40px;
  }

  .cv-viewer {
    height: 620px;
    margin-top: 72px;
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .home-main,
  .content-main,
  .footer-inner {
    width: calc(100% - 40px);
  }

  .intro h1 {
    max-width: 320px;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cv-actions,
  .search-panel {
    display: none !important;
  }

  body {
    display: block;
  }

  .home-main,
  .content-main {
    width: 100%;
    padding-top: 24px;
  }
}
