/* Femke van Wermeskerken – site styles */

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/comfortaa.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-italic.woff2") format("woff2");
}

:root {
  --pink: #db597c;
  --pink-dark: #b8405f;
  --pink-soft: #f8e4ea;
  --plum: #3d0a45;
  --tan: #d1af83;
  --blush: #e3cbbd;
  --sand: #f6f1ec;
  --text: #424242;
  --muted: #6f6f6f;
  --border: #e6ddd6;
  --white: #fff;
  --radius: 12px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1rem/1.75 var(--font);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-dark); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

h1, h2, h3, .h3 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; color: var(--plum); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3, .h3 { font-size: 1.2rem; }
h2 + .kicker { margin-top: -.4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.container.narrow { width: min(100% - 2 * var(--gutter), 820px); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--pink);
  border-radius: 11px;
  padding: .6em 1.3em;
  font: 600 .95rem/1.4 var(--font);
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  overflow-wrap: normal;
}
.button:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.button:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .97);
  box-shadow: 0 1px 0 var(--border), 0 4px 18px rgb(61 10 69 / .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.logo img { width: auto; height: 40px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; overflow-wrap: normal;
}
.main-nav a:hover { color: var(--pink-dark); background: var(--pink-soft); }
.main-nav a[aria-current="page"], .main-nav a.is-section { color: var(--pink-dark); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-menu { list-style: none; margin: 0; padding: 6px; }

@media (min-width: 1081px) {
  .sub-menu {
    position: absolute; left: 0; top: 100%; min-width: 230px;
    background: #fff; border-radius: 10px; border-top: 3px solid var(--pink);
    box-shadow: 0 12px 30px rgb(61 10 69 / .14);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility 0s linear .15s;
  }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s;
  }
}

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 2px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font: 600 .95rem var(--font); color: var(--text); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--pink); position: relative; transition: transform .2s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 3px solid var(--pink);
    box-shadow: 0 14px 24px rgb(61 10 69 / .12);
    max-height: calc(100vh - 74px); overflow-y: auto;
    display: none;
  }
  .js .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub-menu { padding: 0 0 0 16px; }
  .sub-menu a { font-weight: 400; }
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .main-nav { width: 100%; }
  html:not(.js) .main-nav > ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 8px; }
  html:not(.js) .sub-menu { display: none; }
}

/* Page banner */
.page-hero {
  position: relative;
  background: url("/assets/img/uploads/2018/06/page-header-bg.jpg") center / cover no-repeat, var(--sand);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
  text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgb(255 255 255 / .6); }
.page-hero > .container { position: relative; }
.page-hero h1 { margin: 0; overflow-wrap: break-word; hyphens: manual; }
.page-hero-sub {
  margin: .5em 0 0; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--pink-dark);
}
.page-hero-back { margin: 0 0 .8em; font-weight: 600; }
.page-hero-back a { text-decoration: none; }

/* Home */
.home-hero { background: var(--blush); padding: clamp(40px, 7vw, 90px) 0; }
.home-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.home-hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); font-weight: 400; color: var(--text); margin-bottom: .2em; }
.home-hero-sub { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); margin: 0; }
/* box-shadow on a round box instead of filter: drop-shadow, which iOS Safari renders as a
   visibly different-coloured square around the photo. */
.home-hero-photo { width: min(100%, 420px); justify-self: center; border-radius: 50%; box-shadow: 0 18px 30px rgb(61 10 69 / .18); }
@media (max-width: 720px) {
  .home-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .home-hero-photo { width: min(80%, 320px); grid-row: 1; }
}

.section-texture {
  background: linear-gradient(rgb(246 241 236 / .9), rgb(246 241 236 / .9)), url("/assets/img/uploads/2018/06/7308487655374ad398e34771fed84bb3-1.png") center / cover;
}
.section-title { margin-bottom: 0; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--pink); }
.timeline li { position: relative; padding: 0 0 22px 24px; display: grid; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--pink);
}
.timeline-years { font-family: var(--font-display); font-weight: 700; color: var(--pink-dark); }
.timeline-title { font-weight: 700; color: var(--plum); }
.timeline-place { color: var(--muted); }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 56px); margin-bottom: 32px; }
.photo-row img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-row img.crop-top { object-position: center top; }
@media (max-width: 720px) { .photo-row { grid-template-columns: 1fr; } }

/* Sections and columns */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section > .container + .container { margin-top: clamp(24px, 4vw, 40px); }
.lead { font-size: 1.08rem; color: var(--plum); font-weight: 500; }
.kicker { color: var(--pink-dark); font-weight: 700; letter-spacing: .04em; }
.grade {
  display: inline-block; background: var(--pink-soft); color: var(--pink-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding: .3em .9em; border-radius: 999px;
}

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cols-1-2 { grid-template-columns: 1fr 2fr; row-gap: clamp(32px, 5vw, 56px); }
.cols-3-2 { grid-template-columns: 3fr 2fr; }
@media (max-width: 860px) { .cols, .cols-1-2, .cols-3-2 { grid-template-columns: 1fr; } .cols-1-2 { row-gap: 16px; } }
.cols > * { min-width: 0; }

.photo { margin: 0 0 24px; }
.photo img { border-radius: var(--radius); box-shadow: 0 6px 20px rgb(61 10 69 / .08); }
.photo figcaption { color: var(--muted); margin-top: 8px; font-size: .92rem; font-style: italic; }

.logo-figure {
  margin: 0 0 32px; padding: clamp(24px, 4vw, 48px);
  background: var(--sand); border-radius: var(--radius); display: grid; place-items: center;
}
.logo-figure img { max-height: 220px; width: auto; }
.logo-figure-dark { background: #0077b3; }
.logo-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; margin: 32px 0; }
.logo-row img { max-height: 90px; width: auto; }

.results { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.results li { background: var(--sand); border-left: 4px solid var(--pink); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; }
.results h2 { font-size: 1.1rem; margin: 0 0 .3em; color: var(--pink-dark); }
.results p { margin: 0; }
.results p:first-of-type { font-weight: 700; color: var(--plum); }

.pill-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-nav a {
  display: inline-block; padding: 6px 16px; border: 2px solid var(--pink); border-radius: 999px;
  color: var(--pink-dark); text-decoration: none; font-weight: 600;
}
.pill-nav a:hover { background: var(--pink); color: #fff; }

.doc-card { background: var(--sand); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 18px; }
.doc-card h3 { margin-bottom: .4em; }
.doc-card .button { margin-top: 4px; }

.products { background: var(--sand); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 24px; border-top: 4px solid var(--pink); }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li + li { border-top: 1px solid var(--border); }
.doc-list a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; font-weight: 600; text-decoration: none; }
.doc-list a::before {
  content: "PDF"; flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  background: var(--pink); color: #fff; border-radius: 4px; padding: 1px 6px; position: relative; top: -2px;
}
.doc-list a.doc-video::before { content: "VIDEO"; background: var(--plum); }
.doc-list a.doc-link::before { content: "WEB"; background: var(--plum); }
.doc-list a.doc-word::before { content: "DOCX"; background: #2b579a; }
.doc-list a:hover { text-decoration: underline; }

.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.abstract { margin-top: 40px; padding: clamp(20px, 4vw, 36px); background: var(--sand); border-radius: var(--radius); }
.abstract h2 { font-size: 1.35rem; }

/* Projects */
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
html:not(.js) .project-filters { display: none; }
.filter-button {
  font: 600 .95rem var(--font); padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--pink); background: #fff; color: var(--pink-dark); text-transform: capitalize;
}
.filter-button[aria-pressed="true"], .filter-button:hover { background: var(--pink); color: #fff; }

.project-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.project-grid li[hidden] { display: none; }
.project-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(61 10 69 / .12); border-color: var(--pink); color: var(--text); }
.project-card-image { aspect-ratio: 400 / 284; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.project-card-image img { width: 100%; height: 100%; object-fit: contain; }
.project-card-title { padding: 16px 18px 4px; font-family: var(--font-display); font-weight: 700; color: var(--plum); line-height: 1.35; overflow-wrap: break-word; }
.project-card-year { padding: 0 18px 18px; color: var(--pink-dark); font-weight: 600; font-size: .9rem; text-transform: capitalize; margin-top: auto; }

.project-cover { margin: 0 auto; max-width: 760px; }
.project-cover img { margin-inline: auto; max-height: 300px; width: auto; border-radius: var(--radius); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { border-radius: var(--radius); margin-inline: auto; box-shadow: 0 6px 20px rgb(61 10 69 / .08); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

/* Lightbox */
a.lightbox { display: block; cursor: zoom-in; }
.lightbox-dialog {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible;
}
.lightbox-dialog::backdrop { background: rgb(20 4 22 / .85); }
.lightbox-dialog img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 6px; background: #fff; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--plum); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* Footer */
.site-footer {
  background: linear-gradient(rgb(209 175 131 / .94), rgb(209 175 131 / .94)), url("/assets/img/uploads/2018/06/books-1245690_960_720.jpg") center / cover;
  color: #2f2a24;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 48px 0 36px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 0; color: var(--plum); }
.footer-tagline { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; margin: 0 0 1em; }
.footer-linkedin { display: inline-flex; align-items: center; gap: 8px; color: var(--plum); font-weight: 700; text-decoration: none; }
.footer-linkedin:hover { color: #fff; }
.footer-inner > nav { flex: 0 1 720px; min-width: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 2px 28px; }
.footer-nav a { color: #2f2a24; text-decoration: none; display: block; padding: 4px 0; overflow-wrap: normal; }
.footer-nav a:hover, .footer-nav a[aria-current="page"], .footer-nav a.is-section { color: var(--plum); text-decoration: underline; }
.footer-bottom { background: rgb(61 10 69 / .92); color: #f1e6f2; font-size: .88rem; padding: 14px 0; }
.footer-bottom p { margin: 0; }
