:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #0d0d0d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f1ea;
  --muted: #a8a29a;
  --dim: #77716a;
  --gold: #c0a080;
  --gold-soft: rgba(192, 160, 128, 0.1);
  --card-bg: #141210;
  --card-border: rgba(192, 160, 128, 0.2);
  --max: 1080px;
  --radius: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  --ease: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: #000000;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c49a6c;
}

nav {
  display: flex;
  gap: 18px;
  color: #f5f1ea;
  font-size: 14px;
}

nav a:hover,
.post-row h2 a:hover,
.read-link:hover,
.back-link:hover,
.related-links a:hover {
  color: var(--gold);
}

.blog-shell,
.article-shell,
.related-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.blog-hero,
.article-hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(24px, 6vw, 60px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.article-hero {
  padding-top: clamp(26px, 4vw, 52px);
  max-width: 870px;
}

.eyebrow,
.answer-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 20px;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

h1 {
  max-width: 900px;
  font-size: clamp(44px, 7vw, 80px);
  color: var(--text);
}

.blog-hero h1 {
  max-width: 800px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  color: #efe8df;
}

h2 {
  font-size: clamp(24px, 3.5vw, 38px);
}

.dek {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--dim);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  font-weight: 400;
}

.hero-media {
  width: min(100%, 980px);
  margin: 44px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-media img {
  transition: transform 600ms var(--ease);
}

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

.index-answer,
.answer-box {
  max-width: 860px;
  padding: clamp(22px, 3vw, 30px) clamp(24px, 3.4vw, 34px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.article-hero .answer-box {
  width: 100%;
  max-width: none;
  margin-top: 44px;
}

.article-hero .hero-media {
  width: 100%;
}

.index-answer {
  margin-top: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.index-answer .answer-label {
  margin-bottom: 6px;
}

.index-answer p,
.answer-box p {
  margin: 0;
}

.index-answer p:last-child,
.answer-box p:last-child {
  color: #ece3d7;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.62;
}

.post-list {
  padding: 48px 0 96px;
  max-width: 1080px;
  margin: 0 auto;
}

.post-row {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.post-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.post-row--no-thumb {
  grid-template-columns: minmax(0, 1fr) auto;
}

.post-row h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 38px);
}

.post-row p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.post-thumb {
  align-self: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color var(--ease);
}

.post-row:hover .post-thumb {
  border-color: rgba(192, 160, 128, 0.4);
}

.post-thumb img {
  filter: saturate(0.88);
  transition: filter 300ms ease, transform 300ms var(--ease);
}

.post-row:hover .post-thumb img {
  filter: saturate(1);
  transform: scale(1.04);
}

.read-link {
  align-self: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.article-grid {
  display: block;
  padding-bottom: 80px;
}

.article-context {
  padding-top: 26px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-context p {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-context ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.article-context li {
  padding: 6px 9px;
  color: #d8c7b5;
  background: var(--gold-soft);
  border: 1px solid rgba(192, 160, 128, 0.2);
  border-radius: 999px;
  font-size: 12px;
}

.article-body {
  max-width: 870px;
  margin: 0 auto;
}

.article-body section {
  padding-top: 26px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.article-body section.visual-block {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 38px);
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(192, 160, 128, 0.12), rgba(255, 255, 255, 0.025) 34%, rgba(255, 255, 255, 0.055)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 72px),
    #0f1012;
  border: 1px solid rgba(192, 160, 128, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-body section.visual-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #c0a080, rgba(192, 160, 128, 0.12), transparent 78%);
}

.article-body section.visual-block::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.32));
}

.visual-block > * {
  position: relative;
  z-index: 1;
}

.visual-block h2 {
  max-width: 650px;
  color: #fffaf2;
  font-size: clamp(29px, 4vw, 46px);
  letter-spacing: -0.025em;
}

.visual-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 4vw, 34px);
}

.visual-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 146px;
  padding: 20px;
  color: #eee5db;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(9, 10, 11, 0.74);
  border: 1px solid rgba(192, 160, 128, 0.24);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.35;
  transition: border-color var(--ease), transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.visual-node::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(192, 160, 128, 0.62), transparent);
}

.visual-node:hover {
  border-color: rgba(192, 160, 128, 0.52);
  background:
    linear-gradient(180deg, rgba(192, 160, 128, 0.1), rgba(255, 255, 255, 0.024)),
    rgba(13, 14, 15, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.visual-node span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.visual-node span::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(192, 160, 128, 0.48);
}

.article-body p {
  margin: 20px 0 0;
  color: #d7d1c8;
  font-size: 18px;
  line-height: 1.68;
}

.visual-block + section,
.article-body section.visual-block + section {
  border-top: none;
}

.faq-block {
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(192, 160, 128, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-block h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
}

.faq-block details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.42);
  overflow: hidden;
  transition: border-color var(--ease), background var(--ease);
}

.faq-block details + details {
  margin-top: 10px;
}

.faq-block summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  transition: color var(--ease);
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.faq-block summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--gold);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.faq-block summary:hover {
  color: var(--gold);
}

.faq-block details[open] {
  border-color: rgba(192, 160, 128, 0.32);
  background: rgba(16, 17, 19, 0.82);
}

.faq-block details[open] summary {
  color: var(--gold);
}

.faq-block details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(192, 160, 128, 0.12);
  border-color: rgba(192, 160, 128, 0.52);
}

.faq-block details p {
  padding: 0 20px 22px;
  margin: 0;
  color: #d7d1c8;
}

.related-shell {
  padding: 32px 0 96px;
  border-top: 1px solid var(--line);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-links a {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.related-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 160, 128, 0.4);
  background: #15161a;
}

.related-links span {
  display: block;
  margin: 18px 20px 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.related-links strong {
  display: block;
  padding: 0 20px 22px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.related-thumb {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d0e10;
}

.related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) brightness(0.86);
  transition: filter 400ms var(--ease-out), transform 600ms var(--ease-out);
}

.related-links a:hover .related-thumb img {
  filter: saturate(1) brightness(0.96);
  transform: scale(1.035);
}

@media (max-width: 760px) {
  .site-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .post-row,
  .article-grid,
  .related-links,
  .visual-flow {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    width: 100%;
  }

  .read-link {
    align-self: start;
  }
}

/* ==========================================================================
   Blog Index — Enhanced Styles
   ========================================================================== */

.post-list {
  display: grid;
  gap: 0;
}

/* Post row base */
.post-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  animation: post-reveal var(--ease-out) forwards;
}

@keyframes post-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

/* Regular post rows — alternating layout */
.post-row {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.post-row--flip {
  direction: rtl;
}

.post-row--flip .post-content,
.post-row--flip .post-thumb {
  direction: ltr;
}

.post-row--no-thumb {
  grid-template-columns: 1fr;
  justify-items: start;
}

.post-content {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.post-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 252px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color var(--ease), box-shadow var(--ease);
  box-shadow: var(--shadow);
}

.post-thumb img {
  filter: saturate(0.88) brightness(0.95);
  transition: filter 400ms var(--ease-out), transform 600ms var(--ease-out);
}

.post-row:hover .post-thumb {
  border-color: rgba(192, 160, 128, 0.35);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.post-row:hover .post-thumb img {
  filter: saturate(1) brightness(1);
  transform: scale(1.03);
}

@media (max-width: 760px) {
  .post-row {
    grid-template-columns: 1fr;
  }

  .post-row--flip {
    direction: ltr;
  }

  .post-thumb {
    width: 100%;
    min-height: 0;
  }
}

/* Category filter chips */
.category-filter {
  padding: 16px 0 24px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.filter-chip {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.filter-chip:hover {
  border-color: rgba(192, 160, 128, 0.4);
  color: var(--gold);
}

.filter-chip.active,
.filter-chip[aria-pressed="true"] {
  color: #000000;
  background: var(--gold);
  border-color: var(--gold);
}

.filter-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.post-row[hidden] {
  display: none;
}

/* Read link */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap var(--ease), color var(--ease);
}

.read-link:hover {
  gap: 14px;
  color: #e8d4b8;
}

.read-link span {
  transition: transform var(--ease-spring);
}

.read-link:hover span {
  transform: translateX(4px);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}

/* Staggered delay for post rows */
.post-row[style*="animation-delay"] {
  animation-fill-mode: both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .post-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .post-thumb img,
  .read-link span,
  .filter-chip {
    transition: none;
  }
  .scroll-indicator {
    display: none;
  }
}
