/* Shared style for all pages */
/* Minimal editorial style */

:root {
  --page-width: 900px;
  --content-width: 740px;

  --background: #fbfaf7;
  --text: #262521;
  --muted: #716d65;

  --link: #00728D;       /* SNS petrol blue */
  --link-hover: #183F56; /* SNS dark blue */

  --line: #ddd9d1;
}

a {
  color: var(--link);
}

a:hover,
a:focus {
  color: var(--link-hover);
}

.main-navigation a[aria-current="page"] {
  color: var(--link);
}



li::marker {
  color: var(--link);
}

a:focus-visible {
  outline-color: var(--link);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);

  font-family:
    Georgia,
    Cambria,
    "Times New Roman",
    serif;

  font-size: 16px;
  line-height: 1.67;
}

.special-name {
  font-family: Georgia, "Times New Roman", serif;
 font-family: Arial, sans-serif;
}



.site {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 38px auto 68px;
}

/* Header */

.site-header {
  text-align: center;
}

.site-name {
  margin: 0;
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.04em;
}


.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-name .orcid-text {
  display: inline-block;
  margin-left: 0.7rem;

  color: var(--muted);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
}


.site-name .orcid-text:hover,
.site-name .orcid-text:focus {
  color: var(--link);
}


/* Navigation */


.main-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px 34px;

  margin-top: 36px;
  margin: 34px 0 34px;
  padding: 15px 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  
  font-size: 0.95rem;
}

.main-navigation a {
  color: var(--text);
  text-decoration: none;
  padding: 3px 5px;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--link);
}

.main-navigation a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Main content */

main {
  max-width: var(--content-width);
  margin: 0 auto;
}

p {
  margin: 0 0 1.4rem;
}

.publication-list {
  font-size: 0.86rem;
  line-height: 1.55;
}

.publication-list li {
  margin-bottom: 0.9rem;
}


.event-list {
  --picture-width: 90px;
  --event-gap: 20px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.event-list li {
  display: grid;
  grid-template-columns: var(--picture-width) minmax(0, 1fr);
  column-gap: var(--event-gap);
  align-items: start;

font-size: 0.9rem;
  
  margin-bottom: 28px;
  padding: 0;
  border: 0 !important;
  box-shadow: none;
}

.event-list img {
  display: block;
  width: var(--picture-width);
  height: 170px;

  object-fit: contain;
  object-position: top center;

  background: transparent;
  border: 0;
  border-radius: 0;
}

.event-list li.no-image > div {
  grid-column: 2;
}

.small {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-left: 0;
  padding-left: 0;
}

.publication-links {
  display: inline-block;
  margin-left: 0.45rem;
  white-space: nowrap;
}


.profile-links {
  margin: 0.65rem 0.5rem 0.5rem;
  color: var(--muted);
  font-size: 0.79rem;
   margin-top: 0.8rem;
}

.profile-links a {
  color: inherit;
  text-underline-offset: 3px;
}

h1, h2 {
  font-family: inherit;
  font-weight: 590;
  line-height: 1.2;
}


.page-title {
  margin: 0 0 2rem;
  font-size: clamp(1.4rem, 3.8vw, 2rem);
}

h1:not(.page-title) {
  margin: 3rem 0 0.8rem;
  font-size: 1.25rem;
}

h2 {
  margin: 2.8rem 0 0.8rem;
  font-size: 1.15rem;
}

/* Links */

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Portrait */

.profile {
  margin: 0 0 2.8rem;
}


.profile-picture {
  display: block;
  width: min(270px, 70vw);
  aspect-ratio: 1;
  margin: 30px auto;
  border-radius: 50%;
  object-fit: cover;
}

.profile figcaption {
  max-width: 320px;
  margin: 0 auto;

  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: center;
}

/* Inner-page image header */

.page-hero {
  position: relative;
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e8e8;
}

.page-hero img {
  display: block;
  width: 100%;
  height: clamp(170px, 25vw, 260px);
  object-fit: cover;

  /* Keeps different photographs visually coherent */
  filter: grayscale(2%) saturate(95%) contrast(95%);
}

/* Darkens only the lower part, behind the title */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.64),
      rgba(0, 0, 0, 0.08) 65%,
      transparent
    );
}

.page-title {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.page-hero .page-title {
  position: absolute;
  z-index: 1;
  left: 30px;
  right: 30px;
  bottom: 24px;

  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.1;
}

@media (max-width: 640px) {
  .page-hero {
    margin-bottom: 36px;
    border-radius: 5px;
  }

  .page-hero img {
    height: 180px;
  }

  .page-hero .page-title {
    left: 18px;
    right: 18px;
    bottom: 17px;
  }
}

/* Lists */

ul,
ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 1rem;
}

li::marker {
  color: var(--muted);
}

.compact-list li {
  margin-bottom: 0.55rem;
}

/* Footer */

.site-footer {
  max-width: var(--content-width);
  margin: 4.5rem auto 0;
  padding-top: 1.2rem;

  border-top: 1px solid var(--line);

  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Mobile */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site {
    width: min(calc(100% - 30px), var(--page-width));
    margin-top: 26px;
  }

  .site-name .orcid-text {
    display: block;
    width: max-content;
    margin: 0.8rem auto 0;
    font-size: 0.65rem;
  }

  .main-navigation {
    justify-content: center;
    gap: 9px 18px;
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .event-list {
    --picture-width: 105px;
    --event-gap: 14px;
  }

  .event-list img {
    height: 140px;
  }

  .event-list li.no-image > div {
    grid-column: 2;
  }
}
