:root {
  --teal: #123a3a;
  --ink: #171717;
  --muted: #717171;
  --line: #e8e8e8;
  --bg: #fff;
  --soft: #f6f6f4;
  --overlay: rgba(255,255,255,.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.85 "Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 780px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: #fff;
  padding: 8px;
  z-index: 99;
}

h1,h2,h3,.btn,.label,.post-nav small {
  font-family: "Avenir Next","Segoe UI","Helvetica Neue",Arial,sans-serif;
}

strong,b {
  font-weight: 600;
}

/* header */

/* hero */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #2b3a2e;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.6));
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 16px 90px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(28px,5vw,52px);
  line-height: 1.2;
  font-weight: 700;
}

.typer {
  border-right: 3px solid #fff;
  padding-right: 4px;
  white-space: nowrap;
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
}

.intro p {
  margin: 0 0 14px;
}

/* grid (masonry, 4/3/2/1 kolommen, 30px tussenruimte) */
.grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 16px 40px;
}

.js .card.is-later {
  display: none;
}

.grid {
  columns: 4;
  column-gap: 30px;
}

.card {
  break-inside: avoid;
  margin: 0 0 30px;
  opacity: 0;
  transform: translateY(16px);
  animation: in .5s ease forwards;
}

@keyframes in {
  to {
    opacity: 1;
    transform: none;
  }
}

.card a {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.card .thumb {
  display: block;
  overflow: hidden;
  background: var(--soft);
}

.card img {
  display: block;
  width: 100%;
  transition: transform .5s ease,opacity .3s;
}

.card .noimg {
  display: block;
  aspect-ratio: 4/3;
}

.card .label {
  position: relative;
  display: block;
  margin: -22px 12px 0;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #444;
  transition: color .2s,border-color .2s;
}

.card a:hover img {
  transform: scale(1.04);
  opacity: .9;
}

.card a:hover .label,.card a:focus-visible .label {
  color: var(--teal);
  border-color: var(--teal);
}

@media (max-width:1100px) {
  .grid {
    columns: 3;
  }
}

@media (max-width:760px) {
  .grid {
    columns: 2;
    column-gap: 16px;
  }
  .card {
    margin-bottom: 16px;
  }
}

@media (max-width:480px) {
  .grid {
    columns: 1;
  }
}

.grid.js-masonry {
  columns: auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.grid.js-masonry .col {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width:760px) {
  .grid.js-masonry {
    gap: 16px;
  }
}

.loadmore {
  text-align: center;
  padding: 10px 0 40px;
}

#sentinel {
  height: 1px;
}

.btn {
  display: inline-block;
  border: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  padding: 12px 32px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn[aria-busy=true] {
  opacity: .5;
  pointer-events: none;
}

.all-links {
  text-align: left;
}

/* berichtpagina */
.single {
  padding: 0 0 60px;
}

.post-hero {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}

.banner {
  position: relative;
  height: clamp(300px,52vw,620px);
  overflow: hidden;
  background: #eef1f0;
}

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

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.42);
}

.post-title {
  position: absolute;
  left: 50%;
  top: clamp(150px,26vw,310px);
  transform: translate(-50%,-50%);
  width: min(920px,calc(100% - 48px));
  background: #fff;
  padding: clamp(18px,3vw,34px) clamp(18px,4vw,60px);
  text-align: center;
  z-index: 2;
}

.post-title::before {
  content: "";
  position: absolute;
  inset: -10px 10px 10px -10px;
  border: 1px solid #d5d9d8;
  pointer-events: none;
}

.post-title h1 {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(20px,3.3vw,42px);
  line-height: 1.25;
}

.post-body {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: clamp(-200px,-14vw,-90px) auto 0;
  background: #fff;
  padding: clamp(28px,5vw,60px) clamp(20px,6vw,60px) 20px;
  width: calc(100% - 32px);
}

.content {
  color: #444;
}

.content p {
  margin: 0 0 1.1em;
}

.content h2,.content h3 {
  line-height: 1.3;
  margin: 1.6em 0 .6em;
  color: var(--teal);
  font-weight: 700;
}

.content img {
  display: block;
  margin: 20px 0;
}

.content table {
  border-collapse: collapse;
  width: 100%;
}

.content td {
  border: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}

.content blockquote {
  margin: 20px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--teal);
}

.content a {
  color: var(--teal);
  word-break: break-word;
}

.embed {
  position: relative;
  aspect-ratio: 16/9;
  margin: 20px 0;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  margin-top: 40px;
}

.post-nav a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.post-nav .next {
  text-align: right;
}

.post-nav small {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-nav span {
  font-weight: 600;
  color: var(--teal);
}

.post-nav a:hover span {
  text-decoration: underline;
}

/* vaste knop terug naar home (rechts) */
.home-btn img {
  display: block;
}

.home-btn {
  position: fixed;
  left: 12px;
  top: 200px;
  z-index: 50;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  transition: background .2s,transform .2s;
}

.home-btn::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  margin-top: -8px;
  border: 8px solid transparent;
  border-left: 0;
  border-right-color: var(--teal);
}

.home-btn:hover {
  background: #1d5555;
  transform: translateX(3px);
}

.home-btn:hover::after {
  border-right-color: #1d5555;
}

@media (max-width:760px) {
  .home-btn {
    top: auto;
    bottom: 20px;
    left: 16px;
    width: 52px;
    height: 52px;
  }
  .home-btn::after {
    display: none;
  }
}

/* 404 */
.post-body--plain {
  margin-top: 120px;
}

.post-body--plain h1 {
  color: var(--teal);
  margin: 0 0 16px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.to-top.show {
  opacity: .85;
  pointer-events: auto;
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
  .card {
    opacity: 1;
    transform: none;
  }
}
