:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; line-height: 1.55;}

/* Site container */
.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header { border-bottom: 1px solid #eee; }
.brand { font-weight: 700; text-decoration: none; color: inherit; margin-right: 18px; }
.nav a { text-decoration: none; color: inherit; margin-right: 12px; opacity: .8; }
.nav a:hover { opacity: 1; }
.footer { border-top: 1px solid #eee; margin-top: 48px; padding: 24px 0; opacity: .7; }

img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

/* ── Hero section ─────────────────────────── */
.hero{
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.hero img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  margin: 0; border-radius: 0;
}
.hero::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.3) 50%, rgba(15,23,42,0.05) 100%);
}
.hero .hero-content{
  position: relative; z-index: 1;
  padding: 2.5rem;
  width: 100%;
}

/* ── Image cards ──────────────────────────── */
.img-card{
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.img-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.img-card img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  margin: 0; border-radius: 0;
  transition: transform 0.4s;
}
.img-card:hover img{
  transform: scale(1.05);
}
.img-card::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.1) 60%);
}
.img-card .card-label{
  position: relative; z-index: 1;
  padding: 1.25rem;
  width: 100%;
}

/* ── Warm tip box ─────────────────────────── */
.tip-card{
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

/* ── Markdown typography ──────────────────── */
.prose{
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose h1{
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* H2's als kaarten met accent bar */
.prose h2{
  font-size: 1rem;
  margin-top: 2.25rem;
  padding: 0.95rem 1.1rem 0.95rem 1.7rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(180,120,60,0.06), rgba(180,120,60,0.02));
  border: 1px solid rgba(180,120,60,0.12);
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
  position: relative;
  scroll-margin-top: 6rem;
}

.prose h2::before{
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d97706, #059669);
  opacity: 0.9;
}

/* Laatste H2 iets rustiger */
.prose h2:last-of-type{
  background: rgba(180,120,60,0.03);
}

.prose h3{
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  color: rgba(15,23,42,0.92);
}

/* Lijsten: nettere bullets + spacing */
.prose ul{
  margin-top: 0.6rem;
  padding-left: 1.25rem;
}
.prose ul > li{
  margin: 0.35rem 0;
}
.prose ul > li::marker{
  color: #d97706;
}

/* Links subtiel maar duidelijk */
.prose a{
  color: #b45309;
  text-decoration: none;
  border-bottom: 1px solid rgba(180,83,9,0.3);
}
.prose a:hover{
  border-bottom-color: rgba(180,83,9,0.8);
}

/* HR mooier */
.prose hr{
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,120,60,0.25), transparent);
  margin: 2rem 0;
}

/* ── Quote/Tip blok ───────────────────────── */
.prose blockquote{
  position: relative;
  margin: 2rem 0;
  padding: 1rem 1.6rem 1.4rem 1.6rem;
  background: #fef9ee;
  border: 1px solid #f5e6c8;
  border-radius: 0;
  font-style: normal;
  color: inherit;
}

/* Typography plugin: extra decoratie verwijderen */
.prose blockquote::before,
.prose blockquote::after{
  content: none !important;
}

.prose blockquote p{
  margin: 0;
}

/* Label (1e regel vet) als floating label */
.prose blockquote p:first-child > strong:first-child{
  position: absolute;
  top: -14px;
  left: 16px;
  padding: 4px 12px;
  background: #92400e;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
}

/* Spacing onder het label */
.prose blockquote p:first-child{
  margin-top: 0.55rem;
}

/* Voorkom dat de strong-containing p eigen box-styling krijgt */
.prose blockquote p:has(> strong:first-child){
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Verwijder automatische quotes van Tailwind typography */
.prose blockquote p:first-of-type::before,
.prose blockquote p:last-of-type::after {
  content: none !important;
}

/* ── Search modal & Pagefind UI overrides ─── */
#search-modal[hidden],
#search-modal.hidden { display: none !important; }

#search-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 1rem;
  overflow-y: auto;
}

#search-modal .search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

#search-modal .search-panel {
  position: relative;
  width: 100%;
  max-width: 42rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  ring: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#search-modal .search-hint {
  position: relative;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}
#search-modal kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  #search-modal { padding: 1rem; }
}

/* Pagefind UI variables tuned to site palette */
#searchbox {
  --pagefind-ui-scale: 0.95;
  --pagefind-ui-primary: #92400e;
  --pagefind-ui-text: #1e293b;
  --pagefind-ui-background: #ffffff;
  --pagefind-ui-border: rgba(0, 0, 0, 0.08);
  --pagefind-ui-tag: #fef3c7;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0.6rem;
  --pagefind-ui-image-border-radius: 0.5rem;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: inherit;
  padding: 0.75rem 1rem 1rem;
}

#searchbox .pagefind-ui__search-input {
  font-size: 1rem;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
}
#searchbox .pagefind-ui__result {
  border-color: rgba(0, 0, 0, 0.06);
}
#searchbox .pagefind-ui__result-title a {
  color: #1e293b;
  border-bottom: none;
}
#searchbox .pagefind-ui__result-title a:hover {
  color: #92400e;
}
#searchbox .pagefind-ui__result-excerpt mark {
  background: #fde68a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* Search trigger button — neutral, matches nav */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  color: #475569;
  transition: background-color 0.15s, color 0.15s;
}
.search-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}
.search-trigger .search-shortcut {
  display: none;
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #94a3b8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
}
@media (min-width: 1024px) {
  .search-trigger .search-shortcut { display: inline-block; }
}
