/* ===========================================
   Keith Clinkscales Theme — main.css
   =========================================== */

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

:root {
  --ink: #0e0c09;
  --cream: #f5f0e8;
  --gold: #c9a84c;
  --gold-light: #e8d48a;
  --rust: #8b3a2f;
  --muted: #6b6457;
  --line: rgba(14,12,9,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NOISE TEXTURE OVERLAY ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ---- NAV ---- */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 3rem;
  z-index: 100;
  mix-blend-mode: multiply;
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}
.nav-logo img { height: 40px; width: auto; opacity: 0.8; }

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.nav-links a:hover { opacity: 1; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: 8rem 3rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-name span {
  font-style: italic;
  color: var(--rust);
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
  transition: gap 0.3s;
}
.hero-cta:hover { gap: 1.6rem; }
.hero-cta::after { content: '→'; }

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-panel {
  position: absolute; inset: 0;
  background: var(--ink);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-vertical-text {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  white-space: nowrap;
}

.hero-number {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 16%; right: 0;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.stat {
  flex: 1;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ---- TICKER ---- */
.ticker {
  background: var(--ink);
  padding: 0.8rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 3rem;
  white-space: nowrap;
}
.ticker-item.accent { color: var(--gold); }

/* ---- DIVIDER ---- */
.divider {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 4rem 3rem 1rem;
}
.divider-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.divider-line { flex: 1; height: 1px; background: var(--line); }

/* ---- ABOUT ---- */
#about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 4rem 3rem 6rem;
}

.about-left { position: relative; }

.about-photo-frame {
  aspect-ratio: 3/4;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.about-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--gold) 60.5%, var(--gold) 62%, transparent 62.5%);
  opacity: 0.15;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1714 0%, #2d2720 60%, #1a1714 100%);
  position: relative;
  aspect-ratio: 3/4;
}

.photo-placeholder-text {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(201,168,76,0.12);
  letter-spacing: -0.05em;
  text-align: center;
  line-height: 1;
  font-style: italic;
}

.about-frame-accent {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 60%; height: 60%;
  border: 2px solid var(--gold);
  opacity: 0.3;
  z-index: -1;
}

.about-right {
  display: flex; flex-direction: column; justify-content: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--rust);
}

.about-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
}

.about-body p + p { margin-top: 1.2rem; }

.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 1rem 2rem;
  margin: 2.5rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

/* ---- MILESTONES ---- */
#milestones {
  background: var(--ink);
  padding: 6rem 3rem;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

#milestones::before {
  content: 'LEGACY';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.milestones-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem;
}

.milestones-header .section-title { color: var(--cream); margin-bottom: 0; }

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.milestone-card {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}
.milestone-card:hover { background: rgba(255,255,255,0.03); }
.milestone-card:nth-child(3n) { border-right: none; }

.milestone-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.milestone-org {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.milestone-role {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.milestone-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  font-weight: 300;
}
.milestone-desc p { margin: 0; }

/* ---- VENTURES ---- */
#ventures { padding: 6rem 3rem; }

.ventures-intro {
  max-width: 60%;
  margin-bottom: 4rem;
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--line);
}

.venture-card {
  background: var(--cream);
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.venture-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.venture-card:hover::before { transform: scaleX(1); }
.venture-card:hover { background: #f0ebe0; }

.venture-type {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.venture-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0 0.5rem;
}

.venture-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
  margin-top: 1rem;
}
.venture-desc p { margin: 0; }

.venture-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: letter-spacing 0.3s;
}
.venture-card:hover .venture-arrow { letter-spacing: 0.2em; }
.venture-arrow::after { content: ' →'; }

/* ---- ACCOLADES ---- */
#accolades {
  background: linear-gradient(135deg, #1a1714 0%, #0e0c09 100%);
  padding: 6rem 3rem;
  position: relative;
}

#accolades .section-title { color: var(--cream); }

.accolades-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.accolade-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1.2rem;
  transition: all 0.25s;
}
.accolade-tag:hover { color: var(--gold); border-color: var(--gold); }
.accolade-tag.featured {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ---- CONTACT ---- */
#contact {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-left .section-title { margin-bottom: 1.5rem; }

.contact-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.5;
}

.contact-meta a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
.contact-meta a:hover { border-color: var(--gold); }

.contact-form {
  display: flex; flex-direction: column; gap: 1.5rem;
}

.form-field {
  display: flex; flex-direction: column; gap: 0.5rem;
}

.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input, .form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: none; height: 100px; }

.form-submit {
  display: inline-flex; align-items: center; gap: 1rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 1rem 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, gap 0.25s;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--rust); gap: 1.5rem; }
.form-submit::after { content: '→'; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

#ktc-form-msg.success {
  background: rgba(201,168,76,0.1);
  color: var(--ink);
  border-left: 3px solid var(--gold);
}
#ktc-form-msg.error {
  background: rgba(139,58,47,0.08);
  color: var(--rust);
  border-left: 3px solid var(--rust);
}

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  font-style: italic;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  nav#site-nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 7rem 1.5rem 3rem; }
  .hero-right { height: 300px; }
  .hero-panel { clip-path: none; }
  .hero-stats { left: 0; }
  #about { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .about-left { max-width: 280px; }
  .ventures-intro { max-width: 100%; }
  .ventures-grid { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: 1fr; }
  .milestone-card { border-right: none; }
  #contact { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  #milestones, #ventures, #accolades { padding: 4rem 1.5rem; }
  .divider { padding: 3rem 1.5rem 0; }
  footer { flex-direction: column; gap: 0.8rem; padding: 1.5rem; text-align: center; }
}

/* ===========================================
   INNER PAGE STYLES
   (single.php, page.php, archive.php, etc.)
   =========================================== */

/* ---- Inner page shared layout ---- */
.inner-main {
  padding-top: 80px; /* clear fixed nav */
  min-height: 100vh;
}

/* ---- Inner Hero ---- */
.inner-hero {
  background: var(--ink);
  padding: 5rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.inner-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.inner-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}

.inner-eyebrow a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.inner-eyebrow a:hover { opacity: 0.7; }

.inner-eyebrow-sep { margin: 0 0.6rem; }

.inner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.inner-title em {
  font-style: italic;
  color: var(--gold);
}

.inner-excerpt {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* ---- Post Meta Bar ---- */
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

.post-author { color: var(--gold); }

/* ---- Featured Image ---- */
.post-featured-image {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #1a1714;
}
.post-featured-image .post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 520px;
}

/* ---- Post / Page Content Layout ---- */
.post-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem 5rem;
}

.page-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 3rem 5rem;
}

/* ---- Sidebar ---- */
.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-block {
  margin-bottom: 2.5rem;
}

.sidebar-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.share-link {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.share-link:hover { color: var(--rust); border-color: var(--rust); }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sidebar-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar-tag:hover { border-color: var(--gold); color: var(--ink); }

/* ---- Entry Content (post & page body) ---- */
.entry-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #2a2520;
}

.entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
}

.entry-content h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

.entry-content p { margin-bottom: 1.4rem; }

.entry-content a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(139,58,47,0.25);
  transition: border-color 0.2s;
}
.entry-content a:hover { border-color: var(--rust); }

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 2rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  background: rgba(201,168,76,0.04);
}

.entry-content blockquote cite {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
  margin-top: 0.8rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4rem 1.5rem;
}

.entry-content li { margin-bottom: 0.4rem; }

.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

.entry-content figure {
  margin: 2rem 0;
}

.entry-content figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.entry-content code {
  font-family: 'DM Mono', monospace;
  font-size: 0.85em;
  background: rgba(14,12,9,0.06);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}

.entry-content pre {
  background: var(--ink);
  color: var(--cream);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}
.entry-content th {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.entry-content td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
}

/* ---- Post Navigation ---- */
.post-nav {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}
.post-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  max-width: 44%;
}
.post-nav-next { text-align: right; }

.post-nav-direction {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.2s;
}
.post-nav-link:hover .post-nav-title { color: var(--rust); }

/* ---- Archive Grid ---- */
.archive-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem 5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ---- Post Card ---- */
.post-card {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.post-card-link { display: block; }

.post-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 1.2rem;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1714, #2d2720);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  color: rgba(201,168,76,0.2);
  aspect-ratio: 16/10;
}

.post-card-body { display: flex; flex-direction: column; flex: 1; }

.post-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.post-card-cat {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.post-card-cat:hover { opacity: 0.7; }
.post-card-sep { margin: 0 0.4rem; }
.post-card-date { color: var(--muted); }

.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.post-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card-title a:hover { color: var(--rust); }

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-read {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  width: fit-content;
  transition: gap 0.25s;
}
.post-card-read::after { content: '→'; }
.post-card:hover .post-card-read { gap: 0.8rem; }

/* ---- Pagination ---- */
.archive-pagination { margin-top: 4rem; }

.archive-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.archive-pagination .page-numbers {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ---- Related Posts ---- */
.related-posts { background: #f0ebe0; }
.related-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-card {
  text-decoration: none;
  display: block;
}
.related-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 1rem;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: rgba(201,168,76,0.2);
}
.related-card-body {}
.related-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}
.related-card:hover .related-title { color: var(--rust); }
.related-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---- Comments ---- */
.comments-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
  border-top: 1px solid var(--line);
}
.comments-area { }
.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.comment-list { list-style: none; padding: 0; }
.ktc-comment { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.ktc-comment:last-child { border-bottom: none; }

.comment-body-wrap { display: flex; gap: 1.2rem; }
.comment-avatar img { border-radius: 50%; width: 48px; height: 48px; flex-shrink: 0; }
.comment-content { flex: 1; }
.comment-meta {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.comment-author {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.comment-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.comment-reply-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.comment-text { font-size: 1rem; line-height: 1.7; color: #2a2520; }
.comment-text p { margin-bottom: 0.6rem; }
.comment-awaiting-moderation {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Comment form overrides */
.comment-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.comment-form p { margin: 0; }
.comment-form-comment { order: -1; }
.required { color: var(--rust); }
.comment-notes {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- Search Form ---- */
.search-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 3rem;
}
.search-form-inner {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}
.search-input {
  flex: 1;
  border: none;
  border-bottom: none;
  font-size: 1.2rem;
}
.search-submit {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.search-submit:hover { color: var(--gold); }

.error-search {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* ---- 404 ---- */
.error-hero .error-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  position: absolute;
  top: 50%;
  right: 3rem;
  transform: translateY(-50%);
  pointer-events: none;
  letter-spacing: -0.04em;
}

/* ---- No Results ---- */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--muted);
}
.no-results p { margin-bottom: 1.5rem; }

/* ---- Responsive inner pages ---- */
@media (max-width: 900px) {
  .inner-hero { padding: 4rem 1.5rem 3rem; }
  .post-layout { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .post-sidebar { position: static; display: flex; gap: 2rem; flex-wrap: wrap; }
  .page-content-wrap { padding: 3rem 1.5rem; }
  .archive-wrap { padding: 3rem 1.5rem; }
  .archive-grid { grid-template-columns: 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-posts-inner { padding: 3rem 1.5rem; }
  .comments-wrap { padding: 2rem 1.5rem 4rem; }
  .post-nav-inner { padding: 0 1.5rem; flex-direction: column; }
  .post-nav-link { max-width: 100%; }
  .post-nav-next { text-align: left; }
  .search-form-wrap { padding: 2rem 1.5rem; }
  .error-hero .error-number { display: none; }
}
