/* coachingcompanion.nl - blog, 404 (gebouwd door _blog/build.mjs).
   Kale HTML zonder de page-builder; kleuren en letters gelijk aan de rest van de site. */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #faf7f1;
  color: #1c1917;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #c9b99a;
  color: #1c1917;
}

.cc-blog {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 88px;
}

/* ---- overzicht + 404 ---- */
.cc-blog-index h1,
.cc-blog-article h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
.cc-blog-index h1 {
  font-size: 54px;
}
.cc-blog-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #57534e;
  max-width: 620px;
  margin: 16px 0 44px;
}
.cc-blog-empty {
  color: #8a827a;
  font-size: 16px;
  padding: 40px 0;
  border-top: 1px solid #ece4d8;
  margin: 0;
}
.cc-blog-404 p:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.cc-blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid #ece4d8;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.cc-blog-card:hover {
  border-color: #c9b99a;
  transform: translateY(-2px);
}
.cc-blog-pillar {
  margin-bottom: 64px;
  scroll-margin-top: 24px;
}
.cc-blog-pillar h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 24px;
  padding-top: 32px;
  border-top: 1px solid #ece4d8;
}
.cc-blog-label {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1ebe0;
  color: #8a6e3e;
  font-size: 12.5px;
  font-weight: 600;
}
.cc-blog-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.cc-blog-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #57534e;
}
.cc-blog-meta {
  font-size: 13.5px;
  color: #8a827a;
  margin: 0;
}

/* ---- artikel ---- */
.cc-blog-article {
  max-width: 720px;
  margin: 0 auto;
}
.cc-blog-back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #8a6e3e;
  text-decoration: none;
}
.cc-blog-back:hover {
  text-decoration: underline;
}
.cc-blog-article h1 {
  font-size: 46px;
}
.cc-blog-article > .cc-blog-meta {
  margin-top: 16px;
}

.cc-blog-body {
  margin-top: 36px;
  font-size: 17.5px;
  line-height: 1.75;
  color: #292524;
}
.cc-blog-body > * {
  margin: 0 0 1.15em;
}
.cc-blog-body h2,
.cc-blog-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: #1c1917;
  line-height: 1.25;
  text-wrap: balance;
}
.cc-blog-body h2 {
  font-size: 30px;
  margin: 1.8em 0 0.55em;
}
.cc-blog-body h3 {
  font-size: 22px;
  margin: 1.5em 0 0.45em;
}
.cc-blog-body a {
  color: #8a6e3e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-blog-body ul,
.cc-blog-body ol {
  padding-left: 1.3em;
}
.cc-blog-body li {
  margin-bottom: 0.4em;
}
.cc-blog-body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid #c9b99a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
  color: #1c1917;
}
.cc-blog-body img,
.cc-blog-body video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.cc-blog-body figure {
  margin-left: 0;
  margin-right: 0;
}
.cc-blog-body figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #8a827a;
}
.cc-blog-body li:has(> input[type="checkbox"]) {
  list-style: none;
  margin-left: -1.3em;
  /* een tweede regel begint onder de tekst, niet onder het vinkje */
  padding-left: 1.6em;
  text-indent: -1.6em;
}
.cc-blog-body li > input[type="checkbox"] {
  width: 1em;
  margin: 0 0.6em 0 0;
  accent-color: #8a6e3e;
  vertical-align: -1px;
}

/* infographics, schetsen en rekentools lezen hun kleuren uit deze variabelen (geen groen) */
:root {
  --cc-text: #1c1917;
  --cc-text-muted: #57534e;
  --cc-line: #b8a485;
  --cc-grid: #ece4d8;
  --cc-muted: #c9b99a;
  --cc-tint: #f4efe7;
  --cc-accent: #8a6e3e;
  --cc-accent-2: #3e6489;
}
.cc-blog-figure {
  margin: 2em 0;
}
.cc-blog-figure-scroll {
  overflow-x: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #ece4d8;
  border-radius: 16px;
}
.cc-blog-figure svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: "Inter", system-ui, sans-serif;
}

.cc-blog-table {
  overflow-x: auto;
}
.cc-blog-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}
.cc-blog-body th,
.cc-blog-body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid #ece4d8;
}
.cc-blog-body th {
  font-weight: 600;
  border-bottom-color: #c9b99a;
}

.cc-blog-template {
  position: relative;
}
.cc-blog-template pre {
  margin: 0;
  /* ruimte boven de tekst voor de kopieerknop */
  padding: 52px 22px 20px;
  max-height: 520px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ece4d8;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.cc-blog-template pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.cc-blog-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border: 1px solid #c9b99a;
  border-radius: 8px;
  background: #faf7f1;
  color: #1c1917;
  font: 600 13px "Inter", system-ui, sans-serif;
  cursor: pointer;
}
.cc-blog-copy:hover {
  background: #f1ebe0;
}
.cc-blog-body code {
  font-size: 0.9em;
  background: #f1ebe0;
  padding: 1px 5px;
  border-radius: 4px;
}
.cc-blog-body hr {
  border: 0;
  border-top: 1px solid #ece4d8;
  margin: 2.2em 0;
}

/* makerskader onderaan elke post: zelfde opmaak op elke post */
.cc-blog-maker {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  margin: 3em 0 2.4em;
  padding: 28px;
  background: #fff;
  border: 1px solid #ece4d8;
  border-radius: 18px;
}
.cc-blog-maker-foto {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1ebe0;
  color: #8a6e3e;
  font: 700 34px "Playfair Display", Georgia, serif;
}
.cc-blog-body .cc-blog-maker h2 {
  margin: 0 0 0.5em;
  font-size: 24px;
}
.cc-blog-maker-tekst > * {
  margin: 0 0 1em;
}
.cc-blog-maker-tekst em {
  color: #57534e;
}
.cc-blog-maker-tekst > :last-child {
  margin-bottom: 0;
}
.cc-blog-body .cc-blog-maker-cta .cc-blog-button {
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
}

/* schets van een scherm: rustiger dan een infographic */
.cc-blog-schets figcaption {
  font-style: italic;
}

/* rekentools op /blog */
.cc-blog-tools {
  margin-bottom: 64px;
}
.cc-blog-tools h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 20px;
  padding-top: 32px;
  border-top: 1px solid #ece4d8;
}
.cc-blog-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cc-blog-tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #f1ebe0;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.cc-blog-tool:hover {
  background: #ece4d8;
}
.cc-blog-tool-title {
  font-weight: 700;
  font-size: 16px;
}
.cc-blog-tool-text {
  font-size: 14px;
  line-height: 1.55;
  color: #57534e;
}

/* rekentoolpagina's: de tool brengt zijn eigen opmaak, de koppen volgen de site */
.cc-tool {
  padding-top: 48px !important;
  padding-bottom: 72px !important;
}
.cc-tool h1,
.cc-tool h2 {
  font-family: "Playfair Display", Georgia, serif;
}

.cc-blog-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: #1c1917;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cc-blog-link {
  color: #8a6e3e;
  font-weight: 600;
  text-decoration: none;
}
.cc-blog-button:focus-visible,
.cc-blog-link:focus-visible,
.cc-blog-card:focus-visible,
.cc-blog-tool:focus-visible,
.cc-blog-back:focus-visible,
.cc-blog-copy:focus-visible,
.cc-blog-figure-scroll:focus-visible {
  outline: 2px solid #b8a485;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .cc-blog {
    padding: 36px 20px 64px;
  }
  .cc-blog-index h1 {
    font-size: 38px;
  }
  .cc-blog-article h1 {
    font-size: 32px;
  }
  .cc-blog-body {
    font-size: 17px;
  }
  .cc-blog-body h2 {
    font-size: 25px;
  }
  .cc-blog-grid {
    grid-template-columns: 1fr;
  }
  .cc-blog-pillar h2 {
    font-size: 25px;
  }
  /* kleiner dan dit wordt de tekst in de infographic onleesbaar; dan scrollt hij opzij */
  .cc-blog-figure svg {
    min-width: 600px;
  }
  .cc-blog-figure-scroll {
    padding: 12px;
  }
  .cc-blog-maker {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }
  .cc-blog-maker-foto {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cc-blog-card {
    transition: none;
  }
  .cc-blog-card:hover {
    transform: none;
  }
}
