:root {
  --ink:        #16120c;
  --ink-soft:   #221c12;
  --parchment:  #e8dfc0;
  --parch-pale: #f2ead4;
  --parch-mid:  #cfc49a;
  --parch-deep: #b5a57a;
  --gold:       #c4962c;
  --gold-dim:   #8a6a1c;
  --gold-pale:  #e8c870;
  --rust:       #7a3a1a;
  --olive:      #3e4228;
  --mist:       #c8bfa4;
  --mist-dim:   #8a8070;
  
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Spectral', serif;
  font-weight: 300;
  line-height: 1.9;
  overflow-x: hidden;
  cursor: crosshair;
  -webkit-user-select: none;
  -ms-user-select: none;  
  user-select: none; 
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* â”€â”€ SCROLL REVEAL â”€â”€ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-slow { transition-duration: 1.4s; }
.reveal-fast { transition-duration: 0.6s; }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }



/* â”€â”€ MASTHEAD â”€â”€ */
.masthead {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 4rem;
  position: relative;
  overflow: hidden;
}

.masthead-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(107,58,31,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(62,66,40,0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(26,18,8,0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(22,18,12,0.2) 0%, rgba(22,18,12,0.7) 60%, var(--ink) 100%);
  z-index: 0;
}

/* Night sky with CSS stars */
.star-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.masthead-illustration {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}

.masthead-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 4rem;
  width: 100%;
}

.issue-tag {
  font-family: 'Spectral', serif;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.issue-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
}

.masthead-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: var(--parch-pale);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.masthead-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mist);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.masthead-meta span { display: flex; align-items: center; gap: 7px; }
.masthead-meta span::before { content: 'âœ¦'; color: var(--gold-dim); font-size: 0.55rem; }

.scroll-invite {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrolldown 2.2s ease-in-out infinite;
}

@keyframes scrolldown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* â”€â”€ NAVIGATION â”€â”€ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22,18,12,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,150,44,0.18);
  padding: 0 4rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 1.3rem;
  color: var(--parch-pale);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-issue {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  border: 1px solid rgba(196,150,44,0.25);
  padding: 3px 10px;
}

/* â”€â”€ PAGE STRUCTURE â”€â”€ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* â”€â”€ SECTION HEADERS â”€â”€ */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 6rem 0 3rem;
}

.section-num {
  font-family: 'Spectral', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  min-width: 24px;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(196,150,44,0.4), transparent);
}

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

/* â”€â”€ FEATURE ARTICLE â”€â”€ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 6rem;
}

.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-img-wrap {
  position: relative;
}

.feature-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: sepia(0.3) brightness(0.82) contrast(1.05);
  transition: filter 0.6s;
}

.feature-img:hover { filter: sepia(0.15) brightness(0.9) contrast(1.05); }

/* Decorative frame around image */
.feature-img-wrap::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid rgba(196,150,44,0.2);
  z-index: -1;
}

.feature-img-wrap::after {
  content: attr(data-caption);
  position: absolute;
  bottom: -2rem;
  left: 0;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--mist-dim);
  font-style: italic;
}

.feature-body {}

.feature-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.feature-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--parch-pale);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.feature-deck {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--mist);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.25rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--parch-mid);
  line-height: 2;
  font-weight: 300;
}

.feature-text p + p { margin-top: 1.25em; }

.feature-text p:first-of-type::first-letter {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 3.8em;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.08em 0 0;
  color: var(--gold);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196,150,44,0.15);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.byline-dot { width: 3px; height: 3px; background: var(--gold-dim); border-radius: 50%; }

/* â”€â”€ FULL BLEED IMAGE â”€â”€ */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin: 5rem -50vw;
}

.full-bleed-inner {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.full-bleed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: sepia(0.35) brightness(0.65) contrast(1.1);
  display: block;
}

.full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(22,18,12,0.5) 70%, var(--ink) 100%);
}

.full-bleed-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.full-bleed-caption h2 {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--parch-pale);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 40px rgba(22,18,12,0.8);
}

.full-bleed-caption p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--mist);
  font-size: 1rem;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* Registration marks from Image 1 */
.reg-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.35;
}
.reg-mark::before, .reg-mark::after {
  content: '';
  position: absolute;
  background: var(--gold-pale);
}
.reg-mark::before { width: 1px; height: 100%; left: 50%; }
.reg-mark::after  { height: 1px; width: 100%; top: 50%; }

.rm-tl { top: 16px; left: 16px; }
.rm-tr { top: 16px; right: 16px; }
.rm-bl { bottom: 16px; left: 16px; }
.rm-br { bottom: 16px; right: 16px; }

/* Checker accent from Image 1 */
.checker {
  display: inline-grid;
  grid-template-columns: repeat(6, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 1px;
  vertical-align: middle;
  margin: 0 8px;
}

.checker span:nth-child(odd)  { background: var(--gold-dim); }
.checker span:nth-child(even) { background: transparent; border: 1px solid rgba(196,150,44,0.3); }

/* â”€â”€ PULL QUOTE â”€â”€ */
.pull-quote {
  margin: 4rem auto;
  max-width: 700px;
  text-align: center;
  padding: 3rem;
  position: relative;
}

.pull-quote::before, .pull-quote::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.pull-quote::before { top: 0; }
.pull-quote::after  { bottom: 0; }

.pull-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--parch-pale);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.pull-quote cite {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pull-quote cite::before, .pull-quote cite::after {
  content: 'âœ¦';
  font-size: 0.5rem;
}

/* â”€â”€ MAIN LAYOUT â”€â”€ */
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 5rem 4rem; }

/* â”€â”€ HERO POST â”€â”€ */
.hero-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid rgba(196,150,44,0.14); margin-bottom: 5rem;
  overflow: hidden;
}
.hero-post-img {
  position: relative; overflow: hidden; min-height: 520px;
}
.hero-post-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.35) brightness(0.72) contrast(1.1);
  transition: filter 0.6s, transform 0.8s;
  display: block;
}
.hero-post:hover .hero-post-img img { filter: sepia(0.2) brightness(0.82) contrast(1.05); transform: scale(1.03); }
.hero-post-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(22,18,12,0.4));
}


/* Reg marks */
.reg-mark { position: absolute; width: 16px; height: 16px; opacity: 0.3; }
.reg-mark::before, .reg-mark::after { content: ''; position: absolute; background: var(--gold-pale); }
.reg-mark::before { width: 1px; height: 100%; left: 50%; }
.reg-mark::after  { height: 1px; width: 100%; top: 50%; }
.rm-tl { top: 14px; left: 14px; } .rm-br { bottom: 14px; right: 14px; }

.hero-post-body {
  padding: 3.5rem 3rem;
  background: var(--ink-soft);
  display: flex; flex-direction: column; justify-content: center;
}
.post-kicker { font-size: 0.58rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero-post-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--parch-pale); line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-post-deck {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.05rem; font-weight: 300; color: var(--mist);
  line-height: 1.65; margin-bottom: 1.75rem;
  border-left: 2px solid var(--gold-dim); padding-left: 1rem;
}
.hero-post-excerpt { font-size: 0.88rem; color: var(--parch-mid); line-height: 1.9; margin-bottom: 2rem; }
.read-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(196,150,44,0.3); padding-bottom: 3px;
  transition: gap 0.25s, border-color 0.25s;
}
.read-more:hover { gap: 16px; border-color: var(--gold); }
.post-byline {
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(196,150,44,0.12);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mist-dim); display: flex; align-items: center; gap: 10px;
}
.byline-dot { width: 3px; height: 3px; background: var(--gold-dim); border-radius: 50%; }

/* â”€â”€ SECTION LABEL â”€â”€ */
.section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 2.5rem;
}
.section-num { font-size: 0.58rem; letter-spacing: 0.3em; color: var(--gold-dim); min-width: 20px; }
.section-rule { flex: 1; height: 1px; background: linear-gradient(to right, rgba(196,150,44,0.3), transparent); }
.section-lbl { font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mist-dim); }

/* â”€â”€ POST GRID â”€â”€ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 4rem; }

.post-card { background: var(--ink-soft); overflow: hidden; position: relative; }
.post-card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.post-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(0.4) brightness(0.68) contrast(1.1);
  transition: filter 0.5s, transform 0.7s;
}
.post-card:hover .post-card-img img { filter: sepia(0.2) brightness(0.82); transform: scale(1.04); }
.post-card-body { padding: 1.75rem 1.5rem 2rem; }
.card-kicker { font-size: 0.55rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.65rem; }
.card-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
  font-weight: 500; color: var(--parch-pale); line-height: 1.3; margin-bottom: 0.75rem;
}
.card-excerpt { font-size: 0.83rem; color: var(--parch-mid); line-height: 1.8; margin-bottom: 1.25rem; }
.card-meta { font-size: 0.58rem; letter-spacing: 0.15em; color: var(--mist-dim); display: flex; align-items: center; gap: 8px; }

/* â”€â”€ LIST POSTS â”€â”€ */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 0; border-top: 1px solid rgba(196,150,44,0.1);
  overflow: hidden;
  transition: background 0.25s;
}
.post-list-item:last-child { border-bottom: 1px solid rgba(196,150,44,0.1); }
.post-list-item:hover { background: rgba(196,150,44,0.04); }
.list-img { overflow: hidden; }
.list-img img {
  width: 100%; height: 100%; min-height: 140px; object-fit: cover; display: block;
  filter: sepia(0.4) brightness(0.65) contrast(1.1);
  transition: filter 0.4s;
}
.post-list-item:hover .list-img img { filter: sepia(0.2) brightness(0.8); }
.list-body { padding: 1.75rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.list-num { font-size: 0.55rem; letter-spacing: 0.3em; color: var(--gold-dim); margin-bottom: 0.5rem; }
.list-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-weight: 500; color: var(--parch-pale); line-height: 1.3; margin-bottom: 0.5rem;
}
.list-excerpt { font-size: 0.82rem; color: var(--parch-mid); line-height: 1.75; }
.list-meta { margin-top: 0.75rem; font-size: 0.58rem; letter-spacing: 0.15em; color: var(--mist-dim); display: flex; gap: 10px; }

/* â”€â”€ PAGINATION â”€â”€ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4rem; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--mist-dim);
  border: 1px solid rgba(196,150,44,0.12); background: transparent; cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(196,150,44,0.06); }
.page-dots { color: var(--mist-dim); padding: 0 8px; font-size: 0.8rem; }


/* â”€â”€ GRID OF IMAGES (mosaic) â”€â”€ */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  margin: 4rem 0;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
}

.mosaic-item:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

.mosaic-item:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1;
}

.mosaic-item:nth-child(3), .mosaic-item:nth-child(4) {
  grid-column: span 1;
  grid-row: 2;
}

.mosaic-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: sepia(0.4) brightness(0.7) contrast(1.1) saturate(0.8);
  display: block;
  transition: filter 0.5s, transform 0.6s;
}

.mosaic-item:hover .mosaic-img {
  filter: sepia(0.2) brightness(0.85) contrast(1.05);
  transform: scale(1.025);
}

.mosaic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(22,18,12,0.85) 0%, transparent 100%);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
  pointer-events: none;
}

/* EDITORIAL ELEMENTS */
.pull-quote {
  margin: 4rem -4rem; /* Extends slightly past text bounds */
  text-align: center;
  padding: 3rem;
  position: relative;
}
.pull-quote::before, .pull-quote::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.pull-quote::before { top: 0; }
.pull-quote::after  { bottom: 0; }
.pull-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--parch-pale);
  line-height: 1.5;
}

.inline-img {
  width: 100%;
  margin: 3rem 0;
  filter: sepia(0.3) brightness(0.8) contrast(1.1);
  border: 1px solid rgba(196,150,44,0.15);
}
.inline-img-caption {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--mist-dim);
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-style: italic;
}
.ornament {
  text-align: center;
  color: var(--gold-dim);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  padding: 2rem 0;
  opacity: 0.6;
}

/* ARTICLE MASTHEAD */
.masthead {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
}
.masthead-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(62,66,40,0.15) 0%, transparent 80%),
              linear-gradient(180deg, rgba(22,18,12,0.3) 0%, var(--ink) 100%);
  z-index: 0;
}
.star-canvas { position: absolute; inset: 0; z-index: 0; }
.masthead-content { position: relative; z-index: 2; max-width: 800px; }
.article-category {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.article-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--parch-pale);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.article-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--mist);
  margin-bottom: 2rem;
}

.article-meta {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
  display: flex;
  justify-content: center;
  gap: 15px;
}

.article-meta span::before { content: '✦'; color: var(--gold-dim); font-size: 0.55rem; margin-right: 8px;}

/* â”€â”€ GRID OF IMAGES (mosaic) â”€â”€ */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  margin: 4rem 0;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
}

.mosaic-item:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

.mosaic-item:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1;
}

.mosaic-item:nth-child(3), .mosaic-item:nth-child(4) {
  grid-column: span 1;
  grid-row: 2;
}

.mosaic-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: sepia(0.4) brightness(0.7) contrast(1.1) saturate(0.8);
  display: block;
  transition: filter 0.5s, transform 0.6s;
}

.mosaic-item:hover .mosaic-img {
  filter: sepia(0.2) brightness(0.85) contrast(1.05);
  transform: scale(1.025);
}

.mosaic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(22,18,12,0.85) 0%, transparent 100%);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
  pointer-events: none;
}

/* Author Bio Box */
.author-box {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(196,150,44,0.2);
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  filter: grayscale(1) sepia(0.3);
}
.author-bio h4 {
  font-family: 'UnifrakturMaguntia', cursive;
  color: var(--parch-pale);
  font-size: 1.2rem;
  font-weight: 400;
}
.author-bio p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* â”€â”€ DIRECTORY / LINKS â”€â”€ */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}
.directory-group h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(196,150,44,0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
}
.link-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 1.5rem;
  border: 1px solid rgba(196,150,44,0.1);
  background: rgba(22,18,12,0.4);
  transition: all 0.4s ease;
  height: 100%;
}
.link-item:hover {
  border-color: rgba(196,150,44,0.4);
  background: rgba(196,150,44,0.03);
  transform: translateY(-3px);
}
.link-title {
  font-family: 'Spectral', serif;
  font-size: 1.15rem;
  color: var(--parch-pale);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link-title::after { 
  content: 'â†—'; 
  color: var(--gold-dim); 
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}
.link-item:hover .link-title::after {
  transform: translate(3px, -3px);
  color: var(--gold);
}
.link-desc {
  font-size: 0.85rem;
  color: var(--mist-dim);
  line-height: 1.7;
}

/* â”€â”€ GALLERY â”€â”€ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1100px; /* Wider than the essay text */
  margin-left: auto;
  margin-right: auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: crosshair;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.4) brightness(0.7) contrast(1.1);
  transition: filter 0.7s ease, transform 0.9s ease;
}
.gallery-item:hover img {
  filter: sepia(0.1) brightness(0.9) contrast(1.05);
  transform: scale(1.04);
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(18,14,9,0.95) 0%, transparent 100%);
  color: var(--mist-dim);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-caption span {
  display: block;
  color: var(--parch-pale);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  font-style: italic;
}

/* â”€â”€ ESSAY BODY â”€â”€ */
.essay {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.essay h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--parch-pale);
  margin: 2.5rem 0 1rem;
}

.essay p {
  font-size: 1rem;
  color: var(--parch-mid);
  line-height: 2;
  margin-bottom: 1.4em;
}

.essay p.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--mist);
  line-height: 1.75;
}

.drop-cap::first-letter {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 4.2em;
  float: left;
  line-height: 0.78;
  margin: 0.05em 0.1em 0 0;
  color: var(--gold);
}

/* Inline ornament */
.ornament {
  text-align: center;
  color: var(--gold-dim);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  padding: 1.5rem 0;
  opacity: 0.6;
}

/* â”€â”€ FOOTER â”€â”€ */
footer {
  border-top: 1px solid rgba(196,150,44,0.18);
  padding: 3rem 4rem;
  background: rgba(18,14,9,0.9);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--mist-dim);
  line-height: 2;
}

.footer-logo {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 2rem;
  color: var(--parch-pale);
  text-align: center;
}

.footer-sub {
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 4px;
}

.footer-right {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--mist-dim);
  text-align: right;
  line-height: 2;
}

.footer-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,150,44,0.2), transparent);
  margin: 2rem auto;
  max-width: 1100px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--mist-dim);
  opacity: 0.5;
}

/* â”€â”€ SVG CELESTIAL ILLUSTRATIONS â”€â”€ */
.celestial-divider {
  text-align: center;
  margin: 3rem 0;
  opacity: 0.45;
}

/* â”€â”€ INLINE IMAGE WITH TEXT WRAP â”€â”€ */
.inline-img-right {
  float: right;
  width: 42%;
  margin: 0.5rem 0 1.5rem 2.5rem;
  position: relative;
}

.inline-img-right img {
  width: 100%;
  display: block;
  filter: sepia(0.35) brightness(0.75) contrast(1.1);
}

.inline-img-right figcaption {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--mist-dim);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: right;
}

/* Clearfix */
.clearfix::after { content: ''; display: table; clear: both; }

/* Checker row like Image 1 top strip */
.checker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(196,150,44,0.1);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: var(--mist-dim);
}

/* â”€â”€ CANVAS TEXTURE â”€â”€ */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(212,196,154,0.015) 3px, rgba(212,196,154,0.015) 4px),
      repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(212,196,154,0.01) 3px, rgba(212,196,154,0.01) 4px);
    pointer-events: none;
    z-index: 0;
  }

  /* â”€â”€ STAR FIELD â”€â”€ */
  #starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .star {
    position: absolute;
    background: var(--parchment-light);
    border-radius: 50%;
    animation: twinkle var(--dur, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.4;
  }

  @keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
  }

  /* â”€â”€ LAYOUT â”€â”€ */
  #app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 260px 1fr;
    grid-template-areas:
      "header header"
      "sidebar main"
      "footer footer";
  }

  /* â”€â”€ HEADER â”€â”€ */
  header {
    grid-area: header;
    border-bottom: 1px solid rgba(184,148,42,0.35);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    background: rgba(26,22,16,0.92);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(45deg);
  }

  .logo-mark::before, .logo-mark::after {
    content: '';
    position: absolute;
    background: var(--gold);
  }

  .logo-mark::before { width: 1px; height: 70%; }
  .logo-mark::after  { width: 70%; height: 1px; }

  .logo-star {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gold);
  }

  .logo-text {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.6rem;
    color: var(--parchment-light);
    letter-spacing: 0.03em;
  }

  .logo-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-dim);
  }

  .header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Spectral', serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--mist);
  }

  .meta-badge {
    border: 1px solid rgba(184,148,42,0.3);
    padding: 3px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .meta-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  /* â”€â”€ SIDEBAR â”€â”€ */
  aside {
    grid-area: sidebar;
    border-right: 1px solid rgba(184,148,42,0.18);
    background: rgba(20,17,11,0.85);
    padding: 1.5rem 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sidebar-section {
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(184,148,42,0.1);
    margin-bottom: 1rem;
  }

  .sidebar-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar-label::before, .sidebar-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(184,148,42,0.2);
  }

  .doc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 0 3px 3px 0;
    margin-bottom: 2px;
  }

  .doc-item:hover { border-left-color: var(--gold-dim); background: rgba(184,148,42,0.06); }
  .doc-item.active { border-left-color: var(--gold); background: rgba(184,148,42,0.1); }

  .doc-icon {
    font-size: 0.65rem;
    color: var(--gold-dim);
    margin-top: 3px;
    letter-spacing: 0;
  }

  .doc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: var(--parchment);
    line-height: 1.35;
  }

  .doc-meta {
    font-size: 0.6rem;
    color: var(--mist);
    letter-spacing: 0.1em;
    margin-top: 2px;
  }

  .new-doc-btn {
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: 1px dashed rgba(184,148,42,0.3);
    color: var(--gold-dim);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 8px;
  }

  .new-doc-btn:hover { border-color: var(--gold); color: var(--gold); }

  /* Word count in sidebar */
  .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .stat-box {
    background: rgba(184,148,42,0.05);
    border: 1px solid rgba(184,148,42,0.12);
    padding: 8px 10px;
    text-align: center;
  }

  .stat-num {
    font-family: 'Spectral', serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--parchment-light);
    display: block;
  }

  .stat-lbl {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    margin-top: 2px;
  }

  /* Focus modes */
  .mode-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .mode-btn {
    padding: 5px 10px;
    background: transparent;
    border: 1px solid rgba(184,148,42,0.2);
    color: var(--mist);
    font-family: 'Spectral', serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mode-btn:hover, .mode-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(184,148,42,0.08);
  }

  /* â”€â”€ MAIN WRITING AREA â”€â”€ */
  main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    background: rgba(26,22,16,0.4);
  }

  /* Toolbar */
  .toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 2rem;
    border-bottom: 1px solid rgba(184,148,42,0.12);
    background: rgba(20,17,11,0.6);
    flex-wrap: wrap;
  }

  .tb-group {
    display: flex;
    align-items: center;
    gap: 3px;
    padding-right: 10px;
    border-right: 1px solid rgba(184,148,42,0.15);
  }

  .tb-group:last-child { border-right: none; }

  .tb-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--mist);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.15s;
    border-radius: 2px;
  }

  .tb-btn:hover { background: rgba(184,148,42,0.1); color: var(--parchment); }
  .tb-btn.active { background: rgba(184,148,42,0.15); color: var(--gold); }

  .tb-sep { width: 1px; height: 20px; background: rgba(184,148,42,0.2); margin: 0 3px; }

  .tb-select {
    background: transparent;
    border: 1px solid rgba(184,148,42,0.2);
    color: var(--mist);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    padding: 3px 6px;
    cursor: pointer;
    outline: none;
  }

  .tb-select option { background: var(--ink-mid); }

  /* Document title area */
  .doc-header {
    padding: 3rem 5rem 1rem;
    border-bottom: 1px solid rgba(184,148,42,0.1);
  }

  .doc-number {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .doc-number::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: rgba(184,148,42,0.3);
  }

  #doc-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2.6rem;
    color: var(--parchment-light);
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    line-height: 1.2;
    caret-color: var(--gold);
  }

  #doc-title::placeholder { color: rgba(212,196,154,0.25); }

  .doc-subtitle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.75rem;
  }

  #doc-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--mist);
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    caret-color: var(--gold);
  }

  #doc-subtitle::placeholder { color: rgba(200,191,168,0.3); }

  .reg-mark {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gold-dim);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
  }

  /* â”€â”€ EDITOR â”€â”€ */
  .editor-wrap {
    flex: 1;
    padding: 2.5rem 5rem;
    position: relative;
  }

  /* Subtle ruled lines */
  .editor-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      transparent,
      transparent 31px,
      rgba(184,148,42,0.06) 31px,
      rgba(184,148,42,0.06) 32px
    );
    pointer-events: none;
  }

  #editor {
    position: relative;
    min-height: 60vh;
    outline: none;
    font-family: 'Spectral', serif;
    font-size: 1.05rem;
    line-height: 2rem;
    color: var(--parchment);
    caret-color: var(--gold);
    white-space: pre-wrap;
    word-break: break-word;
  }

  #editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(212,196,154,0.22);
    font-style: italic;
    pointer-events: none;
  }

  /* Typography styles applied in editor */
  #editor b { color: var(--parchment-light); font-weight: 500; }
  #editor i { font-style: italic; color: var(--mist); }
  #editor h1 { font-family: 'UnifrakturMaguntia', cursive; font-size: 2rem; color: var(--parchment-light); font-weight: 400; margin: 1.5rem 0 0.5rem; line-height: 1.3; }
  #editor h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; color: var(--parchment-light); font-weight: 300; margin: 1.2rem 0 0.4rem; }
  #editor blockquote { border-left: 2px solid var(--gold-dim); padding-left: 1.2rem; color: var(--mist); font-style: italic; margin: 1rem 0; }
  #editor hr { border: none; border-top: 1px solid rgba(184,148,42,0.25); margin: 1.5rem 0; }

  /* â”€â”€ ORNAMENT DIVIDERS â”€â”€ */
  .ornament {
    text-align: center;
    color: var(--gold-dim);
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    padding: 0.5rem 0;
    opacity: 0.5;
    user-select: none;
  }

  /* â”€â”€ FOOTER â”€â”€ */
  footer {
    grid-area: footer;
    border-top: 1px solid rgba(184,148,42,0.2);
    padding: 10px 2rem;
    background: rgba(20,17,11,0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist);
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-left, .footer-right { display: flex; align-items: center; gap: 16px; }

  .footer-item { display: flex; align-items: center; gap: 5px; }

  .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--olive-mid);
  }

  .status-dot.saved { background: var(--gold-dim); }

  /* â”€â”€ TYPEWRITER SETTINGS PANEL â”€â”€ */
  .settings-panel {
    position: fixed;
    right: -320px;
    top: 64px;
    bottom: 0;
    width: 300px;
    background: rgba(20,17,11,0.97);
    border-left: 1px solid rgba(184,148,42,0.2);
    padding: 1.5rem;
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
  }

  .settings-panel.open { right: 0; }

  .settings-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.3rem;
    color: var(--parchment-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
  }

  .settings-close {
    background: none;
    border: none;
    color: var(--mist);
    cursor: pointer;
    font-size: 1.2rem;
    font-family: serif;
  }

  .setting-row {
    margin-bottom: 1.25rem;
  }

  .setting-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.5rem;
  }

  .setting-control {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  input[type="range"] {
    flex: 1;
    accent-color: var(--gold);
    height: 2px;
  }

  .setting-val {
    font-size: 0.8rem;
    color: var(--parchment);
    min-width: 30px;
    text-align: right;
  }

  input[type="color"] {
    width: 36px;
    height: 24px;
    border: 1px solid rgba(184,148,42,0.3);
    background: none;
    cursor: pointer;
    padding: 2px;
  }

  .toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .toggle input { display: none; }

  .toggle-track {
    width: 36px;
    height: 18px;
    background: rgba(184,148,42,0.15);
    border: 1px solid rgba(184,148,42,0.3);
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
  }

  .toggle input:checked + .toggle-track { background: rgba(184,148,42,0.4); }

  .toggle-thumb {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--mist);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.2s, background 0.2s;
  }

  .toggle input:checked ~ .toggle-track .toggle-thumb,
  .toggle input:checked + .toggle-track .toggle-thumb {
    left: 20px;
    background: var(--gold);
  }

  /* Focus Mode */
  body.focus-mode aside,
  body.focus-mode .toolbar,
  body.focus-mode footer,
  body.focus-mode header .header-meta {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }

  body.focus-mode #app {
    grid-template-columns: 0 1fr;
  }

  body.focus-mode .doc-header,
  body.focus-mode .editor-wrap {
    padding-left: 10vw;
    padding-right: 10vw;
  }

  body.focus-mode:hover aside,
  body.focus-mode:hover .toolbar,
  body.focus-mode:hover footer {
    opacity: 0;
  }

  /* Typewriter mode cursor blink */
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

  /* Notification toast */
  .toast {
    position: fixed;
    bottom: 60px;
    right: 24px;
    background: rgba(26,22,16,0.95);
    border: 1px solid rgba(184,148,42,0.35);
    padding: 10px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--parchment);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 500;
  }

  .toast.show { opacity: 1; transform: translateY(0); }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(184,148,42,0.25); border-radius: 2px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(184,148,42,0.45); }

  /* Registration marks like Image 1 */
  .reg-corner {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.25;
  }

  .reg-corner::before, .reg-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
  }

  .rc-tl { top: 70px; left: 8px; }
  .rc-tr { top: 70px; right: 8px; }
  .rc-bl { bottom: 36px; left: 8px; }
  .rc-br { bottom: 36px; right: 8px; }

  .reg-corner::before { width: 1px; height: 100%; left: 50%; }
  .reg-corner::after  { width: 100%; height: 1px; top: 50%; }

  /* Checkerboard accent like Image 1 */
  .checker-accent {
    display: inline-flex;
    gap: 0;
    opacity: 0.4;
  }

  .checker-cell {
    width: 4px;
    height: 4px;
    background: var(--gold);
  }

  .checker-cell:nth-child(even) { background: transparent; border: 1px solid var(--gold-dim); }

  /* â”€â”€ DISTRACTION-FREE OVERLAY â”€â”€ */
  .ambient-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(107,58,31,0.04) 0%, transparent 70%);
  }
  
  /* Voices */
.contributor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 4rem; }
.contributor-card { background: var(--ink-soft); overflow: hidden; position: relative; transition: background 0.3s; }
.contributor-card:hover { background: rgba(34,28,18,0.95); }
.contrib-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.contrib-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.5) brightness(0.62) contrast(1.1); transition: filter 0.5s, transform 0.7s; display: block; }
.contributor-card:hover .contrib-img-wrap img { filter: sepia(0.25) brightness(0.8); transform: scale(1.04); }
.contrib-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(22,18,12,0.9)); }
.contrib-role { position: absolute; top: 1rem; left: 1rem; font-size: 0.54rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-pale); background: rgba(22,18,12,0.7); padding: 3px 8px; }
.contrib-body { padding: 1.75rem 1.5rem 2rem; }
.contrib-name { font-family: 'UnifrakturMaguntia', cursive; font-size: 1.5rem; color: var(--parch-pale); margin-bottom: 0.3rem; }
.contrib-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.88rem; color: var(--mist); margin-bottom: 0.85rem; }
.contrib-bio { font-size: 0.8rem; color: var(--parch-mid); line-height: 1.8; }
.contrib-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(196,150,44,0.12); }
.contrib-count { font-size: 0.6rem; letter-spacing: 0.15em; color: var(--mist-dim); }
.contrib-link { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(196,150,44,0.3); padding-bottom: 2px; transition: border-color 0.2s; }
.contrib-link:hover { border-color: var(--gold); }

/* Mapping */
.network-section { margin: 2rem 0 4rem; padding: 3rem; border: 1px solid rgba(196,150,44,0.12); background: rgba(196,150,44,0.02); position: relative; overflow: hidden; }
.network-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(107,58,31,0.06), transparent); pointer-events: none; }
.network-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; color: var(--parch-pale); margin-bottom: 0.5rem; text-align: center; }
.network-sub { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist-dim); text-align: center; margin-bottom: 2rem; }
#network-svg { display: block; width: 100%; max-width: 800px; margin: 0 auto; }

/* Grid */
.pub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-bottom: 4rem; }
.pub-card { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--ink-soft); border-left: 2px solid transparent; transition: all 0.25s; }
.pub-card:hover { border-left-color: var(--gold); background: rgba(34,28,18,0.95); }
.pub-glyph { font-family: 'UnifrakturMaguntia', cursive; font-size: 2.2rem; color: var(--gold-dim); min-width: 44px; text-align: center; line-height: 1; }
.pub-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 500; color: var(--parch-pale); margin-bottom: 0.2rem; }
.pub-desc { font-size: 0.78rem; color: var(--parch-mid); line-height: 1.6; }
.pub-meta { font-size: 0.56rem; letter-spacing: 0.15em; color: var(--mist-dim); margin-top: 0.4rem; }

/*  Call */
.open-call { padding: 3.5rem; border: 1px solid rgba(196,150,44,0.2); background: rgba(196,150,44,0.03); text-align: center; position: relative; margin-bottom: 6rem; }
.open-call::before, .open-call::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 100px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-dim), transparent); }
.open-call::before { top: 0; } .open-call::after { bottom: 0; }
.open-call-title { font-family: 'UnifrakturMaguntia', cursive; font-size: 2rem; color: var(--parch-pale); margin-bottom: 0.75rem; }
.open-call-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.05rem; color: var(--mist); max-width: 500px; margin: 0 auto 1.75rem; line-height: 1.7; }
.open-call-detail { font-size: 0.72rem; color: var(--parch-mid); line-height: 1.9; margin-bottom: 2rem; }
.submit-btn { display: inline-block; padding: 12px 32px; border: 1px solid var(--gold-dim); color: var(--gold); font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; transition: all 0.25s; }
.submit-btn:hover { background: rgba(196,150,44,0.08); border-color: var(--gold); }
