@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Outfit:wght@300;400;500;600&family=Caveat:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a1714;
  --paper: #FAF6F1;
  --terracotta: #C8553D;
  --terracotta-dark: #A13E2B;
  --teal: #2A7A6E;
  --gold: #C8963E;
  --plum: #6B3A5D;
  --blush: #F0D9CC;
  --sage: #a8c5b0;
  --rule: #D6CFC6;
  --text-secondary: #6B635A;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --font-accent: 'Caveat', cursive;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 1100px;
  --content-width: 720px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: 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: 150px;
}

::selection { background: var(--terracotta); color: #fff; }

/* ─── NAVIGATION ─── */
.site-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 2.5rem;
  margin-top: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s;
}

.site-nav a:hover { opacity: 0.6; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
  background: var(--ink);
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 20s ease-in-out infinite;
}

.shape--1 {
  width: 500px; height: 500px;
  background: var(--terracotta);
  top: -10%; right: -5%;
  animation-delay: -3s;
}

.shape--2 {
  width: 400px; height: 400px;
  background: var(--teal);
  bottom: -15%; left: -8%;
  animation-delay: -8s;
  animation-duration: 25s;
}

.shape--3 {
  width: 350px; height: 350px;
  background: var(--plum);
  top: 40%; left: 50%;
  animation-delay: -12s;
  animation-duration: 22s;
}

.shape--4 {
  width: 250px; height: 250px;
  background: var(--gold);
  top: 20%; left: 15%;
  animation-delay: -6s;
  animation-duration: 18s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 11vw, 9rem);
  color: var(--paper);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--blush);
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}

.hero-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(250,246,241,0.5);
  margin-top: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 0.8em 2.5em;
  border-radius: 50px;
  transition: all 0.4s;
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  opacity: 0;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards, bob 2.5s ease-in-out 2.5s infinite;
  opacity: 0;
}

.scroll-hint svg {
  width: 28px; height: 28px;
  stroke: var(--blush);
  opacity: 0.35;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── INTRO BAND ─── */
.intro-band {
  padding: 5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-quote {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.intro-quote .highlight {
  color: var(--terracotta);
}

.intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.intro-text strong {
  font-weight: 500;
  color: var(--ink);
}

/* ─── SECTION COMMON ─── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

/* ─── ARTICLES SECTION ─── */
.articles-section {
  padding: 5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  list-style: none;
}

.article-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.article-card:hover { transform: translateY(-5px); }

.article-card-inner {
  padding: 2.5rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.article-card:nth-child(4n+1) .article-card-inner { background: linear-gradient(160deg, #f7e8df 0%, #f0d1c0 100%); }
.article-card:nth-child(4n+2) .article-card-inner { background: linear-gradient(160deg, #d9ede5 0%, #a8d5c5 100%); }
.article-card:nth-child(4n+3) .article-card-inner { background: linear-gradient(160deg, #e8dff0 0%, #c9b6de 100%); }
.article-card:nth-child(4n+4) .article-card-inner { background: linear-gradient(160deg, #fce8c8 0%, #f0d49b 100%); }

.article-card .article-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  position: absolute;
  top: 0.8rem; right: 1.2rem;
  opacity: 0.07;
  line-height: 1;
}

.article-card .article-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(26,23,20,0.45);
  margin-bottom: 0.6rem;
}

.article-card .article-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.article-card .article-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(26,23,20,0.55);
  font-weight: 300;
}

.article-card .article-readmore {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 0.8rem;
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s;
}

.article-card:hover .article-readmore {
  opacity: 0.7;
  transform: translateX(0);
}

/* Featured first article spans full width */
.article-card.featured {
  grid-column: 1 / -1;
}

.article-card.featured .article-card-inner {
  min-height: 300px;
  background: linear-gradient(160deg, var(--ink) 0%, #2a2320 100%) !important;
}

.article-card.featured .article-date { color: rgba(250,246,241,0.4); }
.article-card.featured .article-title { color: var(--paper); font-size: 2.2rem; max-width: 600px; }
.article-card.featured .article-summary { color: rgba(250,246,241,0.5); max-width: 500px; }
.article-card.featured .article-readmore { color: var(--blush); }
.article-card.featured .article-number { color: var(--paper); }

/* ─── SINGLE ARTICLE ─── */
.single-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 3rem 4rem;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.single-hero .shape { opacity: 0.25; }

.single-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}

.single-hero .article-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(250,246,241,0.4);
  display: block;
  margin-bottom: 1rem;
}

.single-hero .article-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--paper);
}

.article-body-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.article-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: #3a3530;
}

.article-body p { margin-bottom: 1.6rem; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid var(--terracotta);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-body a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.article-body a:hover { color: var(--terracotta-dark); }

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 12px;
}

.article-body ul, .article-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(26,23,20,0.05);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article-body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
}

.article-body pre code { background: none; padding: 0; color: inherit; }

.article-body hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
}

.article-body hr::after {
  content: "· · ·";
  color: var(--rule);
  letter-spacing: 0.5em;
}

.article-end {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem 5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.back-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.back-link:hover { color: var(--terracotta); }

/* ─── ABOUT PAGE ─── */
.about-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: #3a3530;
}

.about-body p { margin-bottom: 1.6rem; }
.about-body strong { font-weight: 500; color: var(--ink); }

.about-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid rgba(26,23,20,0.06);
}

.footer-brand {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.78rem;
  color: rgba(26,23,20,0.35);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(26,23,20,0.4);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--terracotta); }

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .site-nav-bar { padding: 1rem 1.5rem; }
  .site-nav { gap: 1.5rem; }
  .site-nav a { font-size: 0.72rem; }
  .intro-band { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .articles-section { padding: 3rem 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured .article-title { font-size: 1.8rem; }
  .single-hero { padding: 5rem 1.5rem 3rem; min-height: 50vh; }
  .article-body-wrap { padding: 3rem 1.5rem 4rem; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .site-nav { display: none; }
  .intro-quote { font-size: 1.5rem; }
  .article-card .article-title { font-size: 1.3rem; }
}

/* ─── PILLAR TAGS ─── */
.article-pillar {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.article-pillar--choice { background: rgba(200,85,61,0.15); color: var(--terracotta); }
.article-pillar--gaze { background: rgba(42,122,110,0.15); color: var(--teal); }
.article-pillar--scenes { background: rgba(200,150,62,0.15); color: var(--gold); }
.article-pillar--motion { background: rgba(42,122,110,0.15); color: var(--teal); }
.article-pillar--words { background: rgba(107,58,93,0.15); color: var(--plum); }

.article-card.featured .article-pillar--choice { background: rgba(200,85,61,0.25); }
.article-card.featured .article-pillar--gaze { background: rgba(42,122,110,0.25); }
.article-card.featured .article-pillar--scenes { background: rgba(200,150,62,0.25); }
.article-card.featured .article-pillar--motion { background: rgba(42,122,110,0.25); }
.article-card.featured .article-pillar--words { background: rgba(107,58,93,0.25); }

.article-pillar-single {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}

.article-pillar-single.article-pillar--choice { background: rgba(200,85,61,0.2); color: var(--terracotta); }
.article-pillar-single.article-pillar--gaze { background: rgba(42,122,110,0.2); color: var(--sage); }
.article-pillar-single.article-pillar--scenes { background: rgba(200,150,62,0.2); color: var(--gold); }
.article-pillar-single.article-pillar--motion { background: rgba(42,122,110,0.2); color: var(--sage); }
.article-pillar-single.article-pillar--words { background: rgba(107,58,93,0.2); color: var(--blush); }

/* ─── COVER IMAGE HERO ─── */
.single-hero--cover {
  background-size: cover;
  background-position: center;
}

/* ─── AUTHOR IN DATE LINE ─── */
.article-card.featured .article-date { color: rgba(250,246,241,0.4); }

/* ─── LANGUAGE TAG ─── */
.article-lang {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  background: rgba(26,23,20,0.08);
  color: var(--text-secondary);
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.article-card.featured .article-lang {
  background: rgba(250,246,241,0.12);
  color: rgba(250,246,241,0.5);
}

.article-lang-single {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 3px;
  background: rgba(250,246,241,0.1);
  color: rgba(250,246,241,0.5);
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ─── CARD META ROW ─── */
.article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

/* ─── TAGS ON CARDS ─── */
.article-card-footer {
  margin-top: 0.8rem;
}

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

.article-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  background: rgba(26,23,20,0.06);
  color: var(--text-secondary);
}

.article-card.featured .article-tag {
  background: rgba(250,246,241,0.08);
  color: rgba(250,246,241,0.4);
}

/* ─── TAGS ON SINGLE ARTICLE ─── */
.article-tags-full {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.article-tag-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  background: rgba(26,23,20,0.05);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.article-tag-link:hover {
  background: var(--terracotta);
  color: white;
}

/* ─── CROSS-LINKS (Substack / YouTube) ─── */
.article-crosslinks {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(26,23,20,0.03);
  border-radius: 12px;
}

.crosslinks-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.crosslink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  margin-right: 0.8rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.crosslink--substack {
  background: rgba(255,106,0,0.08);
  color: #FF6A00;
}

.crosslink--substack:hover {
  background: rgba(255,106,0,0.15);
  transform: translateY(-2px);
}

.crosslink--youtube {
  background: rgba(255,0,0,0.06);
  color: #CC0000;
}

.crosslink--youtube:hover {
  background: rgba(255,0,0,0.12);
  transform: translateY(-2px);
}

.crosslink-icon {
  font-size: 1.1rem;
}

/* ─── HERO META ROW ─── */
.single-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════ */

[data-theme="dark"] {
  --ink: #FAF6F1;
  --paper: #141210;
  --terracotta: #E8755A;
  --terracotta-dark: #F09080;
  --text-secondary: #9E968D;
  --rule: #2A2725;
}

[data-theme="dark"] body { background: #141210; color: #FAF6F1; }

[data-theme="dark"] .intro-band { background: #1A1714; }
[data-theme="dark"] .intro-text { color: #9E968D; }
[data-theme="dark"] .intro-text strong { color: #FAF6F1; }
[data-theme="dark"] .intro-quote { color: #FAF6F1; }

[data-theme="dark"] .article-card-inner {
  background: #1E1B18 !important;
}
[data-theme="dark"] .article-card .article-title { color: #FAF6F1; }
[data-theme="dark"] .article-card .article-summary { color: #9E968D; }
[data-theme="dark"] .article-card .article-date { color: #6B635A; }
[data-theme="dark"] .article-card .article-number { color: #FAF6F1; }
[data-theme="dark"] .article-card .article-readmore { color: #E8755A; }

[data-theme="dark"] .article-card:nth-child(4n+1) .article-card-inner { background: linear-gradient(160deg, #2A1F1C 0%, #1E1B18 100%) !important; }
[data-theme="dark"] .article-card:nth-child(4n+2) .article-card-inner { background: linear-gradient(160deg, #1C2A26 0%, #1E1B18 100%) !important; }
[data-theme="dark"] .article-card:nth-child(4n+3) .article-card-inner { background: linear-gradient(160deg, #251C2A 0%, #1E1B18 100%) !important; }
[data-theme="dark"] .article-card:nth-child(4n+4) .article-card-inner { background: linear-gradient(160deg, #2A251C 0%, #1E1B18 100%) !important; }

[data-theme="dark"] .article-tag { background: rgba(250,246,241,0.08); color: #9E968D; }
[data-theme="dark"] .article-lang { background: rgba(250,246,241,0.08); color: #9E968D; }

[data-theme="dark"] .article-body { color: #D6CFC6; }
[data-theme="dark"] .article-body h2, [data-theme="dark"] .article-body h3 { color: #FAF6F1; }
[data-theme="dark"] .article-body blockquote { color: #9E968D; }
[data-theme="dark"] .article-body code { background: rgba(250,246,241,0.06); }

[data-theme="dark"] .site-footer { border-top-color: #2A2725; }
[data-theme="dark"] .footer-brand { color: #FAF6F1; }
[data-theme="dark"] .footer-text { color: #6B635A; }
[data-theme="dark"] .footer-links a { color: #6B635A; }

[data-theme="dark"] .article-tags-full { border-top-color: #2A2725; }
[data-theme="dark"] .article-tag-link { background: rgba(250,246,241,0.06); color: #9E968D; }
[data-theme="dark"] .article-crosslinks { background: rgba(250,246,241,0.03); }
[data-theme="dark"] .author-card { background: rgba(250,246,241,0.03); }
[data-theme="dark"] .author-card-name { color: #FAF6F1; }
[data-theme="dark"] .author-card-bio { color: #9E968D; }
[data-theme="dark"] .article-end { border-top-color: #2A2725; }
[data-theme="dark"] .back-link { color: #9E968D; }
[data-theme="dark"] .newsletter-band { background: #1A1714; }
[data-theme="dark"] .newsletter-desc { color: #9E968D; }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
}

.theme-toggle:hover {
  border-color: var(--terracotta);
  transform: scale(1.1);
}

/* ─── NEWSLETTER BAND ─── */
.newsletter-band {
  padding: 4rem 3rem;
  text-align: center;
  background: rgba(26,23,20,0.03);
}

.newsletter-inner {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.newsletter-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--terracotta);
  padding: 0.8em 2em;
  border-radius: 50px;
  transition: all 0.3s;
}

.newsletter-btn:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

/* ─── AUTHOR CARD ─── */
.author-card {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(26,23,20,0.03);
  border-radius: 12px;
}

.author-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.author-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.author-card-bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
}

.author-card-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s;
}

.author-card-link:hover { color: var(--terracotta-dark); }

/* ─── PILLARS PAGE ─── */
.pillars-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.pillar-section {
  margin-bottom: 2.5rem;
}

.pillar-header {
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.pillar-header--terracotta { background: linear-gradient(135deg, rgba(200,85,61,0.1), rgba(200,85,61,0.05)); border-left: 4px solid var(--terracotta); }
.pillar-header--teal { background: linear-gradient(135deg, rgba(42,122,110,0.1), rgba(42,122,110,0.05)); border-left: 4px solid var(--teal); }
.pillar-header--gold { background: linear-gradient(135deg, rgba(200,150,62,0.1), rgba(200,150,62,0.05)); border-left: 4px solid var(--gold); }
.pillar-header--plum { background: linear-gradient(135deg, rgba(107,58,93,0.1), rgba(107,58,93,0.05)); border-left: 4px solid var(--plum); }

.pillar-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pillar-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pillar-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-block;
  margin-top: 0.8rem;
}

.pillar-articles {
  list-style: none;
  padding: 0 0 0 1.5rem;
}

.pillar-articles li {
  border-bottom: 1px solid rgba(26,23,20,0.06);
}

.pillar-articles a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s;
}

.pillar-articles a:hover { color: var(--terracotta); }

.pillar-articles time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  min-width: 70px;
}

.pillar-articles span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.pillar-articles em {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-secondary);
}

/* ─── ABOUT PAGE ─── */
.about-intro {
  margin-bottom: 2rem;
}

.about-intro h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── READING TIME ─── */
/* Already handled by Hugo's .ReadingTime — no extra CSS needed */

/* ─── RESPONSIVE ADDITIONS ─── */
@media (max-width: 900px) {
  .newsletter-band { padding: 3rem 1.5rem; }
  .pillars-page { padding: 2rem 1.5rem 4rem; }
}

@media (max-width: 600px) {
  .pillar-articles a { flex-wrap: wrap; gap: 0.3rem; }
  .pillar-articles time { min-width: auto; }
  .pillar-articles em { width: 100%; }
}

/* ═══════════════════════════════════════
   MEGA ENRICHMENT STYLES
   ═══════════════════════════════════════ */

/* ─── READING PROGRESS BAR ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--terracotta);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── SCROLL TO TOP ─── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(200,85,61,0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(200,85,61,0.4);
}

/* ─── TABLE OF CONTENTS ─── */
.toc {
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(26,23,20,0.03);
  border-radius: 12px;
  border-left: 3px solid var(--terracotta);
}

[data-theme="dark"] .toc {
  background: rgba(250,246,241,0.03);
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  cursor: pointer;
  list-style: none;
  padding: 0;
}

.toc-title::-webkit-details-marker { display: none; }
.toc-title::before { content: "▸ "; }
details[open] > .toc-title::before { content: "▾ "; }

.toc-inner {
  margin-top: 1rem;
}

.toc-inner nav > ul {
  list-style: none;
  padding: 0;
}

.toc-inner li {
  margin-bottom: 0.4rem;
}

.toc-inner a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.toc-inner a:hover { color: var(--terracotta); }

.toc-inner ul ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

.toc-inner ul ul a { font-size: 0.82rem; }

/* ─── SHARE BUTTONS (top - inline) ─── */
.share-bar--top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.share-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: 0.3rem;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.share-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.share-copied {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.3s;
  position: absolute;
  right: 0;
}

.share-copied.visible { opacity: 1; }

/* ─── SHARE BUTTONS (bottom - full width) ─── */
.share-bar--bottom {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(26,23,20,0.03);
  border-radius: 12px;
  text-align: center;
}

[data-theme="dark"] .share-bar--bottom { background: rgba(250,246,241,0.03); }

.share-bar--bottom .share-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
}

.share-btns {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-btn-full {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  border: 1.5px solid var(--rule);
  background: none;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.share-btn-full:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

/* ─── RELATED ARTICLES ─── */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.related-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  padding: 1.2rem;
  border-radius: 10px;
  background: rgba(26,23,20,0.03);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .related-card { background: rgba(250,246,241,0.03); }

.related-card:hover {
  transform: translateY(-3px);
  background: rgba(26,23,20,0.06);
}

[data-theme="dark"] .related-card:hover { background: rgba(250,246,241,0.06); }

.related-card-meta { margin-bottom: 0.5rem; }

.related-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.related-card time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.visible { opacity: 1; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ─── PULL QUOTES ─── */
.article-body .pull-quote,
.article-body blockquote.pull-quote {
  border-left: none;
  padding: 2rem 0;
  margin: 2.5rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--terracotta);
  position: relative;
}

.article-body .pull-quote::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--terracotta);
  margin: 0 auto 1.5rem;
}

.article-body .pull-quote::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--terracotta);
  margin: 1.5rem auto 0;
}

/* ─── PAGE TRANSITIONS ─── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── SEARCH PAGE ─── */
.search-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  padding: 1rem 0;
  border: none;
  border-bottom: 2px solid var(--rule);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus { border-bottom-color: var(--terracotta); }
.search-input::placeholder { color: var(--text-secondary); }

[data-theme="dark"] .search-input { color: #FAF6F1; border-bottom-color: #2A2725; }
[data-theme="dark"] .search-input:focus { border-bottom-color: var(--terracotta); }

.search-results { margin-top: 2rem; }

.search-result {
  display: block;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.search-result:hover { padding-left: 0.5rem; }

.search-result h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

[data-theme="dark"] .search-result h3 { color: #FAF6F1; }

.search-result-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.search-result-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

.search-empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 2rem;
}

/* ─── NAV SEARCH ICON ─── */
.nav-search {
  font-size: 1.2rem !important;
  letter-spacing: 0 !important;
}

/* ─── FOOTER STATS ─── */
.footer-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26,23,20,0.06);
}

[data-theme="dark"] .footer-stats { border-bottom-color: #2A2725; }

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--terracotta);
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  display: block;
}

/* ─── RESPONSIVE ADDITIONS ─── */
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
  .footer-stats { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
  .search-page { padding: 2rem 1.5rem 4rem; }
}

@media (max-width: 600px) {
  .share-bar--top { flex-wrap: wrap; }
  .share-btns { flex-direction: column; }
  .share-btn-full { justify-content: center; }
  .scroll-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
  .footer-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat { min-width: 80px; }
}

/* ═══════════════════════════════════════
   FINAL ENRICHMENT STYLES
   ═══════════════════════════════════════ */

/* ─── TYPEWRITER CURSOR ─── */
#heroTitle::after {
  content: "|";
  animation: blink 0.8s step-end infinite;
  color: var(--terracotta);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ─── CONTACT PAGE ─── */
.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item strong {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-item a, .contact-item span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-item a:hover { color: var(--terracotta); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  border-color: #2A2725;
  color: #FAF6F1;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--terracotta);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9em 2em;
  border: none;
  border-radius: 50px;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

/* ─── ARCHIVES PAGE ─── */
.archives-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.archive-year {
  margin-bottom: 3rem;
}

.archive-year-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--terracotta);
  line-height: 1;
  display: inline-block;
  margin-right: 1rem;
}

.archive-year-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  vertical-align: super;
}

.archive-list {
  list-style: none;
  margin-top: 1rem;
}

.archive-item { border-bottom: 1px solid rgba(26,23,20,0.06); }
[data-theme="dark"] .archive-item { border-bottom-color: #2A2725; }

.archive-item a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.archive-item a:hover { padding-left: 0.5rem; }

.archive-item time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  min-width: 55px;
  flex-shrink: 0;
}

.archive-item-main { flex: 1; }

.archive-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.archive-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.archive-item-meta > span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.archive-item-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ─── MAP PAGE ─── */
.map-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.world-map {
  width: 100%;
  height: 350px;
  background: rgba(26,23,20,0.03);
  border-radius: 12px;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.world-map::after {
  content: "Map grows as we travel";
  opacity: 0.5;
}

[data-theme="dark"] .world-map { background: rgba(250,246,241,0.03); }

.map-locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.map-location {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(26,23,20,0.03);
  transition: all 0.3s;
}

[data-theme="dark"] .map-location { background: rgba(250,246,241,0.03); }

.map-location:hover { transform: translateY(-3px); }

.map-location-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.map-location-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.8rem;
}

.map-location-articles {
  list-style: none;
}

.map-location-articles li { margin-bottom: 0.3rem; }

.map-location-articles a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--terracotta);
  text-decoration: none;
}

.map-location-articles a:hover { text-decoration: underline; }

/* ─── COMMENTS ─── */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.comments-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.comments-setup-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.comments-setup-note a { color: var(--terracotta); }

/* ─── PARALLAX ADJUSTMENTS ─── */
.hero .shape {
  will-change: transform;
  transition: none;
}

/* ─── HERO TAGLINE/DESC INITIAL STATE FOR TYPEWRITER ─── */
#heroTagline, #heroDesc, #heroCta {
  transform: translateY(20px);
}

/* ─── RESPONSIVE FINAL ─── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-locations { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; flex-wrap: wrap; }
  .site-nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
}

@media (max-width: 600px) {
  .archive-item a { flex-wrap: wrap; gap: 0.4rem; }
  .archive-item time { min-width: auto; }
  .archive-item-time { width: 100%; }
  .archive-year-title { font-size: 2.2rem; }
  .contact-page { padding: 2rem 1.5rem 4rem; }
  .site-nav a.nav-search { display: none; }
}

/* ═══════════════════════════════════════
   READABILITY FIXES
   ═══════════════════════════════════════ */

/* Hero ALWAYS dark regardless of theme */
.hero, .single-hero { background: #1a1714 !important; }
.hero .hero-title, .hero h1 { color: #FAF6F1 !important; }
.hero .hero-tagline { color: #F0D9CC !important; }
.hero .hero-desc { color: rgba(250,246,241,0.5) !important; }
.hero .hero-cta { color: #FAF6F1 !important; border-color: rgba(255,255,255,0.2) !important; }
.hero .hero-cta:hover { color: #E8755A !important; border-color: #E8755A !important; }
.hero .shape--1 { background: #C8553D !important; }
.hero .shape--2 { background: #2A7A6E !important; }
.hero .shape--3 { background: #6B3A5D !important; }
.hero .shape--4 { background: #C8963E !important; }
.single-hero .article-title { color: #FAF6F1 !important; }
.single-hero .article-date { color: rgba(250,246,241,0.4) !important; }
.scroll-hint svg { stroke: #F0D9CC !important; opacity: 0.35; }
#heroTitle::after { color: #C8553D !important; }

/* Nav: white text over hero, dark text when scrolled past */
.site-nav-bar { mix-blend-mode: normal; transition: background 0.3s, box-shadow 0.3s; }
.nav-logo { color: #FAF6F1 !important; transition: color 0.3s; }
.site-nav a { color: #FAF6F1 !important; transition: color 0.3s; }
.theme-toggle { color: #FAF6F1 !important; border-color: rgba(255,255,255,0.15) !important; }

.site-nav-bar.scrolled { background: var(--paper); box-shadow: 0 1px 10px rgba(0,0,0,0.06); }
.site-nav-bar.scrolled .nav-logo { color: var(--ink) !important; }
.site-nav-bar.scrolled .site-nav a { color: var(--ink) !important; }
.site-nav-bar.scrolled .site-nav a:hover { color: var(--terracotta) !important; }
.site-nav-bar.scrolled .theme-toggle { color: var(--ink) !important; border-color: var(--rule) !important; }

/* Featured card always dark */
.article-card.featured .article-card-inner { background: linear-gradient(160deg, #1a1714 0%, #2a2320 100%) !important; }
.article-card.featured .article-title { color: #FAF6F1 !important; }
.article-card.featured .article-summary { color: rgba(250,246,241,0.5) !important; }
.article-card.featured .article-date { color: rgba(250,246,241,0.4) !important; }
.article-card.featured .article-number { color: rgba(250,246,241,0.07) !important; }
.article-card.featured .article-readmore { color: #F0D9CC !important; }
.article-card.featured .article-tag { background: rgba(250,246,241,0.08) !important; color: rgba(250,246,241,0.4) !important; }
.article-card.featured .article-lang { background: rgba(250,246,241,0.12) !important; color: rgba(250,246,241,0.5) !important; }

/* Dark mode card borders */
[data-theme="dark"] .article-card:not(.featured) .article-card-inner { border: 1px solid rgba(250,246,241,0.06); }
[data-theme="dark"] .newsletter-title { color: #FAF6F1; }
[data-theme="dark"] .stat-number { color: #E8755A; }

/* ═══════════════════════════════════════
   FINAL FINISHES
   ═══════════════════════════════════════ */

/* ─── HAMBURGER BUTTON ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #FAF6F1;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav-bar.scrolled .hamburger span { background: var(--ink); }

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── MOBILE MENU OVERLAY ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .mobile-menu { background: #0D0C0A; }

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

body.menu-open { overflow: hidden; }

.mobile-menu-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-inner a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #FAF6F1;
  text-decoration: none;
  padding: 0.6em 0;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
}

.mobile-menu.open .mobile-menu-inner a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the animations */
.mobile-menu.open .mobile-menu-inner a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(7) { transition-delay: 0.35s; }

.mobile-menu-inner a:hover { color: var(--terracotta); }

.mobile-menu-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,246,241,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.mobile-menu-footer a {
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,246,241,0.4) !important;
}

.theme-toggle-mobile {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(250,246,241,0.15);
  color: rgba(250,246,241,0.5);
  padding: 0.5em 1.5em;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle-mobile:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* Show hamburger on mobile */
@media (max-width: 900px) {
  .site-nav { display: none !important; }
  .hamburger { display: flex; }
}

/* ─── FOLLOW / SOCIAL PAGE ─── */
.follow-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.follow-card {
  padding: 2rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.follow-card:hover { transform: translateY(-5px); }

.follow-card--substack { background: linear-gradient(160deg, #FFF3E8, #FFE5CC); }
.follow-card--youtube { background: linear-gradient(160deg, #FFE8E8, #FFCCCC); }
.follow-card--instagram { background: linear-gradient(160deg, #F0E8FF, #E0CCFF); }
.follow-card--rss { background: linear-gradient(160deg, #E8F4F0, #CCE8E0); }

[data-theme="dark"] .follow-card--substack { background: linear-gradient(160deg, #2A2018, #1E1810); }
[data-theme="dark"] .follow-card--youtube { background: linear-gradient(160deg, #2A1818, #1E1010); }
[data-theme="dark"] .follow-card--instagram { background: linear-gradient(160deg, #20182A, #18101E); }
[data-theme="dark"] .follow-card--rss { background: linear-gradient(160deg, #182A22, #101E18); }

.follow-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.follow-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.follow-card-platform {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.follow-card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.follow-card-cta {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s;
}

.follow-card:hover .follow-card-cta {
  opacity: 0.7;
  transform: translateX(0);
}

.follow-contact {
  text-align: center;
  padding: 2.5rem;
  border-radius: 16px;
  background: rgba(26,23,20,0.03);
}

[data-theme="dark"] .follow-contact { background: rgba(250,246,241,0.03); }

.follow-contact h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.follow-contact p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.follow-email {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s;
}

.follow-email:hover { color: var(--terracotta-dark); }

/* ─── VISUAL READING TIME BAR (single article hero) ─── */
.reading-time-visual {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.reading-time-bar {
  width: 120px;
  height: 3px;
  background: rgba(250,246,241,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.reading-time-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reading-time-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgba(250,246,241,0.4);
}

/* ─── MINI READING TIME BAR (article cards) ─── */
.reading-time-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.reading-time-mini-bar {
  width: 60px;
  height: 2px;
  background: rgba(26,23,20,0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.reading-time-mini-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: var(--terracotta);
  border-radius: 2px;
}

.reading-time-mini span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.article-card.featured .reading-time-mini-bar { background: rgba(250,246,241,0.1); }
.article-card.featured .reading-time-mini span { color: rgba(250,246,241,0.35); }

[data-theme="dark"] .reading-time-mini-bar { background: rgba(250,246,241,0.06); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .follow-grid { grid-template-columns: 1fr; }
  .mobile-menu-inner a { font-size: 1.6rem; padding: 0.5em 0; }
}

/* ═══════════════════════════════════════
   DESIGN POLISH
   ═══════════════════════════════════════ */

/* Tagline: more presence, less ghost */
.hero .hero-tagline {
  color: #F0D9CC !important;
  opacity: 0.9 !important;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem) !important;
  letter-spacing: 0.06em !important;
}

/* Remove typewriter cursor after animation completes */
.hero-title.typed::after {
  display: none;
}

/* Nav z-index fix */
.site-nav-bar {
  z-index: 1000;
  position: fixed;
}

.site-nav-bar.scrolled {
  z-index: 1000;
}

/* Newsletter band should not overlap nav */
.newsletter-band {
  position: relative;
  z-index: 1;
}

/* Hero desc slightly brighter */
.hero .hero-desc {
  color: rgba(250,246,241,0.6) !important;
}

/* Hero CTA slightly more visible */
.hero .hero-cta {
  border-color: rgba(255,255,255,0.3) !important;
}

/* Scroll hint more subtle */
.scroll-hint {
  opacity: 0.5;
}
