/* =============================================================
   THE LOST CREATIVE — Ghost Theme Stylesheet
   Brand: Warm analog, hopeful & redemptive
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@300;400&display=swap');

/* ── TOKENS ── */
:root {
  --ink:         #1c1a17;
  --ink-soft:    #3d3830;
  --warm-mid:    #7a6a55;
  --warm-light:  #b09a7e;
  --cream:       #f5f0e8;
  --cream-deep:  #ede5d5;
  --paper:       #faf7f2;
  --rust:        #b85c38;
  --rust-light:  #d4845f;
  --sage:        #7a8c6e;
  --gold:        #c9973a;
  --gold-light:  #e4be78;

  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Lora', Georgia, serif;
  --ff-mono:     'DM Mono', 'Courier New', monospace;

  --max-width:   720px;
  --wide-width:  1100px;
  --radius:      3px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── BASE ── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.75;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── RULED LINE BACKGROUND ── */
.ruled-bg {
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 38px,
    rgba(180,160,130,.1) 38px, rgba(180,160,130,.1) 39px
  );
}

/* =============================================================
   SITE HEADER / NAV
   ============================================================= */
.site-header {
  border-bottom: 1px solid var(--cream-deep);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; color: var(--rust); }
.site-logo span { color: var(--rust); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm-mid);
  transition: color .2s;
}
.site-nav a:hover { color: var(--rust); text-decoration: none; }

.nav-cta {
  background: var(--rust);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--rust-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

/* =============================================================
   HERO (Homepage)
   ============================================================= */
.site-hero {
  padding: 96px 32px 80px;
  max-width: var(--wide-width);
  margin: 0 auto;
  position: relative;
}

.hero-kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 24px;
  display: block;
}

.hero-headline {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .95;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 0;
}
.hero-headline em { color: var(--rust); font-style: italic; }

.hero-rule {
  width: 52px;
  height: 2px;
  background: var(--rust);
  margin: 32px 0;
}

.hero-description {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--warm-mid);
  max-width: 520px;
  line-height: 1.65;
}

/* =============================================================
   POST GRID
   ============================================================= */
.post-feed-section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 32px 96px;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm-mid);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-deep);
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Featured post — full width */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ── POST CARD ── */
.post-card {
  background: var(--cream-deep);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 2px 12px rgba(30,24,16,.07);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,24,16,.12);
}

.post-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #3a2e20 60%, var(--rust) 100%);
  position: relative;
}
.post-card.featured .post-card-image {
  aspect-ratio: auto;
  min-height: 320px;
}
.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 64px;
  color: rgba(255,255,255,.06);
  user-select: none;
}

.post-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.post-tag {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 3px 8px;
  border: 1px solid rgba(184,92,56,.3);
  border-radius: 2px;
}

.post-card-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color .2s;
}
.post-card:hover .post-card-title { color: var(--rust); }

.post-card-excerpt {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--warm-mid);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 24px;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(180,160,130,.2);
}

.post-card-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--warm-light);
  text-transform: uppercase;
}

.post-card-readmore {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--rust);
  border-bottom: 1px solid rgba(184,92,56,.3);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: border-color .2s;
}
.post-card-readmore:hover { border-color: var(--rust); text-decoration: none; }

/* =============================================================
   SINGLE POST
   ============================================================= */
.post-header {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 72px 32px 48px;
}

.post-header-tags { margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

.post-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  max-width: 820px;
}

.post-subtitle {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 20px;
  color: var(--warm-mid);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-deep);
  flex-shrink: 0;
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-author-info { display: flex; flex-direction: column; gap: 2px; }

.post-author-name {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.post-date-read {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warm-light);
}

.post-rule {
  width: 100%;
  height: 1px;
  background: var(--cream-deep);
  margin: 40px 0 0;
}

/* Feature image */
.post-feature-image {
  max-width: var(--wide-width);
  margin: 0 auto 64px;
  padding: 0 32px;
}
.post-feature-image img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 520px;
  object-fit: cover;
}

/* Post body content */
.post-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 96px;
}

.post-content p {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.post-content h2 {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin: 2.4em 0 .8em;
  line-height: 1.2;
}

.post-content h3 {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 2em 0 .6em;
}

.post-content h4 {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--warm-mid);
  margin: 1.8em 0 .6em;
}

.post-content a {
  color: var(--rust);
  border-bottom: 1px solid rgba(184,92,56,.3);
  transition: border-color .2s;
}
.post-content a:hover { border-color: var(--rust); text-decoration: none; }

.post-content blockquote {
  border-left: 3px solid var(--rust);
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.5;
}

.post-content blockquote p { font-size: 22px; color: var(--ink); margin-bottom: 0; }

.post-content code {
  font-family: var(--ff-mono);
  font-size: 14px;
  background: var(--cream-deep);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--rust);
}

.post-content pre {
  background: var(--ink);
  color: var(--cream);
  padding: 24px 28px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2em 0;
}
.post-content pre code { background: none; color: inherit; padding: 0; }

.post-content img {
  border-radius: var(--radius);
  margin: 2em auto;
}

.post-content figcaption {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--warm-light);
  text-align: center;
  margin-top: -1.2em;
  margin-bottom: 2em;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--cream-deep);
  margin: 3em auto;
  width: 80px;
}

.post-content ul, .post-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.6em;
}
.post-content li {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: .4em;
}

/* =============================================================
   POST FOOTER — Tags & Share
   ============================================================= */
.post-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 48px;
  border-top: 1px solid var(--cream-deep);
  padding-top: 40px;
}

.post-footer-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

/* =============================================================
   AUTHOR BOX
   ============================================================= */
.author-box {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  padding: 0 32px;
}

.author-box-inner {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-box-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 24px;
  color: var(--rust);
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box-meta { flex: 1; }

.author-box-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warm-light);
  margin-bottom: 6px;
  display: block;
}

.author-box-name {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.author-box-bio {
  font-family: var(--ff-body);
  font-size: 14px;
  font-style: italic;
  color: var(--warm-mid);
  line-height: 1.65;
}

/* =============================================================
   RELATED POSTS
   ============================================================= */
.related-posts {
  background: var(--cream-deep);
  padding: 64px 32px;
}

.related-posts-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.related-posts h2 {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm-mid);
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* =============================================================
   PAGINATION
   ============================================================= */
.pagination {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 32px 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pagination a, .pagination span {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warm-mid);
  padding: 10px 20px;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  transition: all .2s;
}
.pagination a:hover {
  border-color: var(--rust);
  color: var(--rust);
  text-decoration: none;
}
.pagination-info { color: var(--warm-light); border-color: transparent !important; }

/* =============================================================
   NEWSLETTER / SUBSCRIBE
   ============================================================= */
.subscribe-section {
  background: var(--ink);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 38px,
    rgba(255,255,255,.04) 38px, rgba(255,255,255,.04) 39px
  );
  pointer-events: none;
}

.subscribe-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.subscribe-kicker {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 20px;
}

.subscribe-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 16px;
}

.subscribe-desc {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 16px;
  color: var(--warm-light);
  line-height: 1.65;
  margin-bottom: 36px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--cream);
  outline: none;
  transition: border-color .2s;
}
.subscribe-input::placeholder { color: var(--warm-mid); }
.subscribe-input:focus { border-color: var(--rust); }

.subscribe-btn {
  background: var(--rust);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.subscribe-btn:hover { background: var(--rust-light); }

/* =============================================================
   TAG / ARCHIVE PAGE
   ============================================================= */
.tag-header {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 72px 32px 48px;
  border-bottom: 1px solid var(--cream-deep);
  margin-bottom: 64px;
}

.tag-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm-light);
  display: block;
  margin-bottom: 12px;
}

.tag-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.1;
}

.tag-description {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 17px;
  color: var(--warm-mid);
  max-width: 520px;
  line-height: 1.65;
}

/* =============================================================
   SITE FOOTER
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--cream-deep);
  padding: 48px 32px;
}

.site-footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  color: var(--warm-mid);
  letter-spacing: -.01em;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm-light);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--rust); text-decoration: none; }

.footer-copy {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--warm-light);
  opacity: .6;
}

/* =============================================================
   GHOST KOENIG CARD STYLES (required)
   ============================================================= */

/* Required width classes */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 2em calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  margin: 2em calc(50% - 50vw);
}

/* Card base */
.kg-card { margin: 2em 0; }

/* Image card */
.kg-image-card img { width: 100%; border-radius: var(--radius); }
.kg-image-card figcaption {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--warm-light);
  text-align: center;
  margin-top: 10px;
}

/* Gallery card */
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Bookmark card */
.kg-bookmark-card { border: 1px solid var(--cream-deep); border-radius: var(--radius); overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: 20px 24px; flex: 1; }
.kg-bookmark-title { font-family: var(--ff-display); font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.kg-bookmark-description { font-family: var(--ff-body); font-size: 13px; color: var(--warm-mid); font-style: italic; margin-bottom: 12px; }
.kg-bookmark-metadata { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; color: var(--warm-light); text-transform: uppercase; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Embed / video card */
.kg-embed-card { display: flex; justify-content: center; }
.kg-embed-card iframe { max-width: 100%; border-radius: var(--radius); }

/* Video card */
.kg-video-card video { width: 100%; border-radius: var(--radius); }

/* Audio card */
.kg-audio-card audio { width: 100%; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 16px;
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2em 0;
}
.kg-callout-emoji { font-size: 24px; flex-shrink: 0; }
.kg-callout-text { font-family: var(--ff-body); font-size: 16px; color: var(--ink-soft); line-height: 1.7; }

/* Toggle card */
.kg-toggle-card { border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 20px 24px; }
.kg-toggle-heading { font-family: var(--ff-display); font-size: 18px; font-weight: 500; color: var(--ink); cursor: pointer; }
.kg-toggle-content { font-family: var(--ff-body); font-size: 16px; color: var(--ink-soft); margin-top: 12px; }

/* Button card */
.kg-btn-accent {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.kg-btn-accent:hover { background: var(--rust-light); }

/* Product card */
.kg-product-card { border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 24px; }
.kg-product-card-image img { width: 100%; border-radius: var(--radius); margin-bottom: 16px; }
.kg-product-card-title { font-family: var(--ff-display); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.kg-product-card-description { font-family: var(--ff-body); color: var(--warm-mid); font-style: italic; }

/* Header card */
.kg-header-card {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 40px;
  text-align: center;
  border-radius: var(--radius);
}
.kg-header-card-header { font-family: var(--ff-display); font-style: italic; font-size: 40px; margin-bottom: 16px; }
.kg-header-card-subheader { font-family: var(--ff-body); font-style: italic; color: var(--warm-light); }

/* NFT card */
.kg-nft-card { border: 1px solid var(--cream-deep); border-radius: var(--radius); overflow: hidden; }

/* =============================================================
   ERROR / 404
   ============================================================= */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
}

.error-code {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 120px;
  color: var(--cream-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.error-title {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.error-desc {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 16px;
  color: var(--warm-mid);
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background .2s;
}
.btn-primary:hover { background: var(--rust-light); text-decoration: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .site-header-inner { padding: 0 20px; }

  .site-nav { display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--cream-deep); padding: 20px;
    gap: 16px; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .site-hero, .post-feed-section, .post-header,
  .post-content, .author-box, .post-footer,
  .pagination, .tag-header { padding-left: 20px; padding-right: 20px; }

  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-card-image { min-height: 220px; }

  .subscribe-form { flex-direction: column; }

  .site-footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }

  .author-box-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .post-feed { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
