/* Shared styling for static blog pages — Lona King & Billy Heinzman */
/* Brand: DM Serif Display + DM Sans, deep green primary, terracotta accent */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(40, 30%, 96%);
  --fg: hsl(160, 30%, 12%);
  --primary: hsl(160, 35%, 18%);
  --primary-light: hsl(160, 25%, 94%);
  --accent: hsl(24, 55%, 55%);
  --muted: hsl(160, 10%, 40%);
  --border: hsl(40, 15%, 86%);
  --card: hsl(40, 25%, 99%);
  --radius: 0.75rem;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header / Nav ── */
header {
  background: var(--primary);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

header nav a {
  color: hsl(40, 30%, 92%);
  text-decoration: none;
  transition: color 0.2s;
}

header nav a:first-child {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: #fff;
  margin-right: auto;
}

header nav a:hover { color: var(--accent); }

/* Remove the pipe separators rendered as text nodes */
header nav { font-size: 0; }
header nav a { font-size: 0.95rem; }

/* ── Main / Article ── */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

article { }

article h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

article h1 + p em {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.55rem;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}

article h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}

article p {
  margin-bottom: 1.25rem;
}

article strong {
  color: var(--fg);
  font-weight: 600;
}

article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
article a:hover { color: var(--primary); }

article ul, article ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

article li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

article li strong {
  color: var(--primary);
}

/* ── Blockquotes ── */
article blockquote {
  border-left: 4px solid var(--accent);
  background: var(--card);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

/* ── FAQ section styling ── */
article h2 ~ h3 + p {
  background: var(--primary-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary);
}

/* ── CTA Links (tel/mailto) ── */
article a[href^="tel:"],
article a[href^="mailto:"] {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
article a[href^="tel:"]:hover,
article a[href^="mailto:"]:hover {
  color: var(--accent);
}

/* ── Footer ── */
footer {
  background: var(--primary);
  color: hsl(40, 30%, 85%);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
}

footer a {
  color: hsl(40, 30%, 92%);
  text-decoration: none;
  border-bottom: 1px solid hsl(40, 30%, 40%);
  transition: color 0.2s, border-color 0.2s;
}
footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

footer p { margin-bottom: 0.35rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  header { padding: 0.75rem 1rem; }
  header nav { gap: 0.75rem; }
  header nav a:first-child { font-size: 1rem; }
  main { padding: 2rem 1rem 3rem; }
  article h1 { font-size: 1.6rem; }
  article h2 { font-size: 1.3rem; }
}
