/* CSS Reset en basis variabelen */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #0066cc;
  --secondary-color: #f8f9fa;
  --dark-green: #0a4315;
  --middle-green: #4a8963;
  --spacing-unit: 1rem;
  --container-width: 136rem;
  --container-form-width: 60rem;
}

/* Dark mode variabelen */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --secondary-color: #1f1f1f;
  }
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@font-face {
  font-display: swap;
  font-family: "Bree Serif";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/bree-serif-v17-latin_latin-ext-regular.woff2")
    format("woff2");
}

/* open-sans-300 - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/open-sans-v40-latin-300.woff2") format("woff2");
}
/* open-sans-300italic - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300;
  src: url("../fonts/open-sans-v40-latin-300italic.woff2") format("woff2");
}
/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/open-sans-v40-latin-regular.woff2") format("woff2");
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/open-sans-v40-latin-italic.woff2") format("woff2");
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/open-sans-v40-latin-700.woff2") format("woff2");
}
/* open-sans-700italic - latin */
@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/open-sans-v40-latin-700italic.woff2") format("woff2");
}

@font-face {
  font-family: "Custom";
  src: url("/fonts/leidenblogs.woff") format("woff");
  font-weight: 400;
}

/* Toegankelijkheid */
[tabindex="-1"] {
  outline: none !important;
}

:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dark-green);
  color: white;
  padding: 0.8rem;
  z-index: 100;
  font-size: 1.6rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.dontshow {
  display: none;
}

.wrapper {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
}

.wrapper-form {
  width: 90%;
  max-width: var(--container-form-width);
  margin: auto;
}

img {
  border: none;
  max-width: 100%;
}

/* Typografie */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bree Serif";
  margin: 0;
  font-weight: 700;
  line-height: 1;
  color: var(--dark-green);
}

h1 {
  font-size: 6rem;
  font-family: "Bree Serif", sans-serif;
  color: var(--dark-green);
  margin-bottom: 2rem;
}
h2 {
  font-size: 2.4rem;
  margin-bottom: 2.6rem;
}
h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p,
ul,
ol {
  font-size: 2rem;
  margin-bottom: 2rem;
}

ul,
ol {
  padding-left: 2rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Layout componenten */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
  width: 100%;
}

/* Grid systeem */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.header {
  padding: 2rem 0 4rem;
}

.site-logo {
  font-weight: normal;
  font-size: 2.8rem;
  padding-left: 4px;
  margin-bottom: 2rem;
}

.logo {
      width: 160px;
}

.site-logo span {
  color: #4a8963;
  color: #91b7a0;
}

.navigation__toggle,
.navigation__checkbox {
  display: none;
}

.nav-list {
  list-style: none;
  display: flex;
  background-color: var(--middle-green);
  border-radius: 1.2rem;
  padding: 0 2rem;
  margin: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  font-size: 1.6rem;
  color: white;
  padding: 1rem 2.6rem;
  text-transform: uppercase;
  font-weight: bold;
}

.nav-list a:hover,
.nav-list a.active {
  text-decoration: none;
  background-color: var(--dark-green);
}

nav li:hover .subnav-list {
  opacity: 1;
  transform: translateY(0%);
  pointer-events: auto;
}

.subnav-list {
  list-style: none;
  opacity: 0;
  transform: translateY(25%);
  transition: all 350ms ease;
  pointer-events: none;
  left: 0;
  background-color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  position: absolute;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.15);
  top: 100%;
  padding: 1rem 0;
  z-index: 10;
}

.subnav-list a {
  display: block;
  font-size: 1.6rem;
  color: var(--dark-green);
  padding: 1rem 2.6rem;
  text-transform: none;
  font-weight: normal;
}

.subnav-list a:hover {
  color: #fff;
}

.breadcrumbs ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 0;
  padding: 0;
}

.breadcrumbs li {
  margin: 0 0 0 0.6875rem;
  padding-right: 1em;
  position: relative;
}

.breadcrumbs li:not(:last-child)::after {
  border-style: solid;
  border-width: 0.1em 0.1em 0 0;
  content: "";
  display: block;
  height: 0.5em;
  position: absolute;
  right: 0.4em;
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
  width: 0.5em;
}

.breadcrumbs a {
  color: #333;
  text-underline-offset: 0.25em;
  font: 16px / 1.3 vestula;
}

/* Main content */
main {
  flex: 1;
  padding: 0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 57% 36%;
  gap: 7%;
  margin: 2rem 0 6rem;
}

/* .two-column-grid.home {
  grid-template-columns: 43% 50%;
  gap: 7%;
} */

.two-column-grid.home {
  grid-template-columns: repeat(2, 1fr);
  gap: 7%;
}

.sidebar-home {
  grid-column-start: 2;
  grid-row: 1 / span 2;
}

.two-column-grid.about {
  grid-template-columns: 72% 23%;
  gap: 5%;
}

.two-column-grid figure {
  position: relative;
}

.leekfield {
  border-radius: 1.2rem;
}

.leek {
  position: absolute;
  left: -18%;
  top: 40%;
  filter: drop-shadow(30px 10px 14px rgb(0, 0, 0, 0.4));
  --parallax-speed: -0.5;
}

.parallax {
  animation: parallexObject cubic-bezier(0.4, 0, 1, 1);
  animation-timeline: view();
}

@keyframes parallexObject {
  to {
    transform: translateY(calc(var(--parallax-speed) * 200px));
  }
}

.button {
  display: inline-flex;
  background: var(--dark-green);
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 12px;
  margin: 2rem 0 0;
  gap: 10px;
  align-items: center;
}

.button:hover {
  text-decoration: none;
  background-color: var(--middle-green);
}

.home-box {
  color: #094316;
  display: grid;
  grid-template-columns: 36% 64%;
  gap: 0;
  margin: 2rem 0;
  background: #c5e4a6;
  border-radius: 1.2rem;
  margin-top: 6rem;
  box-shadow: 0 0 40px 0 rgb(32 71 75 / 10%), 0 6px 6px 0px rgb(32 71 75 / 5%);
}

.home-box img {
  height: 100%;
  border-radius: 1.2rem 0 0 1.2rem;
}

.home-box-content {
  padding: 3rem;
}

.content-box {
  margin: 5rem 0;
  color: #fff;
  background: #094315;
  border-radius: 1.2rem;
  box-shadow: 0 0 40px 0 rgb(32 71 75 / 10%), 0 6px 6px 0px rgb(32 71 75 / 5%);
}

.content-box img {
  border-radius: 1.2rem 1.2rem 0 0;
}

.content-box-content {
  padding: 3rem;
}

.intro {
  font-size: 2.6rem;
  line-height: 1.35;
  margin-top: 4rem;
}

.wp {
  display: grid;
  grid-template-columns: 80px 70%;
  margin-bottom: 3rem;
  color: #094315;
  align-items: center;
  gap: 4%;
}

.wp:hover {
  color: var(--middle-green);
  text-decoration: none;
}

.wp h3 {
  font: bold 1.8rem / 1.2 "Open Sans";
}

.wp svg {
  padding: 13px;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 12px;
  box-shadow: 0 0 40px 0 rgb(32 71 75 / 10%), 0 6px 6px 0px rgb(32 71 75 / 5%);
  background: #c5e4a6;
  fill: #094315;
}

.sidebar-icon svg {
  fill: #c5e4a6;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4rem auto;
  font-size: 1.6rem;
}

.facts-table td {
  padding: 8px 16px 8px 0;
  vertical-align: top;
}

.facts-table td:first-child {
  width: 15%;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6.6%;
  margin: 12rem 0;
}

.logos img {
  /* width: 14.4%; */
  width: 100%;
  opacity: 0.8;
  margin: 4rem 0;
  filter: grayscale(1);
}

.team-list,
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5%;
}

.team-list-member,
.partner-list-member {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 31%;
  margin: 6rem 0 6rem;
  text-decoration: none;
  color: var(--dark-green);
}

.team-list-member:hover,
.partner-list-member:hover {
  text-decoration: none;
  color: var(--middle-green);
}

.team-list-header,
.partner-list-header {
  text-align: center;
  background-color: #c5e4a6;
  z-index: 1;
  border-radius: 12px 12px 0 0;
}

.team-list-header img {
  width: 15rem;
  margin: -45px auto 20px;
  border-radius: 50%;
}

.partner-list-header figure {
  width: 81.5%;
  margin: 20px auto 20px;
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  min-height: 160px;
  display: flex;
  justify-content: center;
}

.partner-list-header img {
  object-fit: contain;
}

.team-list-content,
.partner-list-content {
  padding: 0rem 3rem 1rem;
  box-shadow: 0 0 40px 0 rgb(32 71 75 / 10%), 0 6px 6px 0px rgb(32 71 75 / 5%);
  border-radius: 0 0 12px 12px;
  background: #c5e4a6;
}

.team-list-content h2 {
  margin-bottom: 16px;
}

.team-list-content p {
  font-size: 1.8rem;
  line-height: 1.2;
}

.team-list-content p.short-text {
  border-top: 1px dotted;
  padding-top: 16px;
  font-size: 1.6rem;
}

.team-list-content p span {
  display: block;
}

.subnav {
  list-style: none;
  padding: 0;
}

.subnav a {
  color: #666;
  padding: 16px 0;
  display: block;
  border-bottom: 1px solid #e1e1e1;
}

.subnav a:hover,
.subnav a.active {
  font-weight: bold;
  text-decoration: none;
  color: var(--dark-green);
}

.people-full,
.organisation-full {
  display: grid;
  grid-template-columns: 60% 30%;
  gap: 10%;
}

.organisation-full-image {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 6rem 0 6rem;
  text-decoration: none;
  color: var(--dark-green);
}

.organisation-full-content,
.people-full-content {
  margin-top: 5rem;
}

.people-full-image img {
  border-radius: 50vw;
}

.author__social {
  padding-top: 2rem;
}

.author__social--link {
  background-color: #7f88ab;
  border-radius: 100%;
  color: #fff !important;
  display: inline-block;
  font-size: 1.6rem;
  height: 30px;
  width: 30px;
  padding-top: 2px;
  text-align: center;
  text-decoration: none;
  font-family: Custom;
  margin-right: 0.2rem;
}

.author__social--link[href*="twitter"] {
  background-color: #00aced;
}

.author__social--link[href*="twitter"]:before {
  content: "\F099";
}

.author__social--link[href*="facebook"] {
  background-color: #3b5998;
}

.author__social--link[href*="facebook"]:before {
  content: "\F09A";
}

.author__social--link[href*="linkedin"] {
  background-color: #007bb6;
}

.author__social--link[href*="linkedin"]:before {
  content: "\F0e1";
}
.author__social--link[href*="youtube"] {
  background-color: #cc181e;
}

.author__social--link[href*="youtube"]:before {
  content: "\F167";
}

.author__social--link[href*="plus.google"] {
  background-color: #dd4b39;
}

.author__social--link[href*="plus.google"]:before {
  content: "\F0D5";
}

.author__social--link[href*="academia"] {
  background-color: #3c3f43;
}

.author__social--link[href*="academia"]:before {
  content: "\e820";
}

.author__social--link:before {
  content: "\e81f";
}

.author__social--link:hover {
  background-color: #001158;
  color: #fff;
  text-decoration: none !important;
}

input {
  background-color: rgb(248 248 248);
  border: solid 1px rgb(154, 154, 154);
  width: 100%;
  padding: 15px;
  border-radius: 3px;
}

textarea {
  background-color: rgb(248 248 248);
  border: solid 1px rgb(154, 154, 154);
  width: 100%;
  padding: 15px;
  border-radius: 3px;
}

button {
  background-color: var(--dark-green);
  font: normal 1.6rem/ 1 "Open Sans";
  border-width: 0px;
  border-style: none;
  color: #fff;
  padding: 8px 32px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 20px;
}

label {
  display: block;
  font-size: 1.6rem;
  color: #666;
  margin: 30px 0 0 0;
}

.errors {
  color: #c90707;
  font: normal 1.6rem / 1.5 "Open Sans";
}

.related-authors {
  margin-top: 6rem;
}

.related-authors-items {
  display: grid;
  grid-template-columns: 48% 48%;
  gap: 4%;
}

.related-authors-items a {
  display: flex;
  align-items: center;
  gap: 4%;
  color: var(--dark-green);
}

.related-authors-items a:hover {
  text-decoration: none;
}

.related-authors img {
  max-width: 120px;
  border-radius: 50vw;
}

.related-authors p {
  font-size: 1.6rem;
}

/* Video embeds */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-container--4-3 {
  padding-bottom: 75%;
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  padding: 2rem;
  margin-top: auto;
  font-size: 1.4rem;
  text-align: center;
}

@media only screen and (max-width: 1024px) {
  .team-list-member,
  .partner-list-member {
    width: 48%;
  }
}

@media only screen and (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.2rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  nav {
    position: relative;
  }

  .navigation__toggle {
    display: block;
    position: absolute;
    top: -8.5rem;
    right: 1.4rem;
    font-size: 3rem;
    line-height: 1.3;
    background: var(--dark-green);
    width: 46px;
    aspect-ratio: 1;
    border-radius: 100%;
    text-align: center;
    color: #fff;
  }

  .nav-list {
    display: none;
  }

  .navigation__checkbox:checked ~ .nav-list {
    display: block;
    z-index: 3;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    box-shadow: 0px 0px 8px 0px rgb(0 0 0 / 10%);
  }

  .nav-list {
    padding: 0;
  }

  .subnav-list,
  nav li:hover .subnav-list {
    opacity: 0;
    display: none;
  }

  .two-column-grid,
  .two-column-grid.about,
  .two-column-grid.home {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0 3rem;
  }
}

@media only screen and (max-width: 480px) {
  .related-authors-items {
    grid-template-columns: 100%;
  }
  .people-full,
  .organisation-full {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .two-column-grid figure {
    position: relative;
    text-align: center;
  }
}

@media only screen and (max-width: 375px) {
  .team-list-member,
  .partner-list-member {
    width: 100%;
  }
}

/* Print styles */
@media print {
  body {
    font-size: 12pt;
  }

  nav,
  footer,
  .video-container,
  .skip-link {
    display: none;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  @page {
    margin: 2cm;
  }
}
