:root {
  --bg: #f6f3ee;
  --surface: #ebe6de;
  --ink: #1d1b18;
  --muted: #77716a;
  --line: #ddd6cb;
  --accent: #9a4f3a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(18px, 2.6vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 var(--gutter); }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--ink); color: var(--bg); padding: .4em .8em; z-index: 10; }

/* Kop */
.site-header {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(28px, 4.5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { color: inherit; }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.brand-tag { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.05rem; margin-top: .25rem; }

.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: .3em;
  border-bottom: 1px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
  align-items: start;
}
.gallery.is-masonry { display: flex; align-items: flex-start; }
.gallery .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }

.work { margin: 0; }
.work > a { display: block; position: relative; background: var(--surface); }
.work img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  object-fit: cover;
  transition: opacity .3s ease;
}
.work > a:hover img { opacity: .88; }
.work figcaption {
  margin-top: .7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.35;
}
.work figcaption a { text-decoration: none; }

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 13px;
  background: rgb(255 255 255 / .85);
  color: var(--ink);
  font-size: .75rem;
  display: grid;
  place-items: center;
}

/* Werk-detail */
.detail { display: grid; gap: clamp(24px, 4vw, 64px); padding-bottom: 3rem; }
.detail-images { display: flex; flex-direction: column; gap: var(--gap); align-items: center; }
.detail-image { display: block; background: var(--surface); }
.detail-image img {
  display: block;
  aspect-ratio: var(--ratio);
  max-height: 86vh;
  width: auto;
  max-width: 100%;
}
.video-note { margin: -.75rem 0 0; font-size: .9rem; }

.detail-info { max-width: 34rem; }
.back { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.detail h1, .about h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 1.1rem 0 .4rem;
}
.date { color: var(--muted); margin: 0 0 1.5rem; font-size: .92rem; }
.description { line-height: 1.75; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.ig-link a { font-size: .92rem; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; font-family: var(--serif); font-style: italic; line-height: 1.35; }
.pager a span {
  display: block;
  font: .72rem/1.6 var(--sans);
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.pager a[rel="next"] { text-align: right; grid-column: 2; }

@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
  .detail-info { position: sticky; top: 2rem; }
}

/* Over */
.about { display: grid; gap: clamp(24px, 4vw, 64px); max-width: 1100px; padding-bottom: 3rem; }
.about-photo { width: 100%; max-width: 360px; display: block; }
.about h2 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 2.5rem 0 .5rem;
}
.contact { list-style: none; padding: 0; margin: 0; line-height: 2; }
@media (min-width: 760px) {
  .about { grid-template-columns: minmax(220px, 360px) 1fr; align-items: start; }
}

.empty { text-align: center; padding: 18vh 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.empty h1 { font-weight: 400; color: var(--ink); }

/* Voet */
.site-footer {
  width: 100%;
  max-width: 1640px;
  margin: 4rem auto 0;
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .82rem;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
