/* ============================================================
   BHOJON STORIES — editorial story publishing
   Design language ported from the Bhojon kitchen: warm white,
   ember-orange accent, amber highlights, display serif-grotesque.
   ============================================================ */

:root {
  /* Warm white palette */
  --bg: #fbf6f0;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbf3ea;
  --surface-3: #f3e8da;
  --line: rgba(40, 24, 14, 0.10);
  --line-strong: rgba(40, 24, 14, 0.17);

  --text: #241712;
  --text-dim: #5b4a3d;
  --muted: #8a7868;
  --faint: #b6a695;

  /* Accents — set by the Customizer, these are fallbacks */
  --primary: #f24e15;
  --primary-600: #db410d;
  --primary-700: #b9360a;
  --primary-soft: rgba(242, 78, 21, 0.10);
  --primary-glow: rgba(242, 78, 21, 0.34);
  --amber: #de8a00;
  --amber-soft: #ffb300;
  --green: #1f9c4d;
  --red: #e23b3b;

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 8px rgba(60,35,20,0.07);
  --shadow: 0 18px 44px -18px rgba(60,35,20,0.22);
  --shadow-lg: 0 40px 90px -30px rgba(60,35,20,0.30);

  --maxw: 1240px;
  --reading: 720px;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* warm ambient glow */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(820px 520px at 78% -8%, rgba(242,78,21,0.06), transparent 60%),
    radial-gradient(680px 480px at 6% 8%, rgba(222,138,0,0.05), transparent 55%);
}
.site-wrap { position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em;
  margin: 0; color: var(--text);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 78px 0; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--amber); opacity: 0.7; }
.eyebrow.no-line::before { display: none; }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.between { max-width: none; align-items: flex-end; gap: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin-top: 14px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border: none; border-radius: 999px; padding: 14px 26px; color: #fff;
  background: var(--primary);
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: 0 12px 30px -12px var(--primary-glow); white-space: nowrap;
}
.btn:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 18px 38px -14px var(--primary-glow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(40,24,14,0.05); border-color: var(--text-dim); transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: #2a1a05; box-shadow: 0 12px 30px -12px rgba(255,179,0,.5); }
.btn-amber:hover { background: var(--amber-soft); }
.btn-soft { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn-soft:hover { background: var(--surface-3); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .18s ease, color .18s ease;
}
.link-arrow:hover { color: var(--amber); gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px; font-weight: 700;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line);
}
.badge.featured { background: var(--primary); color: #fff; border-color: transparent; }
.badge.series { background: rgba(222,138,0,.13); color: #b06f00; border-color: rgba(222,138,0,.3); }
.badge.new { background: rgba(31,156,77,.12); color: var(--green); border-color: rgba(31,156,77,.28); }
.badge.sticky-pin { background: rgba(226,59,59,.10); color: #d12f2f; border-color: rgba(226,59,59,.26); }

/* ---------- thumb placeholder (no featured image) ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(40,24,14,0.028) 0 14px, rgba(40,24,14,0) 14px 28px),
    linear-gradient(150deg, var(--surface-3), var(--surface-2));
  display: flex; align-items: center; justify-content: center; color: var(--faint);
}
.ph .ph-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: rgba(40,24,14,0.12); letter-spacing: -0.02em;
}

/* ============================================================
   TOP MARQUEE
   ============================================================ */
.topbar { background: linear-gradient(90deg, var(--primary-700), var(--primary)); color: #fff; overflow: hidden; white-space: nowrap; }
.topbar .marquee-mask { display: flex; overflow: hidden; }
.topbar .track {
  display: inline-flex; gap: 46px; padding: 8px 0; flex-shrink: 0;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.topbar:hover .track { animation-play-state: paused; }
.topbar .track span { display: inline-flex; align-items: center; gap: 10px; padding-left: 46px; }
.topbar .track span::before { content: "\2022"; color: rgba(255,255,255,0.55); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .topbar .track { animation: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,250,245,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(150deg, var(--primary), var(--amber));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: #1a1009; font-size: 22px;
  box-shadow: 0 8px 20px -8px var(--primary-glow); overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.brand .bn { display: flex; flex-direction: column; line-height: 1; }
.brand .bn .name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand .bn .sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a { display: block; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--text-dim); transition: color .15s ease, background .15s ease; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--text); background: rgba(40,24,14,0.05); }
.nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease; z-index: 60;
}
.nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu a { font-size: 14px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle { display: none; }

/* header search popover */
.header-search { position: relative; }
.search-pop {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(420px, 86vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.search-pop.open { opacity: 1; visibility: visible; transform: translateY(0); }

/* mobile drawer */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(40,24,14,0.42); backdrop-filter: blur(3px); z-index: 100; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: 320px; max-width: 88vw;
  background: var(--bg-elev); border-left: 1px solid var(--line-strong); z-index: 101;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mn-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.mobile-nav nav { padding: 14px; overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav .sub-menu { padding-left: 14px; }
.mobile-nav a { display: block; padding: 12px 14px; border-radius: 9px; font-weight: 600; color: var(--text-dim); }
.mobile-nav a:hover { background: var(--surface-2); color: var(--text); }

/* ============================================================
   HERO — featured story
   ============================================================ */
.hero { position: relative; padding: 54px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; }
.hero .hero-kicker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 70px); letter-spacing: -0.03em; }
.hero h1 a { transition: color .18s ease; }
.hero h1 a:hover { color: var(--primary); }
.hero .lede { color: var(--text-dim); font-size: 19px; max-width: 520px; margin-top: 22px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.hero-byline { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.hero-byline .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.hero-byline .bl-name { font-weight: 700; font-size: 15px; }
.hero-byline .bl-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-cover {
  aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line-strong); position: relative;
  box-shadow: var(--shadow-lg), inset 0 0 80px rgba(255,90,31,0.05);
}
.hero-cover img, .hero-cover .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cover .ph .ph-mark { font-size: 64px; }
.float-card {
  position: absolute; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-card .fc-ic svg { width: 20px; height: 20px; }
.float-card .fc-t { font-weight: 700; font-size: 14px; }
.float-card .fc-s { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.float-card.fc-1 { top: 7%; right: -5%; }
.float-card.fc-2 { bottom: 9%; left: -7%; animation-delay: 1.4s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.cat-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  font-weight: 600; font-size: 14px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.cat-chip:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--surface-2); color: var(--text); }
.cat-chip .cc { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cat-chip.active { background: var(--primary); border-color: transparent; color: #fff; }
.cat-chip.active .cc { color: rgba(255,255,255,0.75); }

/* ============================================================
   POST GRID + CARD
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card .pc-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: block; }
.post-card .pc-media img, .post-card .pc-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .pc-media img { transform: scale(1.04); }
.post-card .pc-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.post-card .pc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.post-card .pc-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.post-card .pc-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.16; }
.post-card .pc-title a { transition: color .15s ease; }
.post-card .pc-title a:hover { color: var(--primary); }
.post-card .pc-desc { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .pc-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.post-card .pc-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.post-card .pc-foot .av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--surface-3); }

/* large lead card variant for archives */
.post-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.post-card.lead .pc-media { width: 52%; aspect-ratio: auto; }
.post-card.lead .pc-body { padding: 36px; justify-content: center; gap: 16px; }
.post-card.lead .pc-title { font-size: clamp(26px, 3vw, 38px); }
.post-card.lead .pc-desc { -webkit-line-clamp: 4; font-size: 16px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  transition: all .15s ease;
}
.pagination a.page-numbers:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.pagination .page-numbers.current { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px var(--primary-glow); }
.pagination .page-numbers.dots { border: none; background: transparent; }

/* ============================================================
   SINGLE STORY
   ============================================================ */
.story-head { padding: 48px 0 8px; }
.story-head .container { max-width: 860px; }
.story-kicker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.story-title { font-size: clamp(34px, 5vw, 62px); letter-spacing: -0.03em; max-width: 16ch; }
.story-standfirst { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-dim); line-height: 1.55; margin-top: 22px; max-width: 60ch; font-weight: 500; }

.story-byline { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-byline .by-author { display: flex; align-items: center; gap: 13px; }
.story-byline .av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.story-byline .by-name { font-weight: 700; font-size: 15.5px; }
.story-byline .by-sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.story-byline .by-stat { display: flex; flex-direction: column; gap: 3px; }
.story-byline .by-stat .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.story-byline .by-stat .v { font-weight: 700; font-size: 14.5px; }
.story-byline .by-share { margin-left: auto; }

.story-cover { margin: 36px 0 8px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.story-cover img { width: 100%; display: block; }
.story-cover .ph { aspect-ratio: 16 / 8; }
.story-cover figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 12px 4px 0; text-align: center; }

/* reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--amber), var(--primary)); z-index: 80; transition: width .1s linear; }

/* article body typography */
.story-content { max-width: var(--reading); margin: 40px auto 0; font-size: 18.5px; line-height: 1.78; color: #33231a; }
.story-content > * + * { margin-top: 1.5em; }
.story-content p { margin: 0; }
.story-content h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 1.8em; letter-spacing: -0.02em; }
.story-content h3 { font-size: clamp(21px, 2.6vw, 26px); margin-top: 1.6em; }
.story-content h4 { font-size: 19px; margin-top: 1.4em; }
.story-content a { color: var(--primary-700); text-decoration: underline; text-decoration-color: var(--primary-soft); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: text-decoration-color .15s ease; }
.story-content a:hover { text-decoration-color: var(--primary); }
.story-content strong { font-weight: 700; color: var(--text); }
.story-content blockquote {
  margin: 1.8em 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--primary);
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); line-height: 1.4;
  font-weight: 600; color: var(--text); font-style: normal;
}
.story-content blockquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; font-style: normal; color: var(--muted); }
.story-content ul, .story-content ol { padding-left: 1.4em; }
.story-content li { margin-top: 0.5em; }
.story-content li::marker { color: var(--primary); }
.story-content img, .story-content figure, .story-content .wp-block-image { border-radius: var(--radius); overflow: hidden; }
.story-content figure { margin: 1.8em 0; }
.story-content figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.story-content pre { background: #2a1b13; color: #f6ede4; padding: 22px 24px; border-radius: var(--radius); overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }
.story-content code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-3); padding: 2px 6px; border-radius: 5px; }
.story-content pre code { background: none; padding: 0; }
.story-content hr { border: none; height: 1px; background: var(--line-strong); margin: 2.4em 0; }
.story-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.story-content th, .story-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.story-content th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.story-content .wp-block-pullquote { border-top: 2px solid var(--primary); border-bottom: 2px solid var(--primary); padding: 24px 0; text-align: center; }
.story-content :where(.alignwide) { width: min(var(--maxw), 92vw); margin-left: calc(50% - min(var(--maxw), 92vw)/2); margin-right: calc(50% - min(var(--maxw), 92vw)/2); }
.story-content :where(.alignfull) { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* tag list */
.story-tags { max-width: var(--reading); margin: 44px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-family: var(--font-mono); font-size: 12px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-dim); transition: all .15s ease; }
.tag-pill:hover { border-color: var(--primary); color: var(--primary); }
.tag-pill .h { color: var(--amber); }

/* ---------- share bar ---------- */
.share-bar { display: inline-flex; align-items: center; gap: 8px; }
.share-bar .sb-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.share-btn:hover { transform: translateY(-2px); color: var(--text); border-color: var(--line-strong); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.x:hover { color: #fff; background: #14100d; border-color: #14100d; }
.share-btn.fb:hover { color: #fff; background: #1877f2; border-color: #1877f2; }
.share-btn.wa:hover { color: #fff; background: #25d366; border-color: #25d366; }
.share-btn.li:hover { color: #fff; background: #0a66c2; border-color: #0a66c2; }
.share-btn.copy.copied { color: var(--green); border-color: var(--green); }

/* full share block at article end */
.share-block { max-width: var(--reading); margin: 48px auto 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.share-block h4 { font-size: 18px; margin-bottom: 6px; }
.share-block .sb-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.share-note { width: 100%; margin-bottom: 16px; }
.share-note label { font-size: 13px; font-weight: 600; color: var(--text-dim); display: block; margin-bottom: 7px; }

/* ---------- author box ---------- */
.author-box { max-width: var(--reading); margin: 48px auto 0; display: flex; gap: 20px; padding: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box .av { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.author-box .ab-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.author-box .ab-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-top: 3px; }
.author-box .ab-bio { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-top: 10px; }
.author-box .ab-links { display: flex; gap: 10px; margin-top: 14px; }

/* ============================================================
   STORY SEQUENCE (next / previous in a series)
   ============================================================ */
.series-rail { max-width: var(--reading); margin: 56px auto 0; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--surface), var(--surface-2)); }
.series-rail .sr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.series-rail .sr-head .eyebrow { margin: 0; }
.series-rail .sr-progress { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.series-steps { display: flex; gap: 5px; margin-bottom: 18px; }
.series-steps .ss { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); }
.series-steps .ss.done { background: var(--amber); }
.series-steps .ss.current { background: var(--primary); }
.series-list { display: flex; flex-direction: column; gap: 2px; }
.series-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); transition: background .15s ease; }
.series-link:hover { background: var(--surface); }
.series-link .sl-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); width: 28px; flex-shrink: 0; }
.series-link.current { background: var(--surface); border: 1px solid var(--line); }
.series-link.current .sl-num { color: var(--primary); }
.series-link .sl-title { font-weight: 600; font-size: 15.5px; }
.series-link.current .sl-title { color: var(--primary); }
.series-link .sl-check { margin-left: auto; color: var(--green); }

/* prev / next pager */
.story-pager { max-width: var(--reading); margin: 32px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager-link {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pager-link:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pager-link .pl-dir { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pager-link .pl-dir svg { width: 15px; height: 15px; }
.pager-link.next { text-align: right; }
.pager-link.next .pl-dir { justify-content: flex-end; }
.pager-link .pl-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; }
.pager-link:hover .pl-title { color: var(--primary); }

/* related stories */
.related { background: var(--bg-elev); border-top: 1px solid var(--line); margin-top: 72px; }

/* ============================================================
   COMMENTS — redesigned
   ============================================================ */
.comments-area { max-width: var(--reading); margin: 64px auto 0; padding-bottom: 20px; }
.comments-area .comments-title { font-size: clamp(24px, 3vw, 32px); display: flex; align-items: baseline; gap: 12px; }
.comments-area .comments-title .ct-count { font-family: var(--font-mono); font-size: 15px; color: var(--primary); }
.comment-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comment-list ol.children { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.comment-body { display: flex; gap: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.comment .avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-meta .fn { font-weight: 700; font-size: 15px; font-style: normal; }
.comment-meta .comment-author.bypostauthor .fn::after { content: "Author"; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary); padding: 2px 7px; border-radius: 99px; margin-left: 8px; }
.comment-meta time, .comment-metadata a { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.comment-content { color: var(--text-dim); line-height: 1.65; font-size: 15px; }
.comment-content p + p { margin-top: 0.8em; }
.comment .reply { margin-top: 12px; }
.comment .reply a, .comment-edit-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.comment .reply a:hover { color: var(--primary-700); }
.comment.pingback .comment-body, .comment.trackback .comment-body { font-size: 14px; }

.comment-respond { margin-top: 36px; padding: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.comment-respond .comment-reply-title { font-size: 22px; margin-bottom: 6px; }
.comment-respond .comment-reply-title small { font-family: var(--font-body); font-size: 13px; font-weight: 600; margin-left: 12px; }
.comment-respond .comment-reply-title small a { color: var(--primary); }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .comment-form-comment { grid-column: 1 / -1; }
.comment-form .comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.comment-form .form-submit { grid-column: 1 / -1; }
.comment-form label { font-size: 13px; font-weight: 600; color: var(--text-dim); display: block; margin-bottom: 7px; }

/* ---------- form fields (shared) ---------- */
.input, input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], textarea, select {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 13px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { line-height: 1.6; resize: vertical; min-height: 120px; }
::placeholder { color: var(--faint); }
.input:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-hero { padding: 56px 0 18px; }
.page-hero .container { max-width: 860px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.03em; }
.page-hero p { color: var(--text-dim); margin-top: 16px; font-size: 18px; max-width: 60ch; }
.page-content { max-width: var(--reading); margin: 24px auto 0; }

/* archive / search header */
.archive-hero { padding: 56px 0 12px; }
.archive-hero .container { max-width: 860px; }
.archive-hero .eyebrow { margin-bottom: 16px; }
.archive-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; }
.archive-hero .arc-desc { color: var(--text-dim); margin-top: 14px; font-size: 17px; max-width: 60ch; }
.archive-hero .arc-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ============================================================
   404 / EMPTY STATES
   ============================================================ */
.error-hero { padding: 80px 0 60px; text-align: center; }
.error-hero .ph-mark-404 { font-family: var(--font-display); font-size: clamp(120px, 22vw, 240px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; color: var(--primary); position: relative; display: inline-block; }
.error-hero .ph-mark-404::after { content: ""; position: absolute; inset: -10% -14%; background: radial-gradient(circle, var(--primary-soft), transparent 70%); z-index: -1; }
.error-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 18px; }
.error-hero p { color: var(--text-dim); font-size: 18px; margin: 16px auto 0; max-width: 52ch; }
.error-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-suggest { margin-top: 64px; }

.empty-state { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.empty-state .es-ic { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: var(--faint); }
.empty-state .es-ic svg { width: 38px; height: 38px; }
.empty-state h3 { font-size: 26px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 64px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; max-width: 320px; line-height: 1.6; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-grid h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a { color: var(--text-dim); font-size: 14.5px; transition: color .15s ease; }
.footer-grid ul a:hover { color: var(--amber); }
.footer-news p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.footer-news form { display: flex; gap: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom .fb-meta { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 12px 20px 12px 14px; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2,1.2,.4,1); }
.toast .ti { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast .ti svg { width: 17px; height: 17px; }
.toast .tt { font-weight: 600; font-size: 14px; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link { position: absolute; left: -9999px; }

/* ============================================================
   RESPONSIVE
   (Hero + product grid breakpoints live in shop.css to avoid
    conflicts. Only non-commerce layout rules live here.)
   ============================================================ */
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.lead { flex-direction: column; }
  .post-card.lead .pc-media { width: 100%; aspect-ratio: 16 / 9; }
}
@media (max-width: 820px) {
  /* Nav collapse — !important ensures it beats any other display rule */
  .nav { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
  .story-byline .by-share { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
  .story-pager { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-list ol.children { padding-left: 14px; }
  .author-box { flex-direction: column; }
}
