:root {
  --teal:        #00394a;
  --teal-mid:    #005a6e;
  --teal-light:  #cddbe4;
  --teal-xlight: #e8f3f7;
  --peach:       #f4c4bb;
  --peach-light: #fdf0ed;
  --cream:       #faf9f8;
  --warm-white:  #ffffff;
  --text:        #1a2e35;
  --text-mid:    #3d5a64;
  --text-soft:   #7a9aa5;
  --gold:        #c4793a;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --r:           8px;
  --r-lg:        16px;
  --shadow:      0 4px 24px rgba(0,57,74,0.10);
  --shadow-lg:   0 12px 48px rgba(0,57,74,0.16);
}

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }

.eyebrow {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-mid); display: block; margin-bottom: 0.6rem;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Listing hero */
.blog-hero {
  background: linear-gradient(135deg, var(--teal) 0%, #002535 100%);
  padding: 72px 0 64px;
  position: relative; overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.blog-hero-inner .eyebrow { color: var(--peach); }
.blog-hero h1 { color: white; margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3rem); }
.blog-hero h1 em { font-style: italic; color: var(--teal-light); }
.blog-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.72;
}

/* Index + filters */
.blog-index { padding: 48px 0 72px; background: var(--warm-white); }
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.blog-filter-chip {
  padding: 8px 16px; border-radius: 22px;
  border: 1.5px solid rgba(0,57,74,0.15);
  font-size: 0.8rem; font-weight: 500; color: var(--text-mid);
  cursor: pointer; background: white; font-family: var(--font-sans);
  transition: all 0.18s;
}
.blog-filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.blog-filter-chip.is-active {
  background: var(--teal); border-color: var(--teal); color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  border: 1.5px solid rgba(0,57,74,0.1);
  border-radius: var(--r-lg);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.blog-card:hover {
  border-color: rgba(0,57,74,0.22);
  box-shadow: var(--shadow);
}
.blog-card-link {
  display: block;
  padding: 22px 22px 24px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.blog-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.blog-tag {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--teal-xlight);
  color: var(--teal-mid);
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal);
  line-height: 1.35;
  margin: 0;
  transition: color 0.15s;
}
.blog-card:hover .blog-card-title { color: var(--teal-mid); }

.blog-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 28px;
}

/* Article placeholder page */
.blog-article-hero {
  background: linear-gradient(135deg, var(--teal) 0%, #002535 100%);
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.blog-article-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.blog-article-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.blog-article-kicker {
  font-size: 0.88rem; margin-bottom: 14px;
}
.blog-article-kicker a {
  color: var(--peach);
  text-decoration: none;
  font-weight: 500;
}
.blog-article-kicker a:hover { text-decoration: underline; }
.blog-article-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.blog-article-hero h1 {
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0;
}

.blog-article-placeholder {
  padding: 56px 0 64px;
  background: var(--cream);
}
.blog-article-placeholder-inner { max-width: 640px; }
.blog-article-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}
.blog-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Article body */
.blog-article-byline {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  margin: 14px 0 0;
  font-family: var(--font-sans);
}
.blog-article-byline-sep { opacity: 0.6; }
.blog-article-hero-image {
  margin: 28px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.blog-article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.blog-article-body {
  padding: 56px 0 64px;
  background: var(--warm-white);
}
.blog-article-body-inner { max-width: 760px; }

.blog-prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--teal);
  margin: 2.4rem 0 0.85rem;
}
.blog-prose h2:first-of-type { margin-top: 0; }
.blog-prose h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-mid);
  margin: 1.5rem 0 0.65rem;
}
.blog-prose p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.blog-prose p:last-child { margin-bottom: 0; }
.blog-prose ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.blog-prose li {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.blog-prose sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
  color: var(--teal-mid);
}
.blog-prose a {
  color: var(--teal-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-prose a:hover { color: var(--teal); }

.blog-figure {
  margin: 1.75rem 0;
  text-align: center;
}
.blog-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}
.blog-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
}

.blog-references {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,57,74,0.1);
}
.blog-references ol {
  margin: 0;
  padding: 0 0 0 1.25rem;
}
.blog-references li {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.blog-more-to-read {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,57,74,0.1);
}
.blog-more-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-more-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,57,74,0.08);
}
.blog-more-list li:last-child { border-bottom: none; }
.blog-more-list a {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--teal);
  text-decoration: none;
  line-height: 1.35;
}
.blog-more-list a:hover { color: var(--teal-mid); text-decoration: underline; }

/* Buttons (listing uses cards only; article + CTA need these) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-mid); }
.btn-white { background: white; color: var(--teal); }
.btn-white:hover { background: var(--teal-xlight); }
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: white; }
.btn-ghost-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); }

/* CTA band */
.sci-cta {
  background: linear-gradient(135deg, var(--teal) 0%, #002535 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.sci-cta::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
}
.sci-cta-content { position: relative; z-index: 1; }
.sci-cta h2 { color: white; margin-bottom: 14px; }
.sci-cta p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 32px; font-size: 1rem; }
.sci-cta .eyebrow { color: var(--peach); }
.sci-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}
