/*
Theme Name: Happy-D Bridge
Theme URI: https://happy-d.nl/
Author: MyCreatief
Description: Warm classic WordPress theme for the Happy-D DIY blog.
Version: 1.0.0
Text Domain: happyd
*/

:root {
  --paper: #fbf4e8;
  --paper-2: #fffaf1;
  --ink: #332820;
  --muted: #76685f;
  --line: #eadcc9;
  --terracotta: #b85f44;
  --mustard: #d7a73d;
  --sage: #7f9275;
  --rose: #d8a69a;
  --shadow: 0 18px 45px rgba(80, 49, 32, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 14px 16px, rgba(184,95,68,.06) 1px, transparent 1.5px) 0 0 / 34px 34px,
    linear-gradient(180deg, var(--paper), #fffaf4 44%, #f7eadb);
}
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(184,95,68,.42);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 54px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,244,232,.91);
  border-bottom: 1px solid rgba(234,220,201,.9);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand--textmark {
  position: relative;
  gap: 0;
  padding: 3px 2px 7px;
  font-family: Fraunces, Georgia, serif;
  color: #412c23;
}
.brand--textmark::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 3px;
  bottom: 3px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184,95,68,.32), rgba(215,167,61,.46));
}
.brand__wordmark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  line-height: .94;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: 0;
}
.brand__happy { font-weight: 760; }
.brand__dash {
  margin: 0 .07em;
  color: var(--mustard);
  font-weight: 900;
}
.brand__d {
  position: relative;
  color: var(--terracotta);
  font-size: 1.14em;
  font-weight: 900;
}
.brand__d::after {
  content: "";
  position: absolute;
  top: -.2em;
  right: -.24em;
  width: .26em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 0 3px rgba(215,167,61,.18);
}
.brand__spark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--terracotta), var(--mustard));
  font-family: Fraunces, serif;
}
.brand__word { font-family: Fraunces, serif; font-size: 1.55rem; letter-spacing: 0; }
.site-nav { flex: 1; min-width: 0; }
.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  padding: 7px 8px;
  border-radius: 999px;
  color: #59493f;
  font-size: clamp(.73rem, .82vw, .82rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: #fff6e7; color: var(--terracotta); }
.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184,95,68,.24);
  border-radius: 999px;
  background: rgba(255,250,241,.82);
  color: var(--ink);
  place-items: center;
  padding: 0;
}
.site-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.site-nav-toggle__bar + .site-nav-toggle__bar { margin-top: 4px; }

.hero { padding: 72px 0 42px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  align-items: center;
  gap: 42px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 5.8rem); max-width: 790px; }
.hero p:not(.eyebrow), .archive-hero p, .single-hero__intro {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 690px;
  font-size: 1.08rem;
}
.hero__panel {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,244,225,.72)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(184,95,68,.08) 16px 17px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero__panel span {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid rgba(120,85,57,.14);
  background: #fffaf1;
  box-shadow: 0 16px 30px rgba(68,45,30,.1);
}
.hero__panel span:nth-child(1) { width: 58%; height: 54%; left: 12%; top: 14%; background: #f3d2c6; }
.hero__panel span:nth-child(2) { width: 48%; height: 42%; right: 9%; bottom: 14%; background: #e7d19b; }
.hero__panel span:nth-child(3) { width: 26%; height: 54%; left: 42%; top: 23%; background: #b7c4aa; }

.archive-hero, .single-hero { padding: 62px 0 28px; }
.archive-hero h1, .single-hero h1, .page-content h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.section-title { margin: 0 0 22px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  background: rgba(255,250,241,.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(64,38,24,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card__image { aspect-ratio: 4 / 3; background: #eadcc9; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e9c1b3, #ead69d 55%, #b9c6ad); }
.post-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__chip {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4dfd4;
  color: #8f412d;
  font-size: .76rem;
  font-weight: 800;
}
.post-card__title { margin: 13px 0 8px; font-size: 1.35rem; }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.post-card__more { margin-top: auto; padding-top: 18px; color: var(--terracotta); font-weight: 800; }

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 58px;
}
.category-strip a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,250,241,.76);
  font-weight: 800;
}

.single-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-layout { padding: 38px 0 72px; }
.article-content {
  max-width: 760px;
  margin-inline: auto;
  color: #3e3028;
  font-size: 1.06rem;
}
.article-content h2, .article-content h3 { margin-top: 2em; }
.article-content a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.article-content .happyd-source,
.article-content .happyd-ai-disclosure,
.article-content .happyd-photo-credit {
  margin-top: 1.1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: #85756a;
  font-size: .86rem;
}

.pagination { margin-top: 34px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf1; }
.page-numbers.current { background: var(--terracotta); color: #fff; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #efe1cf;
  padding: 40px 0 22px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  gap: 34px;
}
.brand--footer { margin: 0 0 12px; }
.site-footer__text, .site-footer__fineprint { color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.footer-nav a { font-weight: 800; }
.site-footer__fineprint { font-size: .9rem; margin: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: var(--muted); font-weight: 700; font-size: .9rem; }
.footer-legal a:hover { color: var(--ink); }
/* Subtiele content-blokken van happyd-core */
.happyd-source, .happyd-ai-disclosure, .happyd-photo-credit { font-size: .85rem; color: var(--muted); }
.happyd-maker { margin: 26px 0 6px; padding: 14px 18px; background: #fbf3e7; border: 1px solid var(--line); border-radius: 14px; font-size: .92rem; line-height: 1.6; }
.happyd-maker strong { color: var(--ink); }
.happyd-maker a { font-weight: 800; }

@media (max-width: 980px) {
  .site-header__inner { flex-wrap: wrap; padding: 10px 0; }
  .site-nav-toggle { display: grid; }
  .site-nav {
    display: none;
    flex: 0 0 100%;
    padding-top: 4px;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    justify-content: flex-start;
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .site-nav a {
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(234,220,201,.9);
    background: rgba(255,250,241,.86);
    font-size: .9rem;
  }
  .hero { padding-top: 44px; }
  .hero__grid, .site-footer__grid { grid-template-columns: 1fr; }
  .hero__panel { min-height: 240px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1120px); }
  h1 { font-size: clamp(1.95rem, 8.5vw, 2.45rem); overflow-wrap: break-word; hyphens: auto; }
  .site-nav__list { grid-template-columns: 1fr; }
  .post-grid, .footer-nav { grid-template-columns: 1fr; }
  .post-card__body { padding: 16px; }
}
