/* ============================================================
   MAISON CACHÉ — Ghost Theme Stylesheet
   Warm candlelit hearthcraft design system
   ============================================================ */

/* ——— 1. CSS Custom Properties ——— */
:root {
  /* Core palette */
  --bg:        #16110d;
  --bg-2:      #1e1812;
  --plum:      #2a1520;
  --amber:     #c4935a;
  --amber-lt:  #d4a96a;
  --teal:      #3d5b50;
  --rose:      #8a3040;
  --cream:     #d8cfc0;
  --cream-dim: #b0a090;
  --mist:      rgba(216,207,192,0.08);
  --mist-2:    rgba(216,207,192,0.04);

  /* Typography */
  --font-display:  'Cinzel', 'Palatino Linotype', serif;
  --font-body:     'EB Garamond', 'Garamond', Georgia, serif;
  --font-accent:   'IM Fell English', 'Palatino Linotype', serif;
  --font-sub:      'Cormorant Garamond', 'Garamond', Georgia, serif;

  /* Spacing */
  --space-xs:   0.4rem;
  --space-sm:   0.8rem;
  --space-md:   1.6rem;
  --space-lg:   3.2rem;
  --space-xl:   6rem;
  --space-2xl:  10rem;

  /* Borders */
  --border:     1px solid rgba(216,207,192,0.12);
  --border-lt:  1px solid rgba(216,207,192,0.06);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --duration:   0.3s;

  /* Layout */
  --max-width:  1200px;
  --post-width: 720px;
  --radius:     2px;
}

/* ——— 2. Reset & Base ——— */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.8rem;
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--bg);
  cursor: crosshair;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Restore pointer cursor on interactive elements */
a, button, label, select, [role="button"] {
  cursor: crosshair;
}

a {
  color: var(--amber-lt);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ——— 3. Atmospheric Layers ——— */

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  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");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.055;
  mix-blend-mode: overlay;
}

/* Vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(22,17,13,0.7) 100%
  );
}

/* Ember canvas */
#ember-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* ——— 4. Site Wrapper ——— */
.site-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ——— 5. Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(22,17,13,0.95) 0%,
    rgba(22,17,13,0.0) 100%
  );
  padding: 2rem 0 3rem;
  transition: background var(--duration) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(22,17,13,0.97);
  padding: 1.4rem 0;
  border-bottom: var(--border-lt);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav--left { justify-content: flex-start; }
.site-nav--right { justify-content: flex-end; }

/* Ghost's {{navigation}} helper renders a ul directly — target it */
.site-nav ul,
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.2rem;
  margin: 0;
  padding: 0;
}

.site-nav ul li,
.nav-list li {
  list-style: none;
}

.site-nav ul li a,
.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216,207,192,0.65);
  text-decoration: none;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.site-nav ul li a::after,
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.site-nav ul li a:hover,
.site-nav ul li.nav-current a,
.nav-link:hover,
.nav-link--active {
  color: var(--cream);
}

.site-nav ul li a:hover::after,
.site-nav ul li.nav-current a::after,
.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-maison {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
}

.logo-cache {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: crosshair;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all var(--duration) var(--ease);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(22,17,13,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__inner {
  text-align: center;
}

/* Ghost's {{navigation}} helper inside mobile nav */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  text-align: center;
}

.mobile-nav ul li {
  margin-bottom: 2.4rem;
}

.mobile-nav ul li a {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.mobile-nav ul li a:hover {
  color: var(--amber);
}

/* ——— 6. House Status Whisper ——— */
.house-status {
  position: fixed;
  bottom: 2.4rem;
  right: 2.4rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.45;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.house-status:hover {
  opacity: 0.8;
}

.house-status__sigil {
  font-size: 0.7rem;
  color: var(--amber);
  animation: pulse 4s ease-in-out infinite;
}

.house-status__text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ——— 7. Hero / Intro ——— */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 60rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22,17,13,0.4) 0%,
    rgba(22,17,13,0.7) 60%,
    rgba(22,17,13,0.96) 100%
  );
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 3rem;
}

.home-hero__sigil {
  font-size: 1.6rem;
  color: var(--amber);
  margin-bottom: 2rem;
  animation: pulse 4s ease-in-out infinite;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.home-hero__description {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--cream-dim);
  letter-spacing: 0.06em;
  max-width: 56rem;
  margin: 0 auto;
}

/* Intro (no cover image) */
.home-intro {
  padding: 18rem 3rem 10rem;
  text-align: center;
  position: relative;
}

.home-intro__inner { max-width: var(--max-width); margin: 0 auto; }

.home-intro__sigil {
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 2.4rem;
  display: block;
  animation: pulse 4s ease-in-out infinite;
}

.home-intro__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.home-intro__description {
  font-family: var(--font-accent);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}

/* ——— 8. Post Feed ——— */
.post-feed-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.post-feed-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.feed-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.feed-header__sigil {
  font-size: 1.2rem;
  color: var(--amber);
  margin-bottom: 1.6rem;
  animation: pulse 4s ease-in-out infinite;
}

.feed-header__title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.feed-header__description {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--cream-dim);
}

.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
  gap: 3.2rem;
}

/* ——— 9. Post Card ——— */
.post-card {
  display: flex;
  flex-direction: column;
  border: var(--border-lt);
  background: var(--mist-2);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), background var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,147,90,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.post-card:hover {
  border-color: rgba(196,147,90,0.3);
  background: var(--mist);
  transform: translateY(-2px);
}

.post-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-card__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__image {
  transform: scale(1.04);
}

.post-card__content {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  margin-bottom: 1.2rem;
  display: block;
  transition: color var(--duration) var(--ease);
}

.post-card__tag:hover {
  color: var(--amber-lt);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.post-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.post-card__title-link:hover {
  color: var(--amber-lt);
}

.post-card__excerpt {
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--cream-dim);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.6rem;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: var(--border-lt);
}

.post-card__date,
.post-card__reading-time {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(216,207,192,0.4);
}

/* ——— 10. Pagination ——— */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border-lt);
}

.pagination a,
.pagination .page-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: var(--border);
  transition: all var(--duration) var(--ease);
}

.pagination a:hover {
  color: var(--cream);
  border-color: var(--amber);
  background: rgba(196,147,90,0.08);
}

.pagination .page-number {
  border-color: transparent;
  color: rgba(216,207,192,0.4);
}

/* ——— 11. Single Post ——— */

/* Hero with image */
.post-full__hero {
  position: relative;
  height: 70vh;
  min-height: 50rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.post-full__hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.post-full:hover .post-full__hero-image {
  transform: scale(1.03);
}

.post-full__hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22,17,13,0.2) 0%,
    rgba(22,17,13,0.85) 70%,
    rgba(22,17,13,0.98) 100%
  );
}

.post-full__hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 3rem;
  max-width: var(--post-width);
  margin: 0 auto;
  width: 100%;
}

/* Header (no image) */
.post-full__header {
  padding: 18rem 3rem 6rem;
  text-align: center;
}

.post-full__header-inner {
  max-width: var(--post-width);
  margin: 0 auto;
}

.post-full__tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.6rem;
  transition: color var(--duration) var(--ease);
}

.post-full__tag:hover {
  color: var(--amber-lt);
}

.post-full__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.post-full__excerpt {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

.post-full__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.post-full__header .post-full__meta {
  justify-content: center;
}

.post-full__date,
.post-full__reading-time {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216,207,192,0.45);
}

.post-full__sep {
  color: rgba(216,207,192,0.25);
}

/* Post body */
.post-full__content {
  padding: 6rem 3rem 8rem;
}

.post-full__body {
  max-width: var(--post-width);
  margin: 0 auto;
}

/* ——— 12. Ghost Content (gh-content) ——— */
.gh-content {
  font-family: var(--font-body);
  font-size: 1.9rem;
  line-height: 1.85;
  color: rgba(216,207,192,0.88);
}

.gh-content > * + * {
  margin-top: 2.4rem;
}

.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  letter-spacing: 0.06em;
  margin-top: 5.6rem;
  margin-bottom: 1.6rem;
}

.gh-content h1 { font-size: 4rem; }
.gh-content h2 { font-size: 3.2rem; }
.gh-content h3 { font-size: 2.6rem; }
.gh-content h4 { font-size: 2.2rem; }
.gh-content h5 { font-size: 1.9rem; }
.gh-content h6 { font-size: 1.7rem; }

.gh-content p { margin-bottom: 1.6rem; }

.gh-content a {
  color: var(--amber-lt);
  text-decoration: underline;
  text-decoration-color: rgba(212,169,106,0.3);
  transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}

.gh-content a:hover {
  color: var(--cream);
  text-decoration-color: rgba(216,207,192,0.4);
}

.gh-content strong { color: var(--cream); font-weight: 600; }
.gh-content em { font-style: italic; color: var(--cream-dim); }

.gh-content ul,
.gh-content ol {
  padding-left: 2.4rem;
}

.gh-content li { margin-bottom: 0.8rem; }

.gh-content blockquote {
  border-left: 2px solid var(--amber);
  margin: 4rem 0;
  padding: 0.8rem 0 0.8rem 2.4rem;
}

.gh-content blockquote p {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 0;
}

.gh-content hr {
  border: none;
  border-top: var(--border);
  margin: 5.6rem auto;
  width: 40%;
  position: relative;
}

.gh-content hr::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 1.2rem;
  color: var(--amber);
  font-size: 0.9rem;
}

.gh-content img {
  width: 100%;
  height: auto;
  margin: 4rem 0;
}

.gh-content figure {
  margin: 4rem 0;
}

.gh-content figcaption {
  text-align: center;
  font-size: 1.4rem;
  color: rgba(216,207,192,0.4);
  font-style: italic;
  margin-top: 1rem;
  font-family: var(--font-accent);
}

/* Code */
.gh-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  background: rgba(216,207,192,0.06);
  border: var(--border-lt);
  padding: 0.2em 0.5em;
  border-radius: var(--radius);
  color: var(--amber-lt);
}

.gh-content pre {
  background: rgba(30,24,18,0.8);
  border: var(--border-lt);
  padding: 2.4rem;
  overflow-x: auto;
  margin: 3.2rem 0;
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--cream-dim);
}

/* Tables */
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 3.2rem 0;
  font-size: 1.6rem;
}

.gh-content th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(216,207,192,0.2);
  text-align: left;
}

.gh-content td {
  padding: 1.2rem 1.6rem;
  border-bottom: var(--border-lt);
  color: var(--cream-dim);
}

/* Ghost Cards */
.gh-content .kg-card {
  margin: 4rem 0;
}

/* ——— Required Koenig width classes ——— */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 0 auto;
  transform: translateX(calc(50% - 50vw * 0.85));
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
  width: 100%;
  height: auto;
}

.gh-content .kg-image-card img {
  width: 100%;
}

.gh-content .kg-gallery-card .kg-gallery-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gh-content .kg-gallery-image {
  flex: 1 1 200px;
  overflow: hidden;
}

.gh-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-content .kg-bookmark-card {
  border: var(--border);
  background: var(--mist-2);
  padding: 2rem;
  display: flex;
  gap: 1.6rem;
  transition: background var(--duration) var(--ease);
}

.gh-content .kg-bookmark-card:hover {
  background: var(--mist);
}

.gh-content .kg-bookmark-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.gh-content .kg-bookmark-description {
  font-size: 1.4rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

.gh-content .kg-callout-card {
  background: rgba(196,147,90,0.08);
  border-left: 3px solid var(--amber);
  padding: 2rem 2.4rem;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}

.gh-content .kg-callout-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.gh-content .kg-callout-text {
  font-size: 1.7rem;
  color: var(--cream-dim);
  line-height: 1.65;
}

/* Toggle cards */
.gh-content .kg-toggle-card {
  border: var(--border-lt);
  padding: 1.6rem 2rem;
}

.gh-content .kg-toggle-heading-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

/* Dividers */
.gh-content .kg-divider-card {
  border: none;
  border-top: var(--border);
  margin: 4rem 0;
}

/* Audio */
.gh-content .kg-audio-card {
  background: var(--mist-2);
  border: var(--border-lt);
  padding: 1.6rem;
}

/* ——— 13. Post Footer ——— */
.post-full__footer {
  max-width: var(--post-width);
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.post-full__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.post-full__tag-pill {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: var(--border-lt);
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.post-full__tag-pill:hover {
  color: var(--amber);
  border-color: rgba(196,147,90,0.3);
}

/* ——— 14. Paywall ——— */
.post-paywall {
  max-width: var(--post-width);
  margin: 0 auto;
  padding: 6rem 3rem;
  text-align: center;
}

.post-paywall__inner {
  border: var(--border);
  padding: 5.6rem 4rem;
  background: var(--mist-2);
  position: relative;
}

.post-paywall__sigil {
  font-size: 2rem;
  color: var(--amber);
  margin-bottom: 2.4rem;
  animation: pulse 4s ease-in-out infinite;
}

.post-paywall__title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.post-paywall__text {
  font-family: var(--font-accent);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--cream-dim);
  margin-bottom: 3.2rem;
}

.post-paywall__signin {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  color: rgba(216,207,192,0.45);
}

.post-paywall__link {
  color: var(--amber);
}

/* ——— 15. Buttons ——— */
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  padding: 1.2rem 3.2rem;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--amber);
  cursor: crosshair;
}

.btn-primary:hover {
  background: var(--amber-lt);
  border-color: var(--amber-lt);
  color: var(--bg);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  padding: 1.2rem 3.2rem;
  text-decoration: none;
  border: var(--border);
  transition: all var(--duration) var(--ease);
  cursor: crosshair;
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-return {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(216,207,192,0.2);
  padding-bottom: 2px;
  transition: all var(--duration) var(--ease);
}

.btn-return:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ——— 16. Post Navigation ——— */
.post-navigation {
  border-top: var(--border-lt);
  margin-top: 6rem;
}

.post-navigation__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
}

.post-navigation__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 2.4rem;
  border: var(--border-lt);
  background: var(--mist-2);
  transition: all var(--duration) var(--ease);
}

.post-navigation__link:hover {
  border-color: rgba(196,147,90,0.3);
  background: var(--mist);
}

.post-navigation__link--next {
  text-align: right;
}

.post-navigation__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.8rem;
}

.post-navigation__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.3;
}

/* ——— 17. Page Full ——— */
.page-full__header {
  padding: 18rem 3rem 6rem;
  text-align: center;
}

.page-full__header-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.page-full__sigil {
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 2rem;
  display: block;
  animation: pulse 4s ease-in-out infinite;
}

.page-full__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1.6rem;
}

.page-full__excerpt {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.6;
}

.page-full__image-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  margin-bottom: 4rem;
}

.page-full__image {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.page-full__content {
  padding: 4rem 3rem 10rem;
}

.page-full__body {
  max-width: var(--post-width);
  margin: 0 auto;
}

/* ——— 18. Tag Archive ——— */
.tag-archive__header {
  position: relative;
  padding: 18rem 3rem 6rem;
  text-align: center;
  overflow: hidden;
}

.tag-archive__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.tag-archive__header-content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
}

.tag-archive__sigil {
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 2rem;
  animation: pulse 4s ease-in-out infinite;
}

.tag-archive__title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.2rem;
}

.tag-archive__description {
  font-family: var(--font-accent);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--cream-dim);
  margin-bottom: 1.6rem;
}

.tag-archive__count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216,207,192,0.35);
}

/* ——— 19. Author Archive ——— */
.author-archive__header {
  padding: 16rem 3rem 6rem;
  text-align: center;
}

.author-archive__header-inner {
  max-width: 60rem;
  margin: 0 auto;
}

.author-archive__avatar-wrap {
  width: 9.6rem;
  height: 9.6rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2.4rem;
  border: var(--border);
}

.author-archive__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-archive__avatar-placeholder {
  font-size: 3.2rem;
  color: var(--amber);
  margin-bottom: 2.4rem;
  animation: pulse 4s ease-in-out infinite;
}

.author-archive__name {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.author-archive__bio {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.author-archive__link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ——— 20. Error Page ——— */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.error-container {
  max-width: 56rem;
}

.error-sigil {
  font-size: 2.4rem;
  color: var(--amber);
  margin-bottom: 2.4rem;
  animation: pulse 4s ease-in-out infinite;
}

.error-code {
  font-family: var(--font-display);
  font-size: 10rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(216,207,192,0.08);
  line-height: 1;
  margin-bottom: 2.4rem;
}

.error-message {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.65;
  margin-bottom: 4rem;
}

/* ——— 21. Footer ——— */
.site-footer {
  margin-top: var(--space-2xl);
  border-top: var(--border-lt);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-start: start;
}

.footer-wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  margin-bottom: 1.6rem;
}

.footer-wordmark__maison {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-wordmark__cache {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber);
  font-style: italic;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(216,207,192,0.4);
  line-height: 1.6;
}

.footer-nav__list {
  list-style: none;
}

.footer-nav__item {
  margin-bottom: 1.2rem;
}

.footer-nav__link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216,207,192,0.5);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-nav__link:hover {
  color: var(--amber);
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.6rem;
}

.footer-social__link {
  color: rgba(216,207,192,0.35);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  display: block;
}

.footer-social__link:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) 3rem 0;
  border-top: var(--border-lt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216,207,192,0.25);
}

.footer-copy__link {
  color: rgba(216,207,192,0.35);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-copy__link:hover {
  color: var(--amber);
}

.footer-sigil {
  font-size: 0.8rem;
  color: rgba(196,147,90,0.3);
  animation: pulse 4s ease-in-out infinite;
}

/* ——— 22. Ghost Portal overrides ——— */
.gh-portal-popup-wrapper {
  font-family: var(--font-body) !important;
}

/* ——— 23. Ghost Subscribe form ——— */
.gh-subscribe-form {
  display: flex;
  gap: 1.2rem;
  max-width: 44rem;
  margin: 2.4rem auto 0;
}

.gh-subscribe-input {
  flex: 1;
  background: rgba(216,207,192,0.05);
  border: var(--border);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.6rem;
  padding: 1.2rem 1.6rem;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.gh-subscribe-input:focus {
  border-color: var(--amber);
}

.gh-subscribe-input::placeholder {
  color: rgba(216,207,192,0.3);
}

/* ——— 24. Comments ——— */
.post-comments {
  max-width: var(--post-width);
  margin: 0 auto;
  padding: 0 3rem var(--space-xl);
  border-top: var(--border-lt);
  padding-top: 4rem;
}

/* ——— 25. Selection ——— */
::selection {
  background: rgba(196,147,90,0.25);
  color: var(--cream);
}

/* ——— 26. Scrollbar ——— */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(196,147,90,0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(196,147,90,0.6);
}

/* ——— 27. Utility reveal animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* ——— 28. Responsive ——— */
@media (max-width: 960px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav--left,
  .site-nav--right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-social {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .post-navigation__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html { font-size: 58%; }

  .home-hero { height: 80vh; }

  .post-full__hero {
    height: 55vh;
    min-height: 38rem;
  }

  .post-full__header {
    padding: 14rem 2rem 4rem;
  }

  .post-full__content {
    padding: 4rem 2rem 6rem;
  }

  .page-full__header {
    padding: 14rem 2rem 4rem;
  }

  .post-feed {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  .gh-content blockquote p {
    font-size: 1.9rem;
  }

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

@media (max-width: 480px) {
  .site-header__inner {
    padding: 0 2rem;
  }

  .post-card__content {
    padding: 2rem;
  }

  .post-paywall__inner {
    padding: 3.2rem 2rem;
  }

  .house-status {
    display: none;
  }
}

/* ——— 29. Print ——— */
@media print {
  .grain-overlay,
  .vignette,
  #ember-canvas,
  .site-header,
  .site-footer,
  .house-status,
  .post-navigation {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .gh-content {
    color: #000;
  }

  .gh-content h1,
  .gh-content h2,
  .gh-content h3 {
    color: #000;
  }
}
