/* martijnpeeters.eu — gedeelde stijl (NL + EN) */

:root {
  --bg: #f3f1e9;
  --bg-card: #ece8dc;
  --text: #1f1e1a;
  --text-muted: #6f6d61;
  --line: #ddd8c7;
  --accent: #45573a;
  --accent-bg: #e4e6d9;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 241, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
}

.main-nav a:hover {
  color: var(--accent);
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}

/* Hero */

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--bg-card),
    var(--bg-card) 12px,
    #e2ded0 12px,
    #e2ded0 24px
  );
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 16px;
}

.img-placeholder span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 4px;
}

.hero-text {
  padding: 64px 0 48px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 24px;
}

.hero-text p {
  max-width: 56ch;
  color: var(--text);
  font-size: 1.05rem;
}

/* Sections */

section {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Dossiers grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card .category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 20px;
  flex-grow: 1;
}

.card .stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.card .stat .value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

.card .stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-more {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

a.card--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

a.card--link:hover {
  background: #e5e1d1;
}

/* Huidige projecten */

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.project-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.project-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.project-body p {
  margin: 0 0 14px;
  color: var(--text);
}

.project-body .button {
  font-size: 0.9rem;
}

/* Wie ik ben */

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.about-main .intro {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-main h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 28px 0 8px;
}

.about-main h4:first-of-type {
  margin-top: 0;
}

.about-main p {
  margin: 0 0 4px;
}

.about-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.figures-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.figures-list li {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.figures-list li:last-child {
  border-bottom: none;
}

.figures-list li.figures-heading {
  font-weight: 600;
  color: var(--text);
}

.figures-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.about-photo-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: center;
}

.about-photo-row .img-placeholder,
.about-photo-row img {
  aspect-ratio: 4 / 3;
  height: auto;
  width: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-row .caption-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.about-photo-row p {
  margin: 0;
}

/* Werken met mij */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-grid .card h3 {
  flex-grow: 0;
  margin-bottom: 12px;
}

.work-grid .card p {
  margin: 0;
  color: var(--text);
}

/* CTA */

.cta {
  text-align: left;
}

.cta h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  max-width: 20ch;
  margin: 0 0 20px;
}

.cta a.button {
  display: inline-block;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-size: 1rem;
  padding-bottom: 2px;
}

.cta a.button:hover {
  opacity: 0.75;
}

/* Contact form */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-intro p {
  color: var(--text-muted);
  max-width: 42ch;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.submit-button {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
}

.submit-button:hover {
  opacity: 0.9;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 4px;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #a1452e;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 860px) {
  .card-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }

  .about-photo-row {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a,
  .main-nav .lang-switch {
    width: 100%;
    padding: 10px 0;
    border: none;
  }
}
