:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #181713;
  --muted: #706d66;
  --line: #d8d1c4;
  --green: #37483b;
  --clay: #a4513d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

body::before {
  border-right: 58px solid transparent;
  border-top: 58px solid rgba(24, 23, 19, 0.94);
  content: "";
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 1200;
}

body::after {
  border: 1px solid rgba(255, 255, 255, 0.8);
  content: "";
  height: 12px;
  left: 8px;
  pointer-events: none;
  position: fixed;
  top: 9px;
  transform: rotate(-45deg);
  width: 22px;
  z-index: 1201;
}

html[lang="nl"] body::after {
  background: linear-gradient(to bottom, #ae1c28 0 33%, #fff 33% 66%, #21468b 66% 100%);
}

html[lang="en"] body::after {
  background:
    linear-gradient(32deg, transparent 42%, #c8102e 42% 47%, #fff 47% 53%, #c8102e 53% 58%, transparent 58%),
    linear-gradient(-32deg, transparent 42%, #c8102e 42% 47%, #fff 47% 53%, #c8102e 53% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 38%, #fff 38% 44%, #c8102e 44% 56%, #fff 56% 62%, transparent 62%),
    linear-gradient(to right, transparent 34%, #fff 34% 41%, #c8102e 41% 59%, #fff 59% 66%, transparent 66%),
    #012169;
}

html[lang="fy"] body::after {
  background:
    radial-gradient(circle at 45% 50%, #d11f3f 0 12%, transparent 13%),
    linear-gradient(135deg, #1f75bb 0 18%, #fff 18% 34%, #1f75bb 34% 50%, #fff 50% 66%, #1f75bb 66% 82%, #fff 82% 100%);
}

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

a {
  color: inherit;
}

.floating-menu {
  align-items: center;
  background: rgba(24, 23, 19, .92);
  bottom: 18px;
  box-shadow: 0 10px 34px rgba(24, 23, 19, .22);
  color: var(--white);
  display: flex;
  gap: 2px;
  left: 50%;
  padding: 5px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

.floating-menu a {
  font-size: .78rem;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.floating-menu a:hover,
.floating-menu a:focus-visible {
  background: var(--white);
  color: var(--ink);
  outline: 0;
}

.work-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 52px);
}

.brand {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  display: none;
}

.brand::after {
  color: var(--muted);
  content: "Verzamelt verhalen.";
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .6rem;
  font-weight: 750;
  margin-top: 4px;
  text-transform: uppercase;
}

.lang-en .brand::after {
  content: "Collects stories.";
}

.work-header nav {
  align-items: center;
  display: flex;
  gap: 20px;
}

.work-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.language-switcher {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
}

.language-switcher a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  min-width: 36px;
  padding: 7px 9px;
  text-align: center;
}

.language-switcher a + a {
  border-left: 1px solid var(--line);
}

.language-switcher a[aria-current="true"],
.language-switcher a:hover,
.language-switcher a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.hero {
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  padding: clamp(38px, 7vw, 90px) clamp(18px, 4vw, 52px);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 0;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
  line-height: 1.5;
  margin: 0;
  max-width: 620px;
}

.kicker {
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.cover {
  align-self: stretch;
  min-height: 480px;
  overflow: hidden;
}

.cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-story {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.project-story-copy {
  display: grid;
  gap: clamp(28px, 7vw, 100px);
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1fr);
}

.project-story h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.project-story-copy > div {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  max-width: 680px;
}

.project-story-copy p:first-child {
  margin-top: 0;
}

.project-story-link {
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
  padding-bottom: 4px;
  text-decoration: none;
}

.project-story-link:hover,
.project-story-link:focus-visible {
  border-color: var(--clay);
  color: var(--clay);
}

.portrait-studies {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.portrait-studies-head {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(200px, .6fr) minmax(280px, 1fr) minmax(240px, .7fr);
  margin-bottom: clamp(34px, 6vw, 76px);
}

.portrait-studies-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 500;
  line-height: .98;
  margin: 0;
}

.portrait-studies-head > p:last-child {
  align-self: end;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.portrait-study-grid {
  display: grid;
  gap: clamp(16px, 3vw, 36px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portrait-study-grid figure {
  margin: 0;
}

.portrait-study-grid img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}

.portrait-study-grid figcaption {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  padding: 12px 0;
  text-transform: uppercase;
}

.purchase-section {
  background: var(--green);
  color: var(--white);
  display: grid;
  gap: clamp(28px, 7vw, 100px);
  grid-template-columns: minmax(220px, .55fr) minmax(280px, 1fr);
  padding: clamp(46px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.purchase-section .kicker {
  color: #d8c4b7;
}

.purchase-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 24px;
}

.purchase-section p {
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  max-width: 680px;
}

.purchase-section .project-story-link {
  border-color: var(--white);
  color: var(--white);
}

.sint-intro,
.sint-stories {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.sint-intro-grid {
  display: grid;
  gap: clamp(28px, 7vw, 100px);
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1fr);
}

.sint-intro h2,
.sint-story h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.sint-intro h2 {
  font-size: clamp(2.8rem, 6vw, 6.5rem);
}

.sint-intro-copy,
.sint-story-body {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.sint-intro-copy p:first-child,
.sint-story-body p:first-child {
  margin-top: 0;
}

.sint-story-list {
  display: grid;
}

.sint-story {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 6vw, 92px);
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1fr);
  padding: clamp(34px, 6vw, 82px) 0;
}

.sint-story-reverse img {
  grid-column: 2;
}

.sint-story-reverse .sint-story-copy {
  grid-column: 1;
  grid-row: 1;
}

.sint-story img {
  max-height: 72vh;
  object-fit: cover;
  width: 100%;
}

.sint-story-copy {
  align-self: center;
}

.sint-story h3 {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
}

.sint-story-excerpt {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 20px 0;
}

.sint-story details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.sint-story summary {
  cursor: pointer;
  font-weight: 850;
  list-style-position: inside;
}

.sint-story-body {
  margin-top: 28px;
}

.gallery-wrap {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 7vw, 82px) clamp(18px, 4vw, 52px);
}

.gallery-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.gallery-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.gallery-head p {
  color: var(--muted);
  margin: 0;
}

.gallery {
  column-count: 3;
  column-gap: 18px;
}

.photo {
  break-inside: avoid;
  margin: 0 0 18px;
}

.photo a {
  background: #111;
  display: block;
  overflow: hidden;
}

.photo img {
  height: auto;
  transition: transform .4s ease;
  width: 100%;
}

.photo figcaption {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  padding: 10px 2px 2px;
}

.photo:hover img {
  transform: scale(1.025);
}

.lightbox {
  background: rgba(24, 23, 19, 0.94);
  border: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.lightbox::backdrop {
  background: rgba(24, 23, 19, 0.84);
}

.lightbox-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  height: 100%;
  padding: 18px;
}

.lightbox img {
  align-self: center;
  grid-column: 2;
  justify-self: center;
  max-height: calc(100vh - 96px);
  object-fit: contain;
}

.lightbox footer {
  align-items: center;
  color: var(--white);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 14px;
}

.lightbox button,
.lightbox-nav {
  background: var(--white);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 40px;
  padding: 8px 14px;
}

.lightbox-nav {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.8rem;
  height: 54px;
  line-height: 1;
  padding: 0;
  width: 54px;
}

.lightbox-prev {
  grid-column: 1;
}

.lightbox-next {
  grid-column: 3;
}

.lightbox-meta {
  align-items: center;
  display: flex;
  gap: 14px;
}

#lightboxCounter {
  color: rgba(255, 255, 255, .68);
}

.work-footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255,255,255,.72);
  display: flex;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 52px);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .project-story-copy {
    grid-template-columns: 1fr;
  }

  .portrait-studies-head {
    grid-template-columns: 1fr;
  }

  .purchase-section {
    grid-template-columns: 1fr;
  }

  .sint-intro-grid,
  .sint-story {
    grid-template-columns: 1fr;
  }

  .sint-story-reverse img,
  .sint-story-reverse .sint-story-copy {
    grid-column: 1;
  }

  .sint-story-reverse img {
    grid-row: 1;
  }

  .sint-story-reverse .sint-story-copy {
    grid-row: 2;
  }

  .cover {
    min-height: 58vh;
  }

  .gallery {
    column-count: 2;
  }
}

@media (max-width: 620px) {
  .portrait-study-grid {
    grid-template-columns: 1fr;
  }

  .floating-menu {
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }

  .floating-menu a {
    font-size: .72rem;
    padding: 8px 9px;
  }

  .work-header,
  .work-header nav,
  .work-footer,
  .gallery-head {
    align-items: start;
    display: grid;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.04;
  }

  .gallery {
    column-count: 1;
  }

  .lightbox-inner {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox img {
    grid-column: 1 / -1;
  }

  .lightbox-nav {
    grid-row: 2;
  }

  .lightbox-prev {
    grid-column: 1;
    justify-self: start;
  }

  .lightbox-next {
    grid-column: 2;
    justify-self: end;
  }

  .lightbox footer {
    grid-row: 3;
  }
}
