/*
Theme Name: Moops
Theme URI: https://moops.app
Author: Custom
Description: Dark blog theme faithful to moops.app brand (custom.css). #111118 base with the signature pink/purple/lime blob gradient overlay, #8b5df6 purple, Instrument Serif headings, Inter body.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: moops
*/

/* ─── BRAND TOKENS — faithful to moops custom.css ───────────────────────── */
:root {
  /* Brand core */
  --accent-purple:       #8b5df6;
  --accent-purple-dark:  #6b3fd4;
  --accent-purple-light: #ede7fd;

  /* Accent colors */
  --accent-amber:        #f7c94e;
  --accent-coral:        #ff6b6b;
  --accent-violet:       #7D3C9E;

  /* Dark theme backgrounds (using moops dark vars) */
  --bg-primary:          #111118;
  --bg-secondary:        #1e1e2a;
  --bg-surface:          #1e1e2a;
  --bg-card:             #1a1a26;
  --bg-card-hover:       #212130;
  --bg-raised:           #252535;

  /* Text — near white over dark bg */
  --text-primary:        #f0eeff;
  --text-secondary:      #a89ec4;
  --text-faint:          #5a5478;
  --text-inverse:        #ffffff;

  /* Borders */
  --border-color:        #2e2b45;
  --border-light:        #2a2740;

  /* Typography */
  --font-display:        'Instrument Serif', Georgia, serif;
  --font-body:           'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:           'DM Mono', monospace;

  --radius-sm:           0.5rem;
  --radius:              1rem;      /* moops uses 1rem cards */
  --radius-pill:         9999px;    /* moops pill buttons */
  --max-w:               1140px;
  --gutter:              clamp(1.25rem, 4vw, 2.5rem);
}

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

/* ─── BODY — dark base + moops blob gradient (dark edition) ─────────────── */
body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  line-height: 1.7;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  /* Dark base */
  background-color: #111118;

  /* moops blob gradient — dark edition:
     same shapes as custom.css but shifted to dark purples/pinks over black */
  background-image:
    /* Lime accent highlights — toned down on dark */
    radial-gradient(ellipse 15% 20% at 75% 15%, rgba(185, 255, 68, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 10% 15% at 20% 60%, rgba(185, 255, 68, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 8%  12% at 85% 70%, rgba(185, 255, 68, 0.06) 0%, transparent 65%),

    /* Pink blobs */
    radial-gradient(ellipse 45% 50% at 80% 20%, rgba(255, 107, 107, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 35% 40% at 15% 75%, rgba(255, 107, 107, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 25% 35% at 60% 85%, rgba(255, 107, 107, 0.08) 0%, transparent 60%),

    /* Purple blobs — the signature moops shapes */
    radial-gradient(ellipse 50% 45% at 20% 25%, rgba(139, 93, 246, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 60%, rgba(139, 93, 246, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 30% 35% at 45% 40%, rgba(139, 93, 246, 0.14) 0%, transparent 60%);

  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--text-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-purple); }

/* ─── HEADINGS — Instrument Serif, faithful to custom.css ───────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

/* ─── SCROLLBAR — moops purple ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple-dark); }

/* ─── LAYOUT ──────────────────────────────────────────────────────────────── */
.site-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── TICKER ─────────────────────────────────────────────────────────────── */
.site-ticker {
  background: rgba(30, 30, 42, 0.7);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  padding: 0.45rem 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ticker-item .star { color: var(--accent-purple); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── HEADER — floating pill nav (faithful to moops custom.css) ──────────── */
.site-header {
  position: sticky;
  top: 15px;
  z-index: 100;
  /* Not full-width — floats with margin, 96% width like moops */
  width: 96%;
  max-width: 96%;
  margin: 0 auto;
  left: 0; right: 0;
  background-color: rgba(17, 17, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--accent-purple);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(139, 93, 246, 0.2);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 2rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}
.site-logo .logo-star { color: var(--accent-purple); font-style: normal; margin-left: 0.2rem; font-size: 0.8em; }

.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent-purple); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.search-toggle {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.15s;
}
.search-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 93, 246, 0.15);
}

/* Search drawer */
.search-drawer {
  display: none;
  background: rgba(17, 17, 24, 0.97);
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 1.5rem;
}
.search-drawer.open { display: flex; }
.search-drawer form { display: flex; width: 100%; max-width: 560px; margin: 0 auto; }
.search-drawer input {
  flex: 1;
  background: var(--bg-raised);
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 1.1rem;
  outline: none;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.search-drawer input:focus { border-color: var(--accent-purple); }
.search-drawer input::placeholder { color: var(--text-faint); }
.search-drawer button[type="submit"] {
  background: var(--accent-purple);
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(139, 93, 246, 0.4);
  transition: all 0.15s;
}
.search-drawer button[type="submit"]:hover {
  background: var(--accent-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 93, 246, 0.5);
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(139, 93, 246, 0.1);
  border: 1px solid rgba(139, 93, 246, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}
.hero-excerpt { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 2rem; max-width: 44ch; }

/* CTA button — pill with purple shadow, faithful to moops buttons */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-purple);
  color: var(--text-inverse);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(139, 93, 246, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.hero-cta:hover {
  background-color: var(--accent-purple-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 93, 246, 0.5);
}
.hero-cta:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(139, 93, 246, 0.4); }
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  margin-left: 0.75rem;
  transition: all 0.15s;
}
.hero-cta-ghost:hover { color: var(--accent-purple); border-color: var(--accent-purple); background: rgba(139, 93, 246, 0.06); }

/* Hero featured card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 93, 246, 0.2);
}
.hero-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-raised); }
.hero-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.2s ease, transform 0.4s;
}
.hero-card:hover .hero-card-thumb img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.hero-card-body { padding: 1.4rem 1.5rem; }
.hero-card-cat {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-purple); margin-bottom: 0.5rem;
}
.hero-card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; line-height: 1.25; color: var(--text-primary); margin-bottom: 0.6rem; }
.hero-card-meta { font-size: 0.75rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.6rem; }
.hero-card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}
.section-title {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; gap: 0.5rem;
}
.section-title .icon { color: var(--accent-purple); }
.section-link { font-size: 0.78rem; font-weight: 600; color: var(--accent-purple); transition: color 0.15s; }
.section-link:hover { color: var(--accent-purple-dark); }

/* ─── POST GRID ──────────────────────────────────────────────────────────── */
.posts-section { padding: clamp(2rem, 5vw, 4rem) 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ─── POST CARD — rounded 1rem, purple hover shadow ─────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 93, 246, 0.18);
}
.post-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-raised); flex-shrink: 0; }
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.2s ease, transform 0.4s;
}
.post-card:hover .post-card-thumb img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.post-card-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card-cat {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-purple); margin-bottom: 0.45rem;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400; line-height: 1.3;
  color: var(--text-primary); margin-bottom: 0.6rem; flex: 1;
}
.post-card-title a { transition: color 0.15s; }
.post-card:hover .post-card-title a { color: var(--accent-purple); }
.post-card-excerpt { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.85rem; }
.post-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; color: var(--text-faint);
  padding-top: 0.75rem; border-top: 1px solid var(--border-light); margin-top: auto;
}
.post-card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }

/* Featured card */
.post-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.post-card.featured .post-card-thumb { aspect-ratio: unset; height: 100%; }
.post-card.featured .post-card-body { padding: 1.75rem; justify-content: center; }
.post-card.featured .post-card-title { font-size: 1.45rem; }

/* ─── NEWSLETTER ──────────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.newsletter-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-purple); margin-bottom: 1rem; display: block;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400;
  color: var(--text-primary); line-height: 1.1; margin-bottom: 0.7rem;
}
.newsletter-sub { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.9rem; }
.newsletter-form {
  display: flex; max-width: 420px; margin: 0 auto;
  border-radius: var(--radius-pill); overflow: hidden;
  border: 2px solid var(--border-color); background: var(--bg-card);
}
.newsletter-form input {
  flex: 1; background: transparent; border: none;
  padding: 0.8rem 1.1rem; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text-primary); outline: none;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form button {
  background: var(--accent-purple); border: none;
  padding: 0.8rem 1.35rem; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(139, 93, 246, 0.4);
  transition: all 0.15s;
}
.newsletter-form button:hover { background: var(--accent-purple-dark); transform: translateY(-1px); }
.newsletter-privacy { font-size: 0.7rem; color: var(--text-faint); margin-top: 0.85rem; }

/* ─── SINGLE POST ─────────────────────────────────────────────────────────── */
.post-header {
  padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
  max-width: 760px; margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.post-header .post-cat {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-inverse); background: var(--accent-purple);
  border-radius: var(--radius-pill); padding: 0.28rem 0.9rem; margin-bottom: 1.25rem;
}
.post-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.post-header .post-meta { display: flex; align-items: center; gap: 0.85rem; font-size: 0.82rem; color: var(--text-secondary); }
.post-header .post-meta .author { font-weight: 600; color: var(--text-primary); }
.post-header .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }

.post-featured-image { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) 2.5rem; }
.post-featured-image img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 21/9; object-fit: cover;
  filter: grayscale(30%) contrast(1.1); transition: filter 0.3s;
}
.post-featured-image img:hover { filter: grayscale(0%) contrast(1); }

.post-content { max-width: 700px; margin: 0 auto; padding: 0 var(--gutter) 5rem; }
.post-content p { margin-bottom: 1.6rem; color: var(--text-secondary); line-height: 1.8; }
.post-content h2 { margin: 2.75rem 0 1rem; }
.post-content h3 { margin: 2rem 0 0.75rem; }
.post-content a { color: var(--accent-purple); border-bottom: 1px solid rgba(139, 93, 246, 0.35); transition: all 0.15s; }
.post-content a:hover { color: var(--accent-purple-dark); border-bottom-color: var(--accent-purple-dark); }
.post-content blockquote {
  border-left: 3px solid var(--accent-purple);
  background: rgba(139, 93, 246, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0; padding: 1.1rem 1.5rem;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary);
}
.post-content code {
  font-family: var(--font-mono); background: var(--bg-raised);
  border: 1px solid var(--border-color); border-radius: 4px;
  padding: 0.15em 0.45em; font-size: 0.875em; color: var(--accent-purple);
}
.post-content pre { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 1.25rem; overflow-x: auto; margin-bottom: 1.6rem; }
.post-content pre code { background: none; border: none; padding: 0; }
.post-content ul, .post-content ol { margin: 0 0 1.6rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; color: var(--text-secondary); }
.post-content strong { font-weight: 600; color: var(--text-primary); }
.post-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; filter: grayscale(20%); transition: filter 0.2s; }
.post-content img:hover { filter: grayscale(0%); }

/* ─── POST NAV ────────────────────────────────────────────────────────────── */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
.post-nav-link {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-nav-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 93, 246, 0.15); }
.post-nav-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.4rem; }
.post-nav-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; color: var(--text-primary); line-height: 1.3; }

/* ─── TAGS ────────────────────────────────────────────────────────────────── */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
/* Faithful to moops badge style: square, uppercase, solid */
.post-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--accent-purple); color: var(--text-inverse);
  border: 1px solid var(--border-color); border-radius: 0;
  padding: 0.3rem 0.75rem; transition: background 0.15s;
}
.post-tag:hover { background: var(--accent-violet); color: var(--text-inverse); }

/* ─── ARCHIVE / SEARCH HEADER ────────────────────────────────────────────── */
.archive-header { padding: 3rem 0 0; border-bottom: 1px solid var(--border-light); margin-bottom: 2.5rem; background: var(--bg-surface); }
.archive-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter) 2rem; }
.archive-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; }
.archive-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 400; color: var(--text-primary); }
.archive-title .hl { color: var(--accent-purple); }

/* ─── PAGINATION ──────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 0.35rem; justify-content: center; padding: 3rem 0 1rem; }
.pagination a, .pagination span {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600; border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-secondary); transition: all 0.15s;
}
.pagination a:hover { background: rgba(139, 93, 246, 0.1); color: var(--accent-purple); border-color: var(--accent-purple); }
.pagination .current { background: var(--accent-purple); border-color: var(--accent-purple); color: var(--text-inverse); box-shadow: 0 4px 14px rgba(139, 93, 246, 0.4); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-light); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); margin-bottom: 1.5rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; color: var(--text-primary); }
.footer-logo .star { color: var(--accent-purple); }
.footer-tagline { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.3rem; }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.15s; }
.footer-nav a:hover { color: var(--accent-purple); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text-faint); }

/* ─── UTILITIES ───────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.no-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-raised), rgba(139, 93, 246, 0.1));
  display: flex; align-items: center; justify-content: center; color: var(--text-faint);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { max-width: 560px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .post-card.featured .post-card-thumb { height: 220px; }
}
@media (max-width: 640px) {
  .site-header { top: 8px; }
  .site-nav { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
}
