/* blowingquotes.com — editorial quote focus, cool gradient, Fraunces + Outfit */

:root {
  --bg: #eef2ff;
  --bg-card: #ffffff;
  --text: #0e0e12;
  --muted: #5a5668;
  --line: rgba(15, 14, 18, 0.08);
  --accent: #4f46e5;
  --accent-2: #2563eb;
  --accent-soft: rgba(79, 70, 229, 0.14);
  --brand-deep: #312e81;
  --brand-mid: #4338ca;
  --gradient-hero: linear-gradient(
    135deg,
    #c7d2fe 0%,
    #ddd6fe 38%,
    #bfdbfe 72%,
    #f8fafc 100%
  );
  --gradient-mesh: radial-gradient(
      ellipse 85% 65% at 15% 15%,
      rgba(79, 70, 229, 0.35),
      transparent 58%
    ),
    radial-gradient(
      ellipse 75% 55% at 88% 25%,
      rgba(37, 99, 235, 0.28),
      transparent 52%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 90%,
      rgba(139, 92, 246, 0.12),
      transparent 50%
    );
  --shadow: 0 20px 50px rgba(49, 46, 129, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-quote: "Fraunces", Georgia, serif;
  --header-h: 72px;
  --focus: 2px solid var(--accent);
  --section-y: clamp(3rem, 5vw, 4.25rem);
  /* One column width + gutters — every shell uses these */
  --content-max: 1120px;
  --page-gutter: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #eef2ff 0%, #f4f2fb 28%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header — keep above third-party ad overlays (iframes often use z-index 9999+) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1rem var(--page-gutter);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-quote);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  text-decoration-line: none;
  cursor: pointer;
}

.logo span {
  color: var(--accent);
}

.logo--image {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo--image img {
  height: 2.82rem;
  width: auto;
  max-width: min(264px, 48vw);
  display: block;
  object-fit: contain;
}

@media (min-width: 480px) {
  .logo--image img {
    height: 3rem;
    max-width: 288px;
  }
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-main a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-main a:hover {
  color: var(--text);
  background: rgba(79, 70, 229, 0.08);
}

.nav-main a[aria-current="page"] {
  color: var(--text);
  background: rgba(79, 70, 229, 0.12);
}

.nav-main a.nav-pill {
  border: 1px solid rgba(79, 70, 229, 0.35);
}

.nav-main a.nav-pill:hover {
  border-color: var(--accent);
}

.anchor-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.9rem;
}

.anchor-jump span {
  color: var(--muted);
  font-weight: 500;
}

.anchor-jump a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.anchor-jump a:hover {
  text-decoration: underline;
}

/* Ads — same width as all other page sections */
.ad-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.75rem var(--page-gutter);
  text-align: center;
  min-height: 0;
  box-sizing: border-box;
}

.ad-wrap ins {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
}

/* Hero — rich brand wash + mesh */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
  padding-bottom: var(--section-y);
  background: linear-gradient(
    145deg,
    #e0e7ff 0%,
    #ddd6fe 32%,
    #dbeafe 65%,
    #f8fafc 100%
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

.hero-grid {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-y) var(--page-gutter) 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding: var(--section-y) var(--page-gutter) 0;
  }
}

.hero-copy h1 {
  font-family: var(--font-quote);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: none;
  font-size: 1.08rem;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(79, 70, 229, 0.08);
  aspect-ratio: 4 / 3;
  background: var(--gradient-hero);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Breadcrumb (blog + article only) */
.breadcrumb-bar {
  position: relative;
  z-index: 99990;
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.breadcrumb-list a,
.breadcrumb-list span[aria-current="page"] {
  position: relative;
  z-index: 1;
}

.breadcrumb-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.65rem var(--page-gutter);
  box-sizing: border-box;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: rgba(90, 86, 104, 0.45);
  font-weight: 500;
  margin-left: 0.15rem;
}

.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text);
}

/* Sections — vertical padding on band; horizontal padding inside max-width (matches hero/header) */
.section {
  padding: var(--section-y) 0;
}

.section-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
  min-width: 0;
}

.section[id] {
  scroll-margin-top: 80px;
}

/* First home band — visible indigo/lilac tint */
.section-tint {
  background: linear-gradient(
    180deg,
    #eef2ff 0%,
    #e0e7ff 45%,
    #ede9fe 100%
  );
  border-top: 1px solid rgba(79, 70, 229, 0.14);
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.section-tint .ticker-label {
  background: rgba(79, 70, 229, 0.1);
  border-bottom-color: rgba(79, 70, 229, 0.12);
}

.section-tint .ticker-wrap {
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

/* Mid page — saturated but light brand field */
.section-brand {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.11) 0%,
    rgba(129, 140, 248, 0.09) 40%,
    rgba(191, 219, 254, 0.35) 100%
  );
  border-top: 1px solid rgba(79, 70, 229, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.section-brand .visual-inline img {
  box-shadow: 0 20px 48px rgba(49, 46, 129, 0.15);
}

/* FAQ + bottom feed — deep brand panel */
.section-accent {
  background: linear-gradient(
    155deg,
    #1e1b4b 0%,
    #312e81 38%,
    #4338ca 78%,
    #4f46e5 100%
  );
  color: #e0e7ff;
  border: none;
}

.section-accent .section-head h2 {
  color: #fff;
}

.section-accent .section-head p {
  color: #c7d2fe;
}

.section-accent .section-head a {
  color: #c4b5fd;
  font-weight: 600;
}

.section-accent .section-head a:hover {
  color: #f5f3ff;
}

.section-accent .ticker-wrap {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.section-accent .ticker-label {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  color: #e0e7ff;
}

.section-accent .ticker-inner a {
  color: #f1f5f9;
}

.section-accent .ticker-inner a:hover {
  color: #fff;
}

.section-accent .ticker-fallback {
  color: #cbd5e1;
}

.section-accent .feed-head h3 {
  color: #c7d2fe;
}

.section-accent .rss-card {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.section-accent .rss-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.section-accent .rss-loading,
.section-accent .rss-empty {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #cbd5e1;
}

.feed-block--gap {
  margin-top: 1.75rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-quote);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: none;
}

/* Ticker */
.ticker-wrap {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: rgba(79, 70, 229, 0.04);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.ticker-track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.ticker-inner {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 0.85rem 0;
  animation: ticker-scroll 48s linear infinite;
}

.ticker-inner:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-inner a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
}

.ticker-inner a:hover {
  color: var(--accent);
}

.ticker-fallback {
  padding: 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Live pick cards */
.feed-block {
  margin-top: 1.5rem;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.feed-head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rss-cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .rss-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .rss-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rss-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 5.5rem;
}

.rss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.rss-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.rss-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.rss-loading,
.rss-empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
}

/* FAQ — full width of section column (legacy grid; homepage uses disclosures) */
.faq-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.faq-item {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-quote);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* FAQ — modern accordion + headline (homepage) */
.section-faq-modern {
  position: relative;
  overflow: hidden;
}

.section-faq-modern::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(
    ellipse,
    rgba(99, 102, 241, 0.22) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.faq-modern-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 0 2.75rem;
  text-align: left;
}

.faq-modern-eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ddd6fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.faq-modern-title {
  font-family: var(--font-quote);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 600;
}

.faq-modern-title-line {
  display: block;
}

.faq-modern-title-accent {
  display: block;
  margin-top: 0.2rem;
  font-weight: 700;
  background: linear-gradient(
    100deg,
    #fae8ff 0%,
    #e9d5ff 35%,
    #c4b5fd 70%,
    #a78bfa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.faq-modern-lead {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #c7d2fe;
}

.faq-modern-lead strong {
  color: #eef2ff;
  font-weight: 600;
}

.section-accent .faq-modern-lead a {
  color: #e9d5ff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section-accent .faq-modern-lead a:hover {
  color: #fff;
}

.faq-disclosure-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-disclosure {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.faq-disclosure:hover {
  border-color: rgba(196, 181, 253, 0.28);
}

.faq-disclosure[open] {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(196, 181, 253, 0.42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.faq-disclosure__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 1.03rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
}

.faq-disclosure__summary::-webkit-details-marker {
  display: none;
}

.faq-disclosure__summary::marker {
  content: "";
}

.faq-disclosure__q {
  flex: 1;
  text-align: left;
}

.faq-disclosure__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-disclosure[open] .faq-disclosure__icon {
  background: rgba(196, 181, 253, 0.2);
}

.faq-disclosure__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #e9d5ff;
  border-bottom: 2px solid #e9d5ff;
  transform: translate(-50%, -58%) rotate(45deg);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-disclosure[open] .faq-disclosure__icon::before {
  transform: translate(-50%, -38%) rotate(225deg);
}

.faq-disclosure__body {
  padding: 0 1.2rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-disclosure__body p {
  margin: 0;
  padding-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.68;
  color: #cbd5e1;
}

.faq-disclosure__summary:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
  border-radius: 14px;
}

@media (min-width: 720px) {
  .faq-modern-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  }

  .faq-disclosure__summary {
    padding: 1.2rem 1.35rem;
  }

  .faq-disclosure__body {
    padding: 0 1.35rem 1.35rem;
  }
}

/* Blog layout — bold brand hero */
.blog-hero {
  background: linear-gradient(
    135deg,
    #312e81 0%,
    #4338ca 42%,
    #4f46e5 85%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(49, 46, 129, 0.25);
}

.blog-hero-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem var(--page-gutter);
  box-sizing: border-box;
}

.blog-hero-inner h1 {
  font-family: var(--font-quote);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.blog-hero-inner p {
  margin: 0;
  max-width: none;
  color: #c7d2fe;
}

.blog-hero-inner strong {
  color: #e0e7ff;
}

.blog-layout {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--page-gutter) 3rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.filter-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.filter-btn:hover {
  border-color: rgba(79, 70, 229, 0.4);
  color: var(--text);
}

.filter-btn.is-active {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.1);
  color: var(--text);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 70, 229, 0.1);
  background: var(--bg-card);
  box-shadow: 0 8px 28px rgba(49, 46, 129, 0.08);
}

@media (min-width: 640px) {
  .post-card {
    grid-template-columns: 200px 1fr;
  }
}

.post-card.hidden {
  display: none;
}

.post-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--gradient-hero);
}

.post-thumb img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.post-body h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-body h2 a:hover {
  color: var(--accent);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.post-meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sidebar — ad units share one vertical center line */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-ad-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sidebar-ad-stack > div {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sidebar-ad-stack ins {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.sky-wrap {
  display: none;
  width: 100%;
}

@media (min-width: 960px) {
  .sky-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
}

/* Article */
.article-wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--page-gutter) 3rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .article-wrap {
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
  }
}

.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 0.5rem;
}

.article-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-header h1 {
  font-family: var(--font-quote);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.03em;
}

.article-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topic-tags span {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--text);
  font-weight: 600;
}

.article-body {
  font-size: 1.06rem;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body h2 {
  font-family: var(--font-quote);
  font-size: 1.55rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.article-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
}

.pull-quote {
  margin: 1.75rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  font-family: var(--font-quote);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  background: rgba(79, 70, 229, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ad-float {
  float: right;
  margin: 0 0 1rem 1.25rem;
  max-width: 300px;
  min-height: 0;
}

.ad-float ins {
  display: inline-block;
}

@media (max-width: 640px) {
  .ad-float {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
    text-align: center;
  }
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.article-sidebar ins {
  display: inline-block;
}

.read-more {
  clear: both;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(79, 70, 229, 0.15);
}

.read-more h2 {
  font-family: var(--font-quote);
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
}

.read-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .read-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.read-card {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 70, 229, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  box-shadow: 0 6px 24px rgba(49, 46, 129, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 8rem;
}

.read-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.read-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.read-card h3 a:hover {
  color: var(--accent);
}

.read-more-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.read-card > a:last-child {
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

.read-card > a:last-child:hover {
  text-decoration: underline;
}

/* Footer — near-black surface, editorial layout */
.site-footer {
  position: relative;
  z-index: 100000;
  margin-top: var(--section-y);
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(1.85rem, 3vw, 2.5rem);
  background: #09090b;
  color: #a1a1aa;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.45) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
  min-width: 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: end;
  }
}

.footer-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #52525b;
}

.footer-main {
  min-width: 0;
}

.footer-brand {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin: 0 0 0.9rem;
  font-family: var(--font-quote);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
  text-decoration: none;
  text-decoration-line: none;
  cursor: pointer;
  line-height: 1.2;
}

.footer-brand-accent {
  color: #a78bfa;
  transition: color 0.2s ease;
}

.footer-brand:hover .footer-brand-accent {
  color: #c4b5fd;
}

.footer-brand--image {
  font-size: 0;
  line-height: 0;
}

.footer-brand--image img {
  height: 2.73rem;
  width: auto;
  max-width: min(328px, 70vw);
  display: block;
  object-fit: contain;
}

@media (min-width: 480px) {
  .footer-brand--image img {
    height: 3.042rem;
    max-width: 359px;
  }
}

.footer-brand--image:hover img {
  opacity: 0.92;
}

.footer-tagline {
  margin: 0;
  max-width: 36rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #71717a;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-nav {
    align-items: flex-end;
    text-align: right;
    gap: 0.85rem;
  }
}

.footer-nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

@media (min-width: 768px) {
  .footer-nav-links {
    justify-content: flex-end;
  }
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.58rem 1.35rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #f4f4f5;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #52525b;
  letter-spacing: 0.02em;
}

.site-footer a:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

.section-accent a:focus-visible {
  outline-color: #e9d5ff;
}
