:root {
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.85);
  --surface-strong: #fffaf4;
  --text: #1c140d;
  --muted: #6c5b4b;
  --line: rgba(28, 20, 13, 0.12);
  --accent: #b65d34;
  --accent-soft: rgba(182, 93, 52, 0.12);
  --shadow: 0 24px 60px rgba(58, 37, 20, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(182, 93, 52, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(85, 103, 79, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 100%);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.page-stack {
  display: grid;
  gap: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(28, 20, 13, 0.08);
  background: rgba(248, 243, 235, 0.84);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav .is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.hero {
  padding: 56px clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.95), rgba(247, 238, 228, 0.78)),
    url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M42 140C90 80 140 66 206 76C243 82 270 104 278 144C286 185 257 219 222 235C160 263 79 243 41 196C25 177 23 158 42 140Z' fill='%23f1d7c7' fill-opacity='0.58'/%3E%3C/svg%3E")
      right 18% top 32% / 300px no-repeat;
  box-shadow: var(--shadow);
}

.hero-home {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-compact {
  padding-top: 42px;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.toolbar h2,
.card-title,
#lightboxTitle {
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.92;
}

.intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.button-primary {
  color: #fff9f2;
  background: #1f1a17;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
}

.content-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.split-panel {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.preview-panel {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: center;
}

.preview-copy {
  display: grid;
  gap: 14px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.preview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-block {
  min-height: 180px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.preview-one {
  background:
    linear-gradient(rgba(24, 18, 14, 0.08), rgba(24, 18, 14, 0.08)),
    url("/portfolio/Botanisch/273A6696.jpg") center / cover;
}

.preview-two {
  background:
    linear-gradient(rgba(24, 18, 14, 0.06), rgba(24, 18, 14, 0.06)),
    url("/portfolio/Landschappen/273A6692.jpg") center / cover;
}

.preview-three {
  background:
    linear-gradient(rgba(24, 18, 14, 0.1), rgba(24, 18, 14, 0.1)),
    url("/portfolio/Portret/Aram.jpg") center / cover;
}

.preview-four {
  background:
    linear-gradient(rgba(24, 18, 14, 0.06), rgba(24, 18, 14, 0.06)),
    url("/portfolio/Dieren/Capture-One-Session0035.jpg") center / cover;
}

.prose-panel {
  max-width: 860px;
}

.toolbar {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

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

.toolbar h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.search {
  width: min(420px, 100%);
}

.search input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  outline: none;
}

.search input:focus {
  border-color: rgba(182, 93, 52, 0.6);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.filter-bar,
.tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip,
.tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.filter-chip {
  cursor: pointer;
  background: #fff9f2;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
  border-color: rgba(182, 93, 52, 0.45);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.card:focus-within {
  outline: 3px solid rgba(182, 93, 52, 0.18);
  outline-offset: 3px;
}

.card-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: 18px;
}

.card-category,
.card-year,
.card-summary,
.lightbox-meta {
  color: var(--muted);
}

.card-category {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.card-headline {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.card-title {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
}

.card-year {
  margin: 0;
}

.card-summary {
  min-height: 3.8em;
  line-height: 1.6;
}

.tag {
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.empty-state {
  margin: 28px 0 0;
  color: var(--muted);
}

.lightbox {
  width: min(1120px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) + 6px);
  background: #fffaf4;
  box-shadow: 0 28px 90px rgba(25, 17, 11, 0.36);
}

.lightbox::backdrop {
  background: rgba(20, 12, 8, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox-close-row {
  display: flex;
  justify-content: flex-end;
  padding: 14px 14px 0;
}

.lightbox-close {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.lightbox-content {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  padding: 0 24px 24px;
}

.lightbox-copy {
  position: sticky;
  top: 0;
  align-self: start;
}

.lightbox-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.lightbox-gallery {
  display: grid;
  gap: 16px;
}

.lightbox-gallery img {
  width: 100%;
  border-radius: 18px;
  background: #efe6dd;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .hero {
    padding: 28px 20px;
    background-size: 220px;
    background-position: right -10px top 28px;
  }

  .site-header-inner,
  .split-panel,
  .preview-panel,
  .toolbar-top,
  .lightbox-content {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-header-inner {
    justify-content: stretch;
  }

  .search {
    width: 100%;
  }
}
