/* /site/assets/css/main.css */

/* ===========  
   Editorial Elegance — Airier Theme  
   =========== */

/* Hide any element with the .hidden class */
.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

/* Hide on mobile */
.mobile-hide {
  display: none !important;
}
@media (min-width: 768px) {
  .mobile-hide {
    display: block !important;
  }
}


/* 1) Reset + Base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-800);
  background:
    radial-gradient(circle at top left,
      color-mix(in oklab, var(--blush) 70%, white) 0,
      transparent 55%)
    ,
    radial-gradient(circle at bottom right,
      color-mix(in oklab, var(--orchid) 55%, white) 0,
      transparent 60%)
    ,
    var(--bg);
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Links — blush-ink underline on hover */
a { color: var(--lavender-ink); text-decoration: none; text-underline-offset: 2px; }
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, var(--orchid) 40%, var(--lavender-ink));
}

/* Headings */
h1, h2, h3, h4 {
  margin: 0 0 var(--space-md);
  line-height: 1.2;
  color: var(--ink-900);
}
h1 { font-family: var(--font-serif); font-size: var(--step-5); font-weight: 500; }
h2 { font-family: var(--font-serif); font-size: var(--step-3); font-weight: 500; }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 var(--space-md); color: var(--ink-700); }
ul, ol { margin: 0 0 var(--space-md) 1.2rem; padding: 0 0 0 1rem; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink-900);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); z-index: var(--z-overlay); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* 2) Layout */
.container {
  width: min(1100px, calc(100% - 2 * var(--space-xl)));
  margin-inline: auto;
}
.flow > * + * { margin-top: var(--space-md); }

.grid.two {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Page sections */
.page-section {
  padding: var(--space-2xl) 0;
}
.page-section + .page-section {
  border-top: 1px solid var(--ink-150);
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: var(--space-xl);
  align-items: flex-start;
}
@media (max-width: 820px) {
  .two-column { grid-template-columns: 1fr; }
}

/* Buttons */
.button {
  display: inline-block;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: var(--orchid);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.button:active { transform: translateY(0); opacity: 0.92; }

/* Link with arrow */
.link-arrow { position: relative; padding-right: 1.2em; }
.link-arrow::after {
  content: "→";
  position: absolute; right: 0; top: 0;
  transition: transform 180ms ease;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* 3) Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background:
    linear-gradient(
      180deg,
      color-mix(in oklab, var(--blush) 28%, var(--surface)) 0%,
      color-mix(in oklab, var(--surface) 88%, var(--orchid) 12%) 100%
    );
  border-bottom: 1px solid var(--ink-150);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  display: grid; gap: var(--space-md);
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: var(--space-md) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface-tint);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--silver);
}

.brand-name {
  font-weight: 600;
  color: var(--ink-700);
  font-size: var(--step--1);
}

.tagline { margin: 0; grid-column: 1 / -1; color: var(--ink-500); font-size: var(--step--1); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; }
.nav-toggle .nav-toggle-bar { width: 24px; height: 2px; background: var(--ink-800); }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.primary-nav a { color: var(--ink-700); font-weight: 600; }
.primary-nav a:hover { color: var(--ink-900); }

/* Active nav link */
.primary-nav a[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
  position: relative;
}
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blush), var(--orchid));
}

@media (min-width: 880px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .tagline { grid-column: 1 / -1; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
}

/* 4) Hero, Cards, Pull Quotes */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--ink-150);
  background:
    linear-gradient(
      135deg,
      color-mix(in oklab, var(--blush) 75%, white) 0%,
      color-mix(in oklab, var(--orchid) 40%, white) 38%,
      transparent 72%
    );
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: var(--step-5);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.hero-copy p.hero-subtitle {
  font-size: var(--step-1);
  max-width: 60ch;
  color: var(--ink-600);
  margin-bottom: var(--space-lg);
}

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-butterfly {
  max-width: 260px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(60, 41, 102, 0.18));
  animation: heroFloat 10s ease-in-out infinite;
}

@keyframes heroFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin-bottom: var(--space-lg); }
}

/* Hero headings */
.hero-title {
  font-family: var(--font-serif);
  font-size: var(--step-5);
  margin-bottom: var(--space-sm);
}
.hero-tagline {
  font-size: var(--step-1);
  color: var(--ink-600);
  max-width: 60ch;
}
.hero-cta { margin-top: var(--space-lg); }

/* Generic card */
.card {
  background: var(--surface);
  border: 1px solid var(--silver);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in oklab, var(--orchid) 24%, var(--silver));
  background: color-mix(in oklab, var(--ui-tint) 30%, white);
}

/* Pull quotes */
.pull-quote {
  margin: var(--space-2xl) auto;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--silver);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.pull-quote blockquote { margin: 0; }
.pull-quote p {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--lavender-ink);
}

/* 5) Footer — compact layout */
/* 5) Footer — NORMAL LAYOUT */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg); 
  background:
    linear-gradient(
      180deg,
      color-mix(in oklab, var(--surface) 92%, var(--blush) 8%) 0%,
      color-mix(in oklab, var(--surface) 95%, var(--orchid) 5%) 100%
    );
  border-top: 1px solid var(--ink-150);
}

/* Simple vertical stack */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  
  display: flex;
  flex-direction: column;
  align-items: center;     /* center all content */
  
  row-gap: var(--space-md);  /* normal, not huge spacing */
}

/* Brand + signature */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.signature-slot img {
  width: 160px;
  height: auto;
  border-radius: 0;
}

/* Navigation — centered row */
.footer-links {
  text-align: center;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer-nav a {
  color: var(--ink-700);
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--ink-900);
}

/* Meta — standard footer text */
.footer-meta {
  text-align: center;
  font-size: var(--step--1);
}

.footer-meta address,
.footer-meta p {
  margin: 0.5rem 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.footer-social a {
  font-weight: 600;
  color: var(--ink-700);
}
.footer-social a:hover {
  color: var(--lavender-ink);
}

/* 6) Quote Bubble */
.quote-bubble {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  max-width: 28ch;
  border: 1px solid var(--silver);
  background: color-mix(in oklab, var(--ui-tint) 35%, white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md) var(--space-lg);
  color: var(--ink-700);
  opacity: 0.97;
  backdrop-filter: blur(6px);
  transform: translateY(8px);
  animation: quoteIn 420ms cubic-bezier(.2,.7,.2,1) forwards;
}
.quote-bubble p { margin: 0; font-family: var(--font-serif); color: var(--ink-700); }
.quote-bubble small { display: block; margin-top: var(--space-xs); color: var(--ink-300); }
.quote-close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: none; font-size: 1.1rem; line-height: 1;
  color: var(--ink-300); cursor: pointer;
}
.quote-close:hover { color: var(--ink-500); }
@keyframes quoteIn { to { opacity: 1; transform: translateY(0); } }

/* Floating butterfly */
.floating-butterfly-wrapper {
  position: fixed;
  top: clamp(160px, 16vh, 190px);
  right: clamp(12px, 4vw, 40px);
  z-index: 999;
  transform: translateY(var(--banner-offset));
  pointer-events: none;
}
.floating-butterfly {
  width: 170px;
  opacity: 0.97;
  filter: drop-shadow(0 18px 34px rgba(60, 41, 102, 0.25));
  animation: butterflyDrift 16s ease-in-out infinite;
}
.floating-butterfly img { width: 100%; height: auto; }

@media (max-width: 640px) {
  .floating-butterfly { display: none; }
}
@keyframes butterflyDrift {
  0%   { transform: translate3d(0,0,0) rotate(0deg); }
  25%  { transform: translate3d(-6px,-8px,0) rotate(-2deg); }
  50%  { transform: translate3d(2px,-12px,0) rotate(1deg); }
  75%  { transform: translate3d(-4px,-6px,0) rotate(-1deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* 7) Page headers */
.page-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--section-tint);
  border-bottom: 1px solid var(--ink-150);
}
.page-intro { color: var(--ink-600); max-width: 70ch; }

.highlights {
  padding: var(--space-2xl) 0;
  background: var(--section-tint);
  border-top: 1px solid var(--ink-150);
  border-bottom: 1px solid var(--ink-150);
}
.backtotop a { color: var(--ink-500); }
.backtotop a:hover { color: var(--ink-700); }

/* Bio blocks */
.bio-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin: var(--space-2xl) auto;
}

.profile-photo,
.bio-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo img {
  max-width: 220px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--silver);
}

.bio-text { max-width: 38rem; }

@media (min-width: 820px) {
  .bio-block { justify-content: flex-start; }
  .profile-photo { flex: 0 0 auto; align-items: flex-start; }
  .bio-text { align-items: flex-start; text-align: left; }
}

/* CoCo grid */
.photo-grid {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--silver);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-soft);
}
.photo-card img {
  border-radius: var(--radius-md);
  width: 100%;
  display: block;
}
.photo-caption {
  font-size: var(--step--1);
  color: var(--ink-600);
  margin-top: 0.4rem;
  text-align: center;
}

/* Blog teaser card */
#blog-teaser-card .teaser-title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
#blog-teaser-card .teaser-meta {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
#blog-teaser-card .teaser-tags .tag {
  margin-left: 0.4rem;
  font-size: 0.8rem;
}
#blog-teaser-card .teaser-summary { margin-bottom: 0.6rem; }

/* Blog listing */
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xl);
}

.blog-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver);
  background: var(--surface);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--orchid) 25%, var(--silver));
  background: color-mix(in oklab, var(--ui-tint) 25%, white);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card-link h2 { margin-bottom: var(--space-xs); }
.blog-card-excerpt {
  margin-bottom: var(--space-sm);
  color: var(--ink-700);
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* Tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 139, 198, 0.3);
  background: color-mix(in oklab, var(--ui-tint) 25%, white);
  font-size: var(--step--1);
  color: var(--ink-600);
}

/* Blog post body */
.blog-post-body {
  max-width: 70ch;
  margin-inline: auto;
  font-size: var(--step-0);
}
.blog-post-body p + p { margin-top: var(--space-md); }
.blog-post-body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--step-2);
}
.blog-post-body h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.blog-post-meta {
  font-size: var(--step--1);
  color: var(--ink-500);
  margin-bottom: var(--space-md);
}
@media (max-width: 768px) {
  .blog-card { padding: var(--space-md); }
  .page-header { padding: var(--space-xl) 0 var(--space-lg); }
}

/* Base publication item container */
.pub-item {
  position: relative;
  margin-bottom: 2.5rem;
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    background-color 180ms ease-out;
}

/* Hover / focus lift */
.pub-item:hover,
.pub-item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  background-color: color-mix(in oklab, var(--pearl) 80%, white);
}

.pub-item.book {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

/* Book cover border — using variables */
.pub-item .book-cover {
  width: 240px;
  height: auto;
  border-radius: 10px;

  border: 3px solid;
  border-image: linear-gradient(
      135deg,
      var(--pearl) 0%,
      var(--blush) 25%,
      var(--orchid) 60%,
      var(--silver) 100%
  ) 1;

  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pub-item .pub-content p {
  max-width: 640px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .pub-item.book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pub-item .book-cover {
    width: 70%;
    max-width: 320px;
    border-width: 2px;
  }
}

/* Publication card */
.pub-item.card {
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--silver);
  background-color: #ffffff;
}

/* Accent strip */
.pub-item.card::before {
  content: "";
  position: absolute;
  inset-block: 0.9rem;
  inset-inline-start: 0.9rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--blush) 0%,
    var(--orchid) 60%,
    var(--silver) 100%
  );
}

.pub-item.card .pub-content {
  margin-left: 0.9rem;
}
.pub-item.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}
.pub-item.card .pub-meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
  margin-bottom: 0.75rem;
}
.pub-item.card p { margin-bottom: 0.65rem; }
.pub-item.card a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.pub-item.card a:hover { color: var(--lavender-ink); }

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Mini cards */
.pub-item.card-mini {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--silver);
  border-radius: 10px;
  background: #ffffff;
  gap: 1rem;
  position: relative;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

/* Mini card accent strip */
.pub-item.card-mini::before {
  content: "";
  position: absolute;
  inset-block: 0.75rem;
  inset-inline-start: 0.75rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--blush) 0%,
    var(--orchid) 60%,
    var(--silver) 100%
  );
}

.pub-item.card-mini .mini-content { margin-left: 0.75rem; }
.pub-item.card-mini h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
}
.pub-item.card-mini p {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
}

/* Thumbnail card */
.thumb-card {
  display: grid;
  grid-template-columns: 120px auto;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--silver);
  background: #ffffff;
  position: relative;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

/* Accent strip for thumbnails */
.thumb-card::before {
  content: "";
  position: absolute;
  inset-block: 1rem;
  inset-inline-start: 1rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--blush) 0%,
    var(--orchid) 60%,
    var(--silver) 100%
  );
}

.thumb-card img.thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

/* Thumbnail text */
.thumb-card .thumb-content { margin-left: 0.75rem; }
.thumb-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}
.thumb-card .meta {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}
.thumb-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .thumb-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .thumb-card img.thumb { margin-inline: auto; }
  .thumb-card .thumb-content { margin-left: 0; }
}

/* 8) Construction Banner */
/* More pink, fully centered banner */
.l8-construction-banner {
  background: linear-gradient(
    90deg,
    var(--blush, #f7c9da),
    var(--blush-strong, #f3b0cb)
  );
  padding: 0.75rem 0;  
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);

  /* Make the entire bar centered */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Add slight drop shadow so it looks “on top”, not merged */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.l8-construction-inner {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  padding: 0 1rem;
}

.l8-construction-pill {
  background: var(--orchid);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.l8-construction-text {
  color: --var(--pearl);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* Previous / Next nav on blog post pages */
.blog-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

/* Ensure the inner wrappers (previous/next divs) can stretch */
.blog-nav > div {
  display: flex;
}

/* Make the card fill its grid cell so both sides look balanced */
.blog-nav-card {
  width: 100%;
  height: 100%;
}


/* New L8 Teaser Section Styles */
.l8-latest-layer {
  margin-block: 3rem;
}

.l8-latest-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 900px) {
  .l8-latest-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.l8-section-heading {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Outer wrapper handles fade + transform */
.l8-teaser-card {
  position: relative;
  opacity: 1;
  transition: opacity 1.25s ease, transform 1.25s ease;
}

.l8-teaser-card--visible {
  opacity: 1;
}

.l8-teaser-card--transitioning {
  opacity: 0;
  transform: translateY(4px);
}

/* Inner shell with pearl–blush–lavender wash */
.l8-teaser-card__shell {
  background: linear-gradient(
    to bottom right,
    color-mix(in oklab, var(--blush) 60%, white),
    color-mix(in oklab, var(--pearl) 85%, white)
  );
  border-radius: 1.25rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

/* Meta row */
.l8-teaser-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

/* "Blog" / "Podcast Episode" link */
.l8-teaser-card__medium-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--lavender-ink);
  font-weight: 600;
}

/* Pill for pillar/tag */
.l8-teaser-card__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--orchid) 40%, white);
  background: color-mix(in oklab, var(--blush) 30%, white);
  color: var(--orchid);
}

/* Title + teaser */
.l8-teaser-card__title-link {
  text-decoration: none;
  color: inherit;
}

.l8-teaser-card__title {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.4rem;
  color: var(--ink-900);
}

.l8-teaser-card__teaser {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.7rem;
  color: var(--ink-700);
}

/* Footer */
.l8-teaser-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  opacity: 0.9;
}

.l8-teaser-card__date {
  opacity: 0.8;
  color: var(--ink-500);
}

.l8-teaser-card__cta {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orchid);
}

/* Hover softness */
.l8-teaser-card__shell:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

/* Pill filter bar above lists */
.l8-index-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .l8-index-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.l8-pill-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Reuse the teaser pill, but allow active state */
.l8-pill-filter__pill {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.l8-pill-filter__pill.is-active {
  box-shadow: 0 0 0 1px var(--lavender-ink);
}

/* List layout */
.l8-card-list {
  display: grid;
  gap: 1.5rem;
}

.l8-list-card {
/*  padding: 1.25rem 1.5rem;  */
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.l8-list-card__header {
  margin-bottom: 0.4rem;
}

.l8-list-card__title-link {
  text-decoration: none;
  color: inherit;
}

.l8-list-card__title {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.4rem;
  color: var(--ink-900);
}

.l8-list-card__teaser {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.6rem;
  color: var(--ink-700);
}

.l8-list-card__footer {
  font-size: 0.8rem;
  color: var(--ink-500);
}

.l8-card-list__empty {
  font-size: 0.9rem;
  color: var(--ink-700);
  font-style: italic;
}

.l8-list-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}


/* Inner two-column layout */
.l8-list-card__inner {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr); /* fixed thumb column */
  align-items: stretch;
}

.l8-list-card__thumb {
  position: relative;
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 20%,
    color-mix(in oklab, var(--blush) 55%, white),
    color-mix(in oklab, var(--pearl) 90%, white)
  );
}


/* Vertical gradient bar like your public card */
.l8-list-card__thumb-bar {
  position: absolute;
  left: 0.9rem;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--lavender-ink) 65%, white),
    color-mix(in oklab, var(--orchid) 65%, white)
  );
}

.l8-list-card__thumb-img {
  width: 90px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text body */
.l8-list-card__body {
  padding: 1.4rem 1.75rem 1.4rem 1.25rem;
}

.l8-list-card__pill-row {
  margin-bottom: 0.4rem;
}

.l8-list-card__pillar {
  font-size: 0.72rem;
}

/* Title + meta + teaser */
.l8-list-card__title {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  color: var(--lavender-ink);
}

.l8-list-card__meta {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.l8-list-card__teaser {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  color: var(--ink-700);
}

/* Hover lift */
.l8-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

/* Empty state */
.l8-card-list__empty {
  font-size: 0.9rem;
  color: var(--ink-700);
  font-style: italic;
}

/* Stack on small screens */
@media (max-width: 640px) {
  .l8-list-card__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .l8-list-card__thumb {
    padding-bottom: 0.75rem;
  }

  .l8-list-card__body {
    padding-top: 0.75rem;
  }
}

/* Centered filter header + underline */
.l8-filter-shell {
  text-align: center;
  margin-bottom: 1.6rem;
}

.l8-filter-heading {
  margin: 0;
  font-size: 1rem;
  color: var(--lavender-ink);
  font-weight: 500;
}

.l8-filter-underline {
  width: clamp(140px, 40%, 260px);
  height: 1px;
  margin: 0.4rem auto 0.9rem;
  background: linear-gradient(
    to right,
    color-mix(in oklab, var(--blush) 60%, white),
    color-mix(in oklab, var(--lavender-ink) 45%, white)
  );
  border-radius: 999px;
}

/* Pills row under the underline */
.l8-pill-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.9rem;
}

/* On narrow screens, left-align for readability */
@media (max-width: 640px) {
  .l8-filter-shell {
    text-align: left;
  }

  .l8-filter-underline {
    margin-left: 0;
    margin-right: auto;
  }

  .l8-pill-filter {
    justify-content: flex-start;
  }
}

.l8-teaser-card__shell--placeholder {
  opacity: 0.9;
}
