/* ── STAGES & SCREENS · MAIN STYLESHEET ── */
/* Forked from Ideational Evolution's stylesheet. Only the two accent
   colors were swapped -- everything else (structure, spacing, type)
   is identical on purpose. Variable names were kept as-is so the two
   stylesheets stay easy to diff against each other:
     --gold      was IE's yellow-gold main accent -> now curtain red
     --gold-dim  was IE's dim gold (borders/etc.)  -> now dim red
     --red       was IE's category-tag red         -> now yellow-gold
                 (literally IE's old --gold value, reused) */

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

:root {
  --bg: #0f0e0c;
  --surface: #191714;
  --paper: #f2ece0;
  --paper-mid: #d9d0be;
  --gold: #c73230;
  --gold-dim: #87201e;
  --red: #c9a84c;
  --muted: #7a7060;
  --rule: #2e2b25;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
  --condensed: 'Barlow Condensed', sans-serif;
}

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── MASTHEAD ── */
.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.masthead-tag {
  font-family: var(--condensed);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.masthead h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.masthead h1 a {
  color: var(--paper);
  text-decoration: none;
}

.masthead h1 em {
  font-style: italic;
  color: var(--gold);
}

.masthead-right { text-align: right; padding-bottom: 0.4rem; }

.masthead-sub {
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

.masthead-date {
  font-family: var(--condensed);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-top: 0.3rem;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.nav-scroll-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.4rem;
  background: var(--surface);
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-arrow:hover { color: var(--gold); }

.nav-scroll-wrap::before,
.nav-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1px;
  width: 1.5rem;
  pointer-events: none;
  z-index: 1;
  display: block;
}

.nav-scroll-wrap::before { left: 2.4rem; background: linear-gradient(to right, var(--surface), transparent); }
.nav-scroll-wrap::after { right: 2.4rem; background: linear-gradient(to left, var(--surface), transparent); }

nav a {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-right: 1px solid var(--rule);
  transition: color 0.2s, background 0.2s;
  display: block;
  flex-shrink: 0;
  white-space: nowrap;
}

nav a:first-child { border-left: 1px solid var(--rule); }
nav a:hover { color: var(--gold); background: rgba(199,50,48,0.04); }
nav a.active { color: var(--paper); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0;
}

.hero.has-image {
  display: grid;
  gap: 0 4rem;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas:
    "flag  img"
    "title img"
    "rest  img";
}

.hero.has-image .hero-flag { grid-area: flag; }
.hero.has-image .hero-title { grid-area: title; margin-bottom: 0; }
.hero.has-image .hero-img { grid-area: img; margin-bottom: 0; }
.hero.has-image .hero-rest { grid-area: rest; }

.hero.has-image .hero-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.hero-img { margin-bottom: 1.5rem; }

.hero-flag {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-flag::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: var(--red);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero.has-image .hero-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.hero-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-byline {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--paper-mid);
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.2rem;
  margin-bottom: 1.3rem;
}

.hero-body {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #a09880;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.2s;
}

.read-more:hover { gap: 0.8rem; }
.read-more::after { content: '→'; }

@media (max-width: 900px) {
  .container { padding: 0 2rem; }
  .hero-img img { min-height: 180px; }
}

/* ── POST GRID ── */
.posts-section { padding: 3rem 0; }

.posts-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.posts-header h3 {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.posts-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

/* ── POST STACK (homepage) ──
   Tall image-first cards, stacked vertically. Each shows its full
   1200×630 hero at rest; on hover the image dims and scales back
   slightly while the title/excerpt fades in over it. */
.post-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.stack-card {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-decoration: none;
  animation: fadeUp 0.5s ease both;
}

.stack-card-image {
  position: absolute;
  inset: 0;
}

.stack-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.45s ease;
}

.stack-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  background: rgba(15,14,12,0.93);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stack-card-info h4 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: 0.8rem;
}

.stack-card-info .card-excerpt {
  max-width: 640px;
  font-size: 0.92rem;
}

.stack-card:hover .stack-card-image img {
  transform: scale(1.04);
  opacity: 0.2;
}

.stack-card:hover .stack-card-info { opacity: 1; }

/* Cards with no resolvable image just show the info panel plainly */
.stack-card.no-image .stack-card-info {
  position: static;
  opacity: 1;
  background: none;
  padding: 2.2rem 2.5rem;
}

.stack-card.no-image .stack-card-info h4 { font-size: 1.2rem; }

@media (max-width: 720px) {
  .stack-card-info { padding: 1.8rem; }
  .stack-card-info h4 { font-size: 1.25rem; }
}

.post-card {
  padding: 1.8rem;
  background: var(--bg);
  transition: background 0.25s;
}

.post-card:not(.has-image):hover { background: var(--surface); }

.card-tag {
  font-family: var(--condensed);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.7rem;
}

.post-card h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 0.7rem;
}

.post-card h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h4 a:hover { color: var(--gold); }

.card-excerpt {
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-date {
  font-family: var(--condensed);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #3d3a32;
  text-transform: uppercase;
}

/* ── SINGLE POST ── */
.single-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

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

.post-tag {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.single-post h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.single-post h1 em,
.post-card h4 em {
  font-style: italic;
  color: var(--gold);
}

.post-subtitle {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.post-byline {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.post-lede {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--paper-mid);
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

/* ── POST HERO IMAGE ── */
/* Standard 1200×630 banner, sized to the article column rather than
   full-bleed, sitting above the lede. object-fit: cover fills the
   frame cleanly at this fixed shape. */
.post-hero-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  aspect-ratio: 1200 / 630;
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.post-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-image.contain {
  aspect-ratio: auto;
  max-height: 75vh;
  display: flex;
  justify-content: center;
}

.post-hero-image.contain img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

/* ── POST BODY TYPOGRAPHY ── */
.post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--paper-mid);
}

.post-body p { margin-bottom: 1.4rem; }

.post-body h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--paper);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-family: var(--condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.8rem;
}

.post-body blockquote {
  border-left: 3px solid var(--gold-dim);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--paper-mid);
}

.post-body blockquote p { margin-bottom: 0.5rem; }

.post-body em { font-style: italic; }

.post-body strong {
  color: var(--paper);
  font-weight: 400;
}

.post-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.2s;
}

.post-body a:hover { border-color: var(--gold); }

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

/* ── BIBLIOGRAPHY ── */
.post-bibliography {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.bib-heading {
  font-family: var(--condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.bib-list {
  list-style: none;
}

.bib-item {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.bib-item:last-child { border-bottom: none; }
.bib-item em { font-style: italic; color: var(--paper-mid); }

/* ── POST NAV ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.post-nav-link {
  position: relative;
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
  max-width: 44%;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.post-nav-link.next { justify-content: flex-end; }

.post-nav-arrow { flex-shrink: 0; }

.post-nav-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-nav-link:hover { color: var(--paper); }

.post-nav-link.next { text-align: right; }

/* ── POST NAV IMAGE PREVIEW ── */
.nav-preview {
  position: absolute;
  bottom: calc(100% + 16px);
  width: 200px;
  height: 140px;
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  pointer-events: none;
  z-index: 5;
}

.post-nav-link.prev .nav-preview { left: 0; }
.post-nav-link.next .nav-preview { right: 0; }

.nav-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) sepia(10%);
}

.post-nav-link:hover .nav-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── ABOUT STRIP ── */
.about-strip {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 2.5rem 0;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
}

.about-who {
  font-family: var(--condensed);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-text {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--paper-mid);
}

.about-link a {
  font-family: var(--condensed);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.about-link a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── FOOTER ── */
footer {
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-family: var(--condensed);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rule);
}

footer em { font-style: italic; color: var(--gold-dim); }
footer span { color: var(--gold-dim); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.masthead { animation: fadeUp 0.5s ease both; }
.hero { animation: fadeUp 0.55s 0.08s ease both; }
.post-card { animation: fadeUp 0.5s ease both; }
.post-card:nth-child(1) { animation-delay: 0.15s; }
.post-card:nth-child(2) { animation-delay: 0.22s; }
.post-card:nth-child(3) { animation-delay: 0.29s; }
.post-card:nth-child(4) { animation-delay: 0.36s; }
.post-card:nth-child(5) { animation-delay: 0.43s; }
.post-card:nth-child(6) { animation-delay: 0.50s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero.has-image {
    display: block;
  }
  .hero.has-image .hero-title,
  .hero.has-image .hero-img { margin-bottom: 1.5rem; }
  .hero.has-image .hero-body { -webkit-line-clamp: 4; }
  .hero.has-image .hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .masthead-inner { grid-template-columns: 1fr; }
  .masthead-right { text-align: left; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .single-post { padding: 2rem 0; }
  .post-header { margin-bottom: 1.75rem; }
  .hero { padding: 2rem 0; }
  .post-body { font-size: 1.05rem; line-height: 1.95; }
}
/* {{< hl >}}word{{< /hl >}} — turns the enclosed text the site's accent color (class name kept as "hl-yellow" to match Ideational Evolution's shortcode markup; it now renders in curtain red via --gold). */
.hl-yellow {
  color: var(--gold);
}

/* ── POST CARD · HOVER IMAGE ──
   Cards with a resolvable image (see heroimage.html) get a
   background photo that fades in on hover behind a light scrim;
   the text dims but stays legible on top. Cards without an image
   keep the original plain background-shift hover. */
.post-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pc-text h4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease;
}

.pc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 7, 0.32);
}

.pc-text { position: relative; transition: opacity 0.35s ease; }

/* Mouse/trackpad: real :hover. Touch: no hover state exists, so
   card-hover.html toggles .is-peek on first tap instead. */
@media (hover: hover) and (pointer: fine) {
  .post-card.has-image:hover .pc-img { opacity: 1; }
  .post-card.has-image:hover .pc-text .card-excerpt { opacity: 0.6; }
}

.post-card.has-image.is-peek .pc-img { opacity: 1; }
.post-card.has-image.is-peek .pc-text .card-excerpt { opacity: 0.6; }

/* ── HOMEPAGE SHUFFLE CONTROLS ── */
.shuffle-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.shuffle-btn {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-dim);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.shuffle-btn:hover { background: var(--gold); color: var(--bg); }

.shuffle-counter {
  font-family: var(--condensed);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── ARCHIVE PAGINATION ── */
.site-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.pager-arrow {
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.pager-arrow:hover { color: var(--paper); }
.pager-arrow.is-disabled { color: var(--rule); pointer-events: none; }

.pager-nums { display: flex; align-items: center; gap: 0.8rem; }

.pager-num {
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.pager-num:hover { color: var(--gold); }
.pager-num.is-current { color: var(--paper); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

.pager-ellipsis { font-family: var(--condensed); font-size: 0.72rem; color: var(--rule); }

/* Fix: [hidden] loses to .post-grid's display:grid under the CSS
   cascade (author-origin rules always beat the UA default for [hidden],
   regardless of specificity) -- this silently broke the homepage's
   "one batch visible at a time" shuffle once post count grew past 6. */
.grid-batch[hidden] { display: none !important; }

/* ── SEARCH ── */
.nav-search-toggle {
  font-size: 1rem;
  border-left: 1px solid var(--rule);
}

.search-panel {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 2.5rem;
}

.search-input {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 0.7rem 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.search-results {
  max-width: 1200px;
  margin: 0 auto;
}

.search-result {
  display: block;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.search-result:last-child { border-bottom: none; }

.search-result-tag {
  display: block;
  font-family: var(--condensed);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.2rem;
}

.search-result-title {
  display: block;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--paper-mid);
}

.search-result:hover .search-result-title { color: var(--paper); }

.search-empty {
  font-family: var(--condensed);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.5rem 0.2rem;
}

@media (max-width: 900px) {
  .search-panel { padding: 1rem; }
}
