/* ============================================
   Vic Boomer — Main Stylesheet
   Based on Pantion design system
   VIC-20 palette: #3F3D8C + #7DD3D9 + #faf9f5
   ============================================ */

:root {
  --bg: #faf9f5;
  --bg-warm: #f3efe6;
  --bg-card: #efebe2;
  --bg-dark: #191918;
  --text: #191918;
  --text-light: #faf9f5;
  --text-meta: #57534E;
  --text-faint: #8a8580;
  --accent: #7DD3D9;
  --accent-bright: #8FE0E6;
  --vic-dark: #3F3D8C;
  --border: #D8D2C6;
  --border-strong: #C4BDB0;
  --border-light: #E4DFD5;
}

/* ---- Reset & Base ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--vic-dark);
}

h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--vic-dark);
  text-decoration: none;
  transition: color 0.2s;
}

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

.font-mono {
  font-family: 'VT323', monospace;
}

.font-pixel {
  font-family: 'Press Start 2P', monospace;
}

/* Author byline — Every-style */
.author-name {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  margin-top: 0.5rem;
}

.text-accent { color: var(--accent); }
.text-vic-dark { color: var(--vic-dark); }
.text-meta { color: var(--text-meta); }
.text-faint { color: var(--text-faint); }

/* ---- Layout ---- */

.section {
  padding: 7rem 2.5rem;
}

.section-inner {
  max-width: 740px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1280px;
  margin: 0 auto;
}

.section-warm {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* ---- Section Tag ---- */

.section-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.section-dark .section-tag {
  color: var(--accent-bright);
}

.section-lead {
  font-size: 22px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ---- Navigation ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s;
}

.is-home nav {
  height: 100px;
  background: rgba(25, 25, 24, 0.88);
  border-bottom-color: rgba(255,255,255,0.06);
}

.is-home nav.scrolled {
  height: 80px;
  background: rgba(250, 249, 245, 0.88);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  height: 100%;
}

/* Centered logo */
.nav-logo-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  text-decoration: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 60px;
  padding-right: 60px;
}


.nav-logo-center img {
  height: 36px;
  width: auto;
  transition: all 0.4s;
}

.is-home .nav-logo-center img {
  height: 48px;
  filter: brightness(0) invert(1);
}

.is-home nav.scrolled .nav-logo-center img {
  height: 36px;
  filter: none;
}

/* Hamburger */
.hamburger {
  position: fixed;
  left: 1.25rem;
  top: 0;
  height: 80px;
  width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 110;
}

.is-home .hamburger {
  height: 100px;
}

.is-home .hamburger.scrolled {
  height: 80px;
}

.hamburger.scrolled span,
.is-home .hamburger.scrolled span {
  background: var(--text);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: background 0.3s;
}

.is-home .hamburger span {
  background: var(--text-light);
}

.is-home nav.scrolled .hamburger span {
  background: var(--text);
}

/* Nav subscribe link — hidden for now */
.nav-subscribe {
  display: none;
}

/* Menu overlay (dark right side) */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Slide-in menu panel */
.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  background: #1a1a1a;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.menu-panel.open {
  transform: translateX(0);
}

.menu-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 1.75rem 2rem;
  text-align: left;
  transition: color 0.2s;
  font-weight: 300;
}

.menu-close:hover {
  color: white;
}

.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.menu-items li {
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}

.menu-items li:first-child {
  border-top: 1px dashed rgba(255,255,255,0.12);
}

.menu-items a {
  display: block;
  padding: 1.1rem 2rem;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.menu-items a:hover {
  color: white;
  padding-left: 2.5rem;
}

/* ---- Buttons ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 0.9rem 2.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(25,25,24,0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 0.9rem 2.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Hero button variants */
.hero-actions .btn-primary {
  background: var(--text-light);
  color: var(--text);
}

.hero-actions .btn-primary:hover {
  background: var(--accent-bright);
  color: white;
}

.hero-actions .btn-secondary {
  border-color: rgba(250, 249, 245, 0.25);
  color: var(--text-light);
}

.hero-actions .btn-secondary:hover {
  border-color: rgba(250, 249, 245, 0.5);
  color: var(--text-light);
}

/* ---- Hero ---- */

.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 6.5rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 211, 217, 0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.hero h1 .accent {
  color: var(--accent-bright);
  font-weight: 800;
}

.hero-sub {
  font-size: 20px;
  color: rgba(250, 249, 245, 0.75);
  max-width: 52ch;
  margin: 2rem 0 3rem;
  font-weight: 300;
  opacity: 0.85;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Cards ---- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2.25rem 2rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0 0 2px 2px;
}

.card:hover {
  border-color: var(--border-strong);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-meta);
  font-size: 17px;
  line-height: 1.6;
}

/* Blog/essay cards */
.essay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem 2.25rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.essay-card:hover {
  border-color: var(--accent);
  color: inherit;
}

.essay-card .card-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.essay-card h3 {
  font-size: 1.2rem;
  color: var(--vic-dark);
  margin-bottom: 0.5rem;
}

.essay-card p {
  font-size: 16px;
  color: var(--text-meta);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.essay-card .card-date {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: auto;
}

/* Pillar cards */
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 2rem 2rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(25,25,24,0.06);
}

.pillar-card .pillar-number {
  font-family: 'VT323', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.pillar-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 17px;
  color: var(--text-meta);
  line-height: 1.7;
  flex: 1;
}

.pillar-card a {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--vic-dark);
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
}

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

/* ---- Hero Featured Essays ---- */

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.featured-main {
  grid-column: 1 / 3;
}

.featured-main .featured-image {
  aspect-ratio: 16/9;
  background: rgba(125, 211, 217, 0.08);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.featured-main .featured-image .placeholder {
  font-family: 'VT323', monospace;
  font-size: 3rem;
  color: rgba(125, 211, 217, 0.25);
}

.featured-main h2 {
  font-size: 1.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.featured-main h2:hover {
  color: var(--accent-bright);
}

.featured-main p {
  color: rgba(250, 249, 245, 0.6);
  font-size: 17px;
  line-height: 1.6;
}

.featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-sidebar-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1.5rem;
}

.featured-sidebar-item:last-child {
  border-bottom: none;
}

.featured-sidebar-item .card-tag {
  font-family: 'VT323', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
  display: block;
}

.featured-sidebar-item h3 {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
  transition: color 0.2s;
}

.featured-sidebar-item h3:hover {
  color: var(--accent-bright);
}

.featured-sidebar-item .card-date {
  font-family: 'VT323', monospace;
  font-size: 12px;
  color: rgba(250, 249, 245, 0.35);
}

/* ---- Closing / CTA Section ---- */

.closing-section {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 5rem 2.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.closing-section .hero-grain {
  opacity: 0.3;
}

.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.closing-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.closing-section h2 .accent {
  color: var(--accent-bright);
}

.closing-section p {
  color: rgba(250, 249, 245, 0.7);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ---- Footer ---- */

footer {
  padding: 4rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  text-align: left;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-family: 'VT323', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-grid a {
  font-size: 16px;
  color: var(--text-meta);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

/* ---- Prose (essay content) ---- */

.prose {
  max-width: 740px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-meta);
  font-style: italic;
}

.prose code {
  font-family: 'VT323', monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.prose pre {
  background: var(--bg-dark);
  color: #d4d4d4;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.06);
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose a {
  color: var(--vic-dark);
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 217, 0.4);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose em {
  font-style: italic;
  color: var(--text-meta);
}

/* ---- Homepage card hover (subtle per styleguide) ---- */

section a[href]:not(.btn-primary):not(.btn-secondary) img {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

section a[href]:not(.btn-primary):not(.btn-secondary):hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

/* ---- Mascot ---- */

.hero-mascot {
  width: 80px;
  height: auto;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  animation: drift 5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  image-rendering: pixelated;
}

.closing-mascot {
  width: 160px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 0 40px rgba(125, 211, 217, 0.2));
  image-rendering: pixelated;
}

.footer-mascot {
  width: 36px;
  height: auto;
  margin-bottom: 1rem;
  image-rendering: pixelated;
}

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

/* ---- Animations ---- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.07s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.14s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
  /* Force ALL grids to 1 column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Reset grid-row spans */
  [style*="grid-row:1/3"] {
    grid-row: auto !important;
  }

  /* Reset grid-column spans */
  [style*="grid-column:2/4"] {
    grid-column: auto !important;
  }

  /* Horizontal flex cards → vertical */
  [style*="display:flex"][style*="width:45%"],
  [style*="display:flex"][style*="width:40%"] {
    flex-direction: column !important;
  }

  [style*="width:45%"],
  [style*="width:40%"] {
    width: 100% !important;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 5.5rem 1.25rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(0.75rem, 4vw, 1.2rem) !important;
    line-height: 1.8 !important;
  }

  .hero-sub {
    font-size: 16px;
    margin: 0.75rem 0 1.25rem;
  }

  .hero-mascot {
    width: 50px;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }

  .hero-eyebrow {
    font-size: 8px;
    margin-bottom: 1rem;
  }

  .hero-glow {
    width: 200px;
    height: 200px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn-primary, .btn-secondary {
    font-size: 14px;
    padding: 0.75rem 1.75rem;
  }

  .nav-inner {
    padding: 0;
  }


  .nav-logo-center {
    padding-left: 50px;
    padding-right: 50px;
  }

  .nav-logo-center img {
    height: 28px !important;
  }

  .nav-subscribe {
    display: none;
  }

  /* Lead essay cover */
  [style*="aspect-ratio:21/9"] {
    aspect-ratio: 4/3 !important;
  }

  [style*="padding:3rem 4rem"] {
    padding: 1.5rem 1.25rem !important;
  }

  /* All grids to 1 column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-row:1/3"] {
    grid-row: auto !important;
  }

  [style*="grid-column:2/4"] {
    grid-column: auto !important;
  }

  /* Horizontal cards → vertical */
  a[style*="display:flex"] {
    flex-direction: column !important;
  }

  a[style*="display:flex"] [style*="width:45%"],
  a[style*="display:flex"] [style*="width:40%"] {
    width: 100% !important;
  }

  /* Section padding overrides */
  [style*="padding:4rem 2.5rem"],
  [style*="padding:5rem 2.5rem"],
  [style*="padding:4.5rem 2.5rem"],
  [style*="padding:3rem 2.5rem"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Reduce gaps */
  [style*="gap:4rem"] {
    gap: 1.5rem !important;
  }

  [style*="gap:2rem"] {
    gap: 1.25rem !important;
  }

  /* Dark anchor */
  [style*="max-width:900px"] blockquote {
    font-size: 1.15rem !important;
  }

  /* Typography scaling */
  .prose p {
    font-size: 17px;
  }

  h2 {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  /* Author name */
  .author-name {
    font-size: 11px;
  }

  /* Menu panel wider on mobile */
  .menu-panel {
    width: 85vw;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Essay list → 1 column */
  .stagger[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
