/* ==========================================================================
   WaddingtonWrites — Cinematic Editorial
   Dark-first. Atmospheric. Bold.
   Unbounded (display) + Syne (headings) + Outfit (body)
   ========================================================================== */

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

:root {
  --accent: #666;
  --bg: #0a0a0c;
  --bg-raised: #111115;
  --bg-card: #16161b;
  --text: #eae8e4;
  --text-dim: #7a7772;
  --text-muted: #4e4b47;
  --border: #222228;
  --border-light: #2a2a30;
  --col: 720px;
  --wide: 1100px;
  --font-display: 'Josefin Sans', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --accent-glow: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 25%, transparent);
  --accent-mid: color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Light mode — applied when .dark is NOT present */
html:not(.dark) {
  --bg: #f5f3ef;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --text: #1a1815;
  --text-dim: #6b6660;
  --text-muted: #a09a93;
  --border: #e0dbd4;
  --border-light: #ebe7e0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 350;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- Atmospheric layers --- */

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

.glow-orb {
  --mx: 50%;
  --my: 30%;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    var(--accent-glow),
    transparent 70%
  );
  transition: background 0.3s ease;
}

html.light .glow-orb { opacity: 0.5; }

/* --- Typography --- */

h1, h2, h3 { line-height: 1.1; }

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent-mid);
  color: var(--text);
}

/* --- Header --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
  padding-bottom: 1rem;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  gap: 0.1em;
}

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

.section-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-sections {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.nav-section {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out);
}

.nav-section:hover {
  color: var(--text);
  background: var(--accent-glow);
}

.nav-section.active {
  color: #fff;
  background: var(--nav-accent, var(--accent));
  box-shadow: 0 0 20px -4px var(--nav-accent, var(--accent));
}

.dark-toggle {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease-out);
}

.dark-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px -4px var(--accent);
}

.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

/* --- Main --- */

.site-main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

.home-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  animation: lineSweep 8s ease-in-out infinite;
}

.hero-line-1 { top: 30%; left: -10%; right: -10%; animation-delay: 0s; }
.hero-line-2 { top: 50%; left: -10%; right: -10%; animation-delay: 2.5s; opacity: 0.5; }
.hero-line-3 { top: 70%; left: -10%; right: -10%; animation-delay: 5s; opacity: 0.3; }

@keyframes lineSweep {
  0%, 100% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
}

.home-hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
}

.home-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.home-title-word {
  display: block;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.home-title-accent {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}

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

.home-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  animation: fadeUp 0.8s 0.4s var(--ease-out) both;
}

/* Section cards — immersive panels */

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
  animation: fadeUp 0.8s 0.5s var(--ease-out) both;
}

.section-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem 3.5rem;
  min-height: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.5s var(--ease-out);
  cursor: pointer;
}

.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    var(--accent-soft),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.section-card:hover {
  background: var(--bg-raised);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow:
    0 24px 60px -16px var(--accent-glow),
    0 0 0 1px var(--accent-soft);
}

.section-card:hover::before { opacity: 1; }
.section-card:hover::after { transform: scaleX(1); }

.card-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75%;
  transform: translate(-50%, -55%);
  color: var(--accent);
  pointer-events: none;
  transition: all 0.6s var(--ease-out);
  opacity: 1;
}

.section-card:hover .card-graphic {
  opacity: 1.0;
  transform: translate(-50%, -58%) scale(1.05);
}

.section-card h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}

.section-card:hover h2 {
  color: var(--accent);
}

.section-card p {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Arrow indicator */
.section-card h2::after {
  content: ' \2192';
  font-family: var(--font-body);
  font-weight: 300;
  opacity: 0;
  transform: translateX(-8px);
  display: inline-block;
  transition: all 0.4s var(--ease-out);
}

.section-card:hover h2::after {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   SECTION LANDING PAGE
   ========================================================================== */

.section-hero {
  position: relative;
  padding: 8rem 1.5rem 3rem;
  max-width: var(--wide);
  margin: 0 auto;
  overflow: hidden;
}

.section-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 600px;
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-soft), transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.section-hero-content {
  position: relative;
  max-width: var(--col);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  animation: fadeUp 0.6s var(--ease-out) both;
}

.section-description {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}

.section-hero-line {
  max-width: var(--col);
  height: 1px;
  margin-top: 2.5rem;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  animation: fadeUp 0.6s 0.2s var(--ease-out) both;
}

/* ==========================================================================
   POST LIST (shared)
   ========================================================================== */

.post-list {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.post-card {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.5s var(--ease-out) both;
  transition: border-color 0.3s;
}

.post-card:hover {
  border-color: var(--accent-soft);
}

.post-card:last-child { border-bottom: none; }

.post-card time {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.5rem;
}

.post-card h2 a {
  color: var(--text);
  transition: color 0.2s;
}

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

.post-card .post-category a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
  transition: all 0.2s;
}

.post-card .post-category a:hover {
  background: var(--accent-soft);
}

.post-card .post-excerpt {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.post-card .post-excerpt p { margin: 0; }

.post-card .post-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-card .post-tags a {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  transition: all 0.2s;
}

.post-card .post-tags a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Staggered card animations */
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }

/* ==========================================================================
   INDIVIDUAL POST
   ========================================================================== */

.post {
  max-width: var(--col);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

.post-header {
  position: relative;
  margin-bottom: 3rem;
}

.post-header-glow {
  position: absolute;
  top: -80px;
  left: -100px;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.post-section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.post-section-badge:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px -4px var(--accent);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.post-meta {
  font-size: 0.83rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.post-meta .post-category a {
  color: var(--accent);
  font-weight: 500;
}

.also-in {
  margin-top: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-dim);
  font-style: italic;
}

.also-in a {
  color: var(--accent);
  font-weight: 500;
}

/* --- Prose --- */

.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  animation: fadeUp 0.6s 0.15s var(--ease-out) both;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 3rem 0 0.8rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.6rem;
}

.prose p {
  margin-bottom: 1.3rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
  transition: text-decoration-color 0.2s;
}

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

.prose ul, .prose ol {
  margin-bottom: 1.3rem;
  padding-left: 1.4rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose blockquote {
  position: relative;
  border: none;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--bg-raised);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.prose blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  border-radius: 3px;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: var(--bg-raised);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
}

.prose pre {
  margin: 1.75rem 0;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.55;
  position: relative;
}

.prose pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text);
  font-size: 0.85rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* --- Post footer --- */

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

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

.post-tags-list a {
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  transition: all 0.2s;
}

.post-tags-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px -4px var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* ==========================================================================
   LISTING PAGE
   ========================================================================== */

.listing-header {
  max-width: var(--col);
  margin: 7rem auto 0;
  padding: 0 1.5rem;
}

.listing-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.listing-section-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.listing-breadcrumb svg {
  color: var(--text-muted);
}

.listing-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.listing-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.listing-line {
  height: 1px;
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */

.search-page {
  max-width: var(--col);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

.search-header {
  margin-bottom: 2.5rem;
}

.search-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.search-input-wrap {
  position: relative;
  animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.9rem 1rem 0.9rem 3rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: all 0.3s var(--ease-out);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px -4px var(--accent-glow);
}

.search-results {
  animation: fadeUp 0.6s 0.2s var(--ease-out) both;
}

.search-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

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

.search-result:hover {
  border-color: var(--accent-soft);
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.search-result-meta time {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.search-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.search-result h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.search-result:hover h2 {
  color: var(--accent);
}

.search-result p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.search-result-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.search-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}

/* Search toggle button in nav */

.search-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  transition: all 0.3s var(--ease-out);
}

.search-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px -4px var(--accent);
}

/* Hide search on homepage */
.page-home .search-toggle { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.footer-logo em {
  font-style: italic;
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  html { font-size: 16px; }

  .header-inner { padding: 0.75rem 1rem; }

  .nav-sections { gap: 0; padding: 0.15rem; }

  .nav-section {
    font-size: 0.65rem;
    padding: 0.3rem 0.55rem;
    letter-spacing: 0.04em;
  }

  .home-hero { min-height: 55vh; }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 1rem 4rem;
  }

  .section-card {
    min-height: 200px;
    padding: 2rem 1.5rem;
  }

  .section-hero { padding: 7rem 1rem 2rem; }

  .post-list { padding: 0 1rem 3rem; }

  .post { padding: 6rem 1rem 3rem; }

  .listing-header {
    margin-top: 6rem;
    padding: 0 1rem;
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .site-logo { font-size: 1rem; }

  .nav-section {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
  }

  .section-card { min-height: 160px; }
}

/* ==========================================================================
   PAGE-SPECIFIC TWEAKS
   ========================================================================== */

/* Hide section nav on homepage — the cards ARE the nav */
.page-home .nav-sections { display: none; }
.page-home .site-header { background: transparent; border: none; }
.page-home .glow-orb { display: none; }
