/* ===========================
   Zomalex – custom.css
   Drop into your repo root and
   add to _config.yml:
     google_fonts: "https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600&family=DM+Sans:wght@400;500;600&display=swap"
   =========================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --blue:        #1a4f8a;
  --blue-light:  #2568b8;
  --blue-pale:   #e8f0fa;
  --accent:      #f0a500;
  --text:        #1e2a3a;
  --muted:       #5a6a7e;
  --border:      #d4e0f0;
  --white:       #ffffff;
  --radius:      8px;
  --max-w:       820px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: #f5f7fb;
  margin: 0;
}

/* ── Nav bar ── */
nav, .site-nav, header nav {
  background: var(--blue) !important;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a, .site-nav a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover, .site-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white) !important;
}

/* ── Hero banner ── */
.site-header, header.site-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  padding: 2.5rem 2rem 2rem;
  border-bottom: 3px solid var(--accent);
}

.site-title, h1.site-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--white) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ── Page wrapper ── */
.page-content, main, .wrapper {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* ── Content card ── */
article, .post-content, .page-content > .wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(26,79,138,0.06);
  padding: 2.5rem 3rem;
}

/* ── Page title (h1) ── */
h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* ── Section headings (h2, h3) ── */
h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Coloured left-bar accent on h2 */
h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}

/* ── Paragraphs ── */
p {
  color: #2e3d50;
  margin: 0.6rem 0 1rem;
}

/* ── Lists ── */
ul, ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

li::marker {
  color: var(--blue-light);
}

/* ── Info callout boxes ──
   Wraps "Who should attend" and "Learning Objectives" intro paras
   automatically by targeting p directly after h2              */
h2 + p {
  background: var(--blue-pale);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin-top: 0.5rem;
  font-size: 0.97rem;
}

/* ── Footer ── */
footer, .site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ── Links ── */
a {
  color: var(--blue-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  article, .post-content, .page-content > .wrapper {
    padding: 1.5rem 1.25rem;
  }
  h1 { font-size: 1.5rem; }
}
