/* ============================================================
   Marli Huijer — Filosofische essentie
   Visuele opmaak voor gewone QMD (HTML-output)
   ============================================================ */

/* ---------- Kleurenpalet ---------- */
:root {
  --mh-primary:   #1f3a5f;   /* diep marineblauw */
  --mh-accent:    #c8553d;   /* terracotta / warm rood */
  --mh-accent-2:  #e9b44c;   /* goudgeel */
  --mh-soft:      #f4f1ea;   /* warm gebroken wit */
  --mh-soft-2:    #e8e2d5;   /* iets donkerder zand */
  --mh-text:      #2b2b2b;   /* bijna-zwart */
  --mh-muted:     #6b6b6b;   /* grijs voor meta */
  --mh-rule:      #d6cfc0;   /* dunne lijnen */
  --mh-quote-bg:  #faf6ee;
}

/* ---------- Basis ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", "Cambria", "Times New Roman", serif;
  color: var(--mh-text);
  background: #ffffff;
  line-height: 1.65;
  font-size: 1.05rem;
}

/* ---------- Titelblok ---------- */
#title-block-header {
  background: linear-gradient(135deg, var(--mh-primary) 0%, #2e5178 100%);
  color: #ffffff;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  margin: -1rem -1rem 2.5rem -1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 24px rgba(31, 58, 95, 0.25);
}

#title-block-header .title {
  font-family: "Georgia", serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.6rem;
  border: none;
}

#title-block-header .subtitle {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--mh-accent-2);
  margin-bottom: 1.2rem;
}

#title-block-header .author,
#title-block-header .date {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  color: #d9e2ec;
  margin: 0.15rem 0;
}

/* ---------- Koppen ---------- */
h1, h2, h3, h4 {
  font-family: "Georgia", serif;
  color: var(--mh-primary);
  line-height: 1.25;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 1.85rem;
  border-bottom: 3px solid var(--mh-accent);
  padding-bottom: 0.4rem;
}

h2 {
  font-size: 1.5rem;
  border-left: 5px solid var(--mh-accent);
  padding-left: 0.8rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--mh-primary);
  font-style: italic;
}

/* ---------- Paragrafen en tekst ---------- */
p {
  margin-bottom: 1rem;
}

strong {
  color: var(--mh-primary);
  font-weight: 700;
}

em {
  color: var(--mh-accent);
}

a {
  color: var(--mh-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--mh-primary);
}

/* ---------- Lead-paragraaf ---------- */
.lead {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--mh-primary);
  border-left: 5px solid var(--mh-accent-2);
  padding: 1rem 1.5rem;
  background: var(--mh-soft);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0 2rem 0;
}

/* ---------- Lijsten ---------- */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.6rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--mh-accent);
  font-weight: 700;
}

/* ---------- Callouts (Quarto) ---------- */
.callout {
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 0;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.callout .callout-header {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  color: #ffffff;
}

.callout .callout-body {
  padding: 1rem 1.3rem;
  background: #ffffff;
}

.callout .callout-body p:last-child {
  margin-bottom: 0;
}

/* Note — marineblauw */
.callout-note {
  border-left: 6px solid var(--mh-primary);
}
.callout-note .callout-header {
  background: var(--mh-primary);
}

/* Tip — goudgeel */
.callout-tip {
  border-left: 6px solid var(--mh-accent-2);
}
.callout-tip .callout-header {
  background: var(--mh-accent-2);
  color: var(--mh-text);
}

/* Warning — terracotta */
.callout-warning {
  border-left: 6px solid var(--mh-accent);
}
.callout-warning .callout-header {
  background: var(--mh-accent);
}

/* Important — donkerder terracotta */
.callout-important {
  border-left: 6px solid #a03e2a;
}
.callout-important .callout-header {
  background: #a03e2a;
}

/* ---------- Twee-/driekolommen ---------- */
.columns {
  display: flex;
  gap: 1.8rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}

.column {
  flex: 1;
  min-width: 0;
}

.column h3 {
  margin-top: 0;
}

/* Op smalle schermen onder elkaar */
@media (max-width: 700px) {
  .columns {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ---------- Blockquotes ---------- */
blockquote {
  border-left: 5px solid var(--mh-accent);
  background: var(--mh-quote-bg);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--mh-primary);
  border-radius: 0 8px 8px 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------- Slotquotes ---------- */
.quote-final {
  text-align: center;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--mh-primary);
  background: var(--mh-soft);
  border-top: 3px solid var(--mh-accent-2);
  border-bottom: 3px solid var(--mh-accent-2);
  padding: 2rem 1.5rem;
  margin: 2.5rem 0;
  border-radius: 8px;
}

.quote-final p:last-child {
  margin-bottom: 0;
  font-style: normal;
  font-size: 1rem;
  color: var(--mh-muted);
}

/* ---------- Inhoudsopgave (TOC) ---------- */
#TOC {
  background: var(--mh-soft);
  border: 1px solid var(--mh-rule);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

#TOC h2 {
  border: none;
  padding: 0;
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  color: var(--mh-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#TOC a {
  color: var(--mh-text);
  text-decoration: none;
}

#TOC a:hover {
  color: var(--mh-accent);
  text-decoration: underline;
}

#TOC ul {
  list-style: none;
  padding-left: 0;
}

#TOC ul ul {
  padding-left: 1.2rem;
}

#TOC li {
  margin-bottom: 0.35rem;
}

/* ---------- Horizontale lijnen ---------- */
hr {
  border: none;
  border-top: 2px solid var(--mh-rule);
  margin: 2.5rem 0;
}

/* ---------- Selectie ---------- */
::selection {
  background: var(--mh-accent-2);
  color: var(--mh-text);
}

/* ---------- Print ---------- */
@media print {
  #title-block-header {
    background: var(--mh-primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .callout {
    box-shadow: none;
    border: 1px solid var(--mh-rule);
  }
  .columns {
    display: block;
  }
}