/* ==========================================================================
   Cover Software Group - site styles
   Hand-written CSS. No framework, no utility classes.
   ========================================================================== */

/* ---- Fonts (self-hosted; replaces Google Fonts) ---- */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Design tokens ---- */
:root {
  --primary: #C27B3E;
  --primary-dark: #9A5F2F;
  --primary-light: #F0C97B;
  --surface: #FEF5E4;
  --charcoal: #2C3333;
  --charcoal-start: #1e2626;
  --charcoal-end: #3A4040;
  --warm-white: #FDFBF7;
  --warm-border: #E8E2D9;
  --text: #1A1A1A;
  --text-muted: #6b7280;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ---- Layout primitives ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container, .container-narrow { padding: 0 2.5rem; }
}

.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section-surface { background: var(--surface); }
.section-dark {
  background: var(--charcoal);
  color: white;
  text-align: center;
}
.section-dark p { color: rgba(255, 255, 255, 0.7); }

/* Split pattern: eyebrow/heading on left, content on right */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 2fr 3fr; gap: 4rem; }
}
@media (min-width: 1024px) {
  .split { gap: 5rem; }
}
.split-reverse {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .split-reverse { grid-template-columns: 3fr 2fr; gap: 4rem; }
}
@media (min-width: 1024px) {
  .split-reverse { gap: 5rem; }
}

/* ---- Common pieces ---- */
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--primary-light); }

.section-title {
  font-size: 2.25rem;
  line-height: 1.15;
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

.accent-bar {
  display: block;
  width: 3rem;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.btn-md { padding: 0.875rem 2rem; font-size: 0.95rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-full { display: flex; width: 100%; }
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-group-center { justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .site-header-inner { padding: 0 2.5rem; } }

.site-header.scrolled {
  background: var(--warm-white);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-logo:hover { color: var(--primary); }

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) { .nav { display: flex; } }

.nav-link {
  position: relative;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Dark-background header (hero or page-header behind it) */
.header-dark .site-logo,
.header-dark .nav-link { color: rgba(255, 255, 255, 0.85); }
.header-dark .site-logo:hover,
.header-dark .nav-link:hover { color: white; }
.header-dark .nav-link::after { background: white; }
.header-dark .toggle-bar { background: white; }
.header-dark .nav-cta { color: white; }

.header-dark.scrolled .site-logo,
.header-dark.scrolled .nav-link { color: var(--text); }
.header-dark.scrolled .site-logo:hover,
.header-dark.scrolled .nav-link:hover { color: var(--primary); }
.header-dark.scrolled .nav-link::after { background: var(--primary); }
.header-dark.scrolled .toggle-bar { background: var(--text); }

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  z-index: 1001;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.4s var(--ease), opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}
.menu-toggle.open .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--text);
}
.menu-toggle.open .toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--warm-white);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--warm-border);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .nav-cta {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  border-bottom: none;
  color: white;
  padding: 0.625rem 1.25rem;
}
.mobile-menu .nav-cta:hover { color: white; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Dark decorative panel (hero + page-header share the look) ---- */
.dark-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal-start), var(--charcoal), var(--charcoal-end));
  color: white;
}
.dark-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.dark-panel > * { position: relative; z-index: 1; }

/* Decorative ring */
.deco-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
  display: none;
}
@media (min-width: 768px) { .deco-ring { display: block; } }

/* Decorative blurred blob */
.deco-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.deco-blob-warm {
  background: radial-gradient(circle, rgba(194, 123, 62, 0.2), rgba(240, 201, 123, 0.1));
  filter: blur(80px);
}
.deco-blob-primary {
  background: rgba(194, 123, 62, 0.08);
  filter: blur(60px);
}

/* Curved bottom edge on dark panels */
.panel-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  width: 100%;
  display: block;
}

/* ---- Hero (home) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 55% 45%;
    padding: 4rem 2.5rem;
  }
}
.hero-title {
  font-size: 2.75rem;
  line-height: 1.05;
  color: white;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-visual {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1024px) { .hero-visual { display: flex; } }
.hero-blob {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(194, 123, 62, 0.3), rgba(240, 201, 123, 0.15));
  animation: morph 12s ease-in-out infinite alternate;
}
@keyframes morph {
  0%   { border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; }
  33%  { border-radius: 55% 45% 40% 60% / 45% 60% 45% 55%; }
  66%  { border-radius: 45% 55% 60% 40% / 60% 40% 55% 45%; }
  100% { border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%; }
}
.hero-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(240, 201, 123, 0.2);
  border-radius: 50%;
}

/* ---- Page header (internal pages) ---- */
.page-header {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}
.page-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}
@media (min-width: 1024px) { .page-header-inner { padding: 0 2.5rem; } }
.page-header-narrow .page-header-inner { max-width: var(--container-narrow); }
.page-header-title {
  font-size: 2.75rem;
  line-height: 1.05;
  color: white;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .page-header-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .page-header-title { font-size: 3.75rem; } }
.page-header-title-sm {
  font-size: 2.25rem;
}
@media (min-width: 768px) { .page-header-title-sm { font-size: 3rem; } }
.page-header-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2rem;
}

/* Fix subpixel seam where SVG curve meets content below */
.page-header, .hero {
  box-shadow: 0 1px 0 0 var(--warm-white);
}

/* Back-to-blog link on post page header */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-light);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: gap 0.2s ease;
}
.back-link:hover { gap: 0.25rem; }
.back-link svg { width: 16px; height: 16px; }

/* ---- Divider list (vertical items separated by lines) ---- */
.divider-list > * + * {
  border-top: 1px solid var(--warm-border);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}
.divider-list-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Number badge (small 01 02 03 above divider list items) */
.num-badge {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* ---- Process list (large numerals on the left) ---- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.process-item {
  position: relative;
  padding-left: 3.5rem;
}
.process-num {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary-light);
  line-height: 1;
}
.process-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* ---- Stats grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: 1.5rem;
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- "What you get" intro paragraph before a divider list ---- */
.list-intro {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.75rem;
}

/* ---- Two-column content paragraphs (services, about) ---- */
.copy-block p { margin-bottom: 1rem; }
.copy-block p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.site-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .site-footer-inner { padding: 0 2.5rem; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: white;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--primary-light); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.footer-copy a:hover { color: var(--primary-light); }
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
}
.back-to-top:hover { background: var(--primary); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---- Contact form ---- */
.form-field { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text);
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm-border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 123, 62, 0.1);
}
.form-input.error, .form-textarea.error { border-color: #D94F4F; }

.form-error {
  display: none;
  font-size: 0.875rem;
  color: #B91C1C;
  margin-top: 0.25rem;
}
.form-error.visible { display: block; }

.form-success, .form-failure {
  display: none;
  padding: 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 1rem;
}
.form-success {
  background: #ECFDF5;
  border: 1px solid #86EFAC;
  color: #065F46;
}
.form-failure {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}
.form-success.visible, .form-failure.visible { display: block; }
.form-failure a { color: inherit; text-decoration: underline; }

.honeypot { display: none; }

/* ---- Contact info list ---- */
.contact-heading {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .contact-heading { font-size: 2.5rem; } }
.contact-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 2px;
}
.contact-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.contact-value, .contact-value a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-value a:hover { color: var(--primary); }

/* ---- Blog list ---- */
.article-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--warm-border);
}
.article-card:first-child { padding-top: 0; }
.article-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.article-title {
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.article-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-title a:hover { color: var(--primary); }
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.read-more:hover svg { transform: translateX(4px); }

/* ---- Blog post body ---- */
.post-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}
.post-body > * + * { margin-top: 1.25rem; }
.post-body h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.post-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.post-body p { margin-bottom: 0; }
.post-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}
.post-body li { margin-bottom: 0.5rem; }
.post-body strong {
  color: var(--text);
  font-weight: 600;
}
.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--primary-dark); }

.post-meta {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--warm-border);
}
.post-meta time {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Scroll reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-stagger .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-stagger .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero-stagger .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-stagger .reveal:nth-child(4) { transition-delay: 0.55s; }

/* ---- Skip to content link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

/* ---- Focus-visible (keyboard navigation a11y) ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--primary-dark);
}
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}
.header-dark .nav-link:focus-visible,
.header-dark .nav-cta:focus-visible,
.header-dark .site-logo:focus-visible,
.header-dark .menu-toggle:focus-visible {
  outline-color: white;
}
.header-dark.scrolled .nav-link:focus-visible,
.header-dark.scrolled .site-logo:focus-visible,
.header-dark.scrolled .menu-toggle:focus-visible {
  outline-color: var(--primary);
}
.site-footer :focus-visible {
  outline-color: white;
  outline-offset: 2px;
}

/* ---- Reduced motion (a11y) ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Utility classes (minimal) ---- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-text { max-width: 520px; }

/* Scroll anchor offset so fixed header doesn't cover section tops */
[id] { scroll-margin-top: var(--header-h); }
