/* mark huisman design — stedenbouwkundig ontwerp en advies */

:root {
  --ink: #201e1d;
  --ink-soft: #605d5d;
  --gray: #7d7979;
  --rule: #cbc8c7;
  --rule-light: #dedbda;
  --accent: #2f8f57;
  --pad: 48px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 60px; }

.mobile-bar, .mobile-nav { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

a { color: var(--ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: rgba(47, 143, 87, 0.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }

.kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- shell ---------- */

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.sidebar { border-right: 1px solid var(--rule); }

.sidebar-inner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-height: 100vh;
  padding: 40px 32px;
}

.brand img { width: 100%; }

.sidebar nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.sidebar nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 15px;
  font-weight: 600;
}

.sidebar nav a:last-child { border-bottom: 1px solid var(--rule); }

.sidebar-contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sidebar-contact a:first-child { font-weight: 600; }
.sidebar-contact a:last-child { color: var(--ink-soft); }

.sidebar-foot {
  margin: auto 0 0;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  border-bottom: 1px solid var(--rule);
}

.hero-text { padding: var(--pad); border-right: 1px solid var(--rule); }
.hero-text h1 { margin-bottom: 20px; font-size: 28px; line-height: 1.25; }

.hero-figure { position: relative; min-height: 660px; overflow: hidden; }
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- section bars ---------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.bar-sticky { position: sticky; top: 0; z-index: 2; }

.bar h2 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.bar span { color: var(--gray); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- projects ---------- */

.project { border-bottom: 10px solid var(--accent); }

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
  padding: var(--pad);
}

.project-meta h3 { margin-bottom: 14px; font-size: 26px; line-height: 1.15; }

.project-meta dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule-light);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.project-meta dt {
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-meta dd { margin: 0; }

.shot { position: relative; margin: 0; background: #f4f2f1; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot-wide { aspect-ratio: 16 / 9; border-top: 1px solid var(--rule); }

.shot-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.shot-pair .shot { aspect-ratio: 3 / 2; }
.shot-pair .shot:first-child { border-right: 1px solid var(--rule); }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  border-bottom: 1px solid var(--rule);
}

.portrait {
  align-self: start;
  width: 180px;
  margin: 40px 0 40px var(--pad);
  aspect-ratio: 3 / 4;
  background: #f4f2f1;
}

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

.about-text { padding: 40px var(--pad); border-left: 1px solid var(--rule); }
.about-text p { margin-bottom: 14px; }

.cv { margin-top: 28px; border-top: 1px solid var(--rule); }

.cv-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 15px;
}

.cv-row span:first-child { color: var(--ink-soft); }
.cv-row span:last-child { font-weight: 600; }

.cv-head {
  padding: 10px 0;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cv-head span:first-child,
.cv-head span:last-child { color: var(--gray); font-weight: 400; }

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}

.contact-text { padding: var(--pad); border-right: 1px solid var(--rule); }
.contact-text h2 { margin-bottom: 16px; font-size: 26px; }
.contact-text p { max-width: 32em; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: var(--pad);
}

.btn {
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: filter 0.15s;
}

.btn:hover { color: #fff; filter: brightness(0.85); }

.underlined {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.underlined:hover { border-color: var(--accent); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  padding: 20px var(--pad);
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a { color: var(--gray); }

/* ---------- mobile ---------- */

@media (max-width: 759px) {
  :root { --pad: 20px; }

  html { scroll-padding-top: 110px; }

  .shell { grid-template-columns: minmax(0, 1fr); }

  .sidebar { display: none; }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
  }

  .brand-small img { width: 150px; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: 1px solid var(--rule);
    cursor: pointer;
  }

  .burger span { display: block; height: 2px; background: var(--ink); }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 20px;
    background: #fff;
  }

  .mobile-nav[hidden] { display: none; }

  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .mobile-nav-top img { width: 150px; }

  .mobile-nav .close {
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--rule);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav > a {
    padding: 16px 0;
    border-top: 1px solid var(--rule-light);
    font-size: 20px;
    font-weight: 800;
  }

  .mobile-nav > a:last-of-type { border-bottom: 1px solid var(--rule-light); }

  .mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    font-size: 15px;
  }

  .mobile-nav-contact a:first-child { font-weight: 600; }
  .mobile-nav-contact a:last-child { color: var(--ink-soft); }

  .mobile-nav .sidebar-foot { margin-top: auto; }

  .bar-sticky { top: 65px; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 24px 20px; border-right: 0; }
  .hero-text h1 { font-size: 24px; }
  .hero-figure { min-height: 300px; }

  .bar { padding: 14px 20px; }

  .project-head { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 20px; }
  .project-meta h3 { font-size: 22px; }

  .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .shot-pair .shot:first-child { border-right: 0; border-bottom: 1px solid var(--rule); }

  .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: 160px; margin: 24px 20px 8px; }
  .about-text { padding: 28px 20px; border-left: 0; }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-text { border-right: 0; }
  .contact-text h2 { font-size: 22px; }
}

/* ---------- back to top ---------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, filter 0.15s;
}

.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; filter: brightness(0.85); }

/* ---------- print ---------- */

@media print {
  .sidebar-inner { position: static; min-height: 0; }
  .bar-sticky { position: static; }
  .project { break-inside: avoid; }
}
