/* ==============================================
   GHOST PROCESS PRESS
   Theme for padraiccepek.com
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Share+Tech+Mono&family=Barlow+Condensed:wght@300;400;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --black:        #0f0d0b;
  --dark:         #1a1714;
  --surface:      #231f1b;
  --surface2:     #2e2924;
  --copper:       #b5824a;
  --copper-dim:   #7a5530;
  --copper-faint: #2a1e0e;
  --verdigris:    #5a7d6e;
  --verd-dim:     #3a5548;
  --bone:         #d4c9b8;
  --bone-dim:     #8a7f70;
  --bone-faint:   #2e2924;
  --ghost:        #c8b8e8;
  --ghost-dim:    #6b5a80;
  --white:        #ede8e0;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: rgba(181,130,74,0.3);
  color: var(--white);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--copper-dim); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--copper-dim);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

.site-header::before {
  content: '// GHOST PROCESS PRESS';
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--copper-dim);
  position: absolute;
  top: 0.35rem;
  left: 3rem;
}

.site-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.2s;
}

.site-name:hover { color: var(--copper); }

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

.site-nav a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s;
}

.site-nav a:hover { color: var(--copper); }
.site-nav a:hover::after,
.site-nav a.nav-current::after { width: 100%; }
.site-nav a.nav-current { color: var(--copper); }

.site-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── READING PROGRESS BAR ── */
#reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--copper), var(--ghost));
  width: 0%;
  z-index: 99;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--copper-dim);
  padding: 2.5rem 3rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: var(--copper-dim);
  line-height: 2;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--copper); }

/* ── HOMEPAGE HERO ── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
  gap: 5rem;
  align-items: center;
  min-height: calc(100vh - 64px);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  box-shadow: -8px 8px 48px rgba(0,0,0,0.7), 8px -8px 0 rgba(181,130,74,0.15);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid rgba(181,130,74,0.2);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--copper);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  display: block;
  font-style: italic;
  color: var(--copper);
  font-size: 0.65em;
  margin-top: 0.3rem;
}

.hero-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bone-dim);
  line-height: 1.7;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  border: none;
  background: none;
}

.btn-primary {
  border: 1px solid var(--copper);
  color: var(--copper);
  background: transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform 0.3s;
  z-index: 0;
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { color: var(--black); }
.btn-primary span { position: relative; z-index: 1; }

.btn-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--bone-faint);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-text:hover {
  color: var(--bone);
  border-bottom-color: var(--bone-dim);
}

/* ── EMAIL/SUBSCRIBE SECTION ── */
.subscribe-section {
  background: var(--dark);
  border-top: 1px solid rgba(181,130,74,0.15);
  border-bottom: 1px solid rgba(181,130,74,0.15);
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(181,130,74,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(200,184,232,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.subscribe-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px);
  pointer-events: none;
}

.subscribe-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.subscribe-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}

.subscribe-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.subscribe-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--bone-dim);
  margin-bottom: 2rem;
}

.subscribe-form {
  display: flex;
  border: 1px solid var(--copper-dim);
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto 1rem;
}

.subscribe-input {
  flex: 1;
  background: var(--black);
  border: none;
  padding: 0.85rem 1.25rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--bone);
  outline: none;
  letter-spacing: 0.05em;
}

.subscribe-input::placeholder { color: var(--bone-dim); }

.subscribe-submit {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--copper-dim);
  color: var(--copper);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.subscribe-submit:hover {
  background: var(--copper);
  color: var(--black);
}

.subscribe-disclaimer {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--copper-dim);
  text-transform: uppercase;
}

/* ── BOOKS SECTION ── */
.books-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--copper);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--copper-dim), transparent);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3rem;
  align-items: start;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover .book-cover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.book-info { display: flex; flex-direction: column; gap: 0.6rem; }

.book-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--copper-dim);
  text-transform: uppercase;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.3;
}

.book-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bone-dim);
  line-height: 1.5;
}

.book-link {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-dim);
  padding-bottom: 2px;
  transition: all 0.2s;
  margin-top: 0.25rem;
}

.book-link:hover {
  color: var(--bone);
  border-bottom-color: var(--bone-dim);
}

/* ── WRITING INDEX ── */
.index-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem 3rem;
  border-bottom: 1px solid rgba(181,130,74,0.15);
  margin-bottom: 0;
}

.index-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.index-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.index-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--bone-dim);
}

.writing-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}

.writing-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(181,130,74,0.1);
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  color: inherit;
}

.writing-item:hover { background: rgba(181,130,74,0.03); }
.writing-item:hover .wi-title { color: var(--copper); }

.wi-content { display: flex; flex-direction: column; gap: 0.5rem; }

.wi-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--verdigris);
  text-transform: uppercase;
}

.wi-tag.tag-horror,
.wi-tag.tag-fiction { color: var(--copper); }
.wi-tag.tag-poetry  { color: var(--ghost-dim); }
.wi-tag.tag-essay   { color: var(--verdigris); }

.wi-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.25;
  transition: color 0.2s;
}

.wi-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.5;
  max-width: 55ch;
}

.wi-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.wi-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--copper-dim);
  white-space: nowrap;
}

.wi-read {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-dim);
  border-bottom: 1px solid var(--copper-dim);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.writing-item:hover .wi-read {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* ── ARTICLE / POST ── */
.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px) 200px;
  max-width: 1200px;
  margin: 0 auto;
}

.rail-left {
  padding: 5rem 1.5rem 5rem 3rem;
}

.rail-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.rail-line {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, var(--copper-dim), transparent);
}

.rail-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  color: var(--copper-dim);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rail-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--verdigris);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.article-main {
  background: var(--surface);
  border-left: 1px solid rgba(181,130,74,0.1);
  border-right: 1px solid rgba(181,130,74,0.1);
  border-top: 2px solid var(--copper);
  padding: 4rem 3.5rem 7rem;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
  min-height: 100vh;
}

.rail-right { padding: 5rem 3rem 5rem 1.5rem; }

.toc-sticky {
  position: sticky;
  top: 100px;
}

.toc-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toc-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--copper-dim);
  max-width: 30px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toc-list a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--bone-dim);
  text-decoration: none;
  line-height: 1.35;
  display: block;
  padding-left: 0.75rem;
  border-left: 1px solid transparent;
  transition: all 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--copper);
  border-left-color: var(--copper);
}

/* Article header */
.article-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-meta::before {
  content: '//';
  color: var(--copper-dim);
}

.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.article-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ghost);
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--bone-faint);
}

/* ── PROSE ── */
.prose { max-width: 64ch; }

.prose p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--bone-dim);
  margin-bottom: 1.5rem;
}

.prose p strong, .prose p b {
  color: var(--white);
  font-weight: 600;
}

.prose p em, .prose p i {
  color: var(--ghost);
  font-style: italic;
}

.prose a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-dim);
  transition: color 0.2s, border-color 0.2s;
}

.prose a:hover {
  color: var(--bone);
  border-bottom-color: var(--bone-dim);
}

.prose h2, .prose h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 4rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(181,130,74,0.15);
}

.prose h2::after, .prose h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, currentColor, transparent);
  opacity: 0.4;
  max-width: 60px;
}

.prose h2:nth-of-type(even),
.prose h3:nth-of-type(even) {
  color: var(--verdigris);
  border-top-color: rgba(90,125,110,0.2);
}

.prose h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bone);
  font-weight: 400;
  margin: 3.5rem 0 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--bone-faint);
}

.prose blockquote {
  border-left: 2px solid var(--copper);
  background: rgba(181,130,74,0.05);
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 2px 2px 0;
  position: relative;
}

.prose blockquote::before {
  content: '// ARCHIVE FRAGMENT';
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--copper-dim);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.prose blockquote p {
  color: var(--bone);
  font-style: italic;
  margin-bottom: 0;
}

.prose code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  color: var(--verdigris);
  background: rgba(90,125,110,0.08);
  border: 1px solid rgba(90,125,110,0.2);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

.prose pre {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--verdigris);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(90,125,110,0.25);
  border-left: 2px solid var(--verdigris);
  padding: 1.5rem;
  line-height: 1.9;
  margin: 2.5rem 0;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--bone-faint);
  margin: 3.5rem 0;
}

.prose figure { margin: 2.5rem 0; }

.prose figcaption {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--copper-dim);
  text-align: center;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.prose img {
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Ghost card — callout/special block */
.kg-callout-card {
  border: 1px solid rgba(200,184,232,0.2);
  border-radius: 2px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(200,184,232,0.03);
  position: relative;
}

.kg-callout-card-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ghost);
}

/* Article end */
.article-end {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--bone-faint);
}

.article-byline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--copper-dim);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.prev-next-link {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--bone-faint);
  text-decoration: none;
  transition: border-color 0.2s;
  display: block;
}

.prev-next-link:hover { border-color: var(--copper-dim); }

.pn-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--copper-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.pn-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.3;
}

.prev-next-link.next { text-align: right; }

/* ── ABOUT PAGE ── */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 3rem;
  gap: 5rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
}

.about-photo img {
  width: 100%;
  filter: grayscale(100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.about-content { display: flex; flex-direction: column; gap: 2rem; }

.about-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.25rem;
}

.about-title-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--copper);
}

.about-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--bone-dim);
  margin-bottom: 1.25rem;
}

.about-body p strong { color: var(--white); }

.about-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--copper-dim);
  text-transform: uppercase;
  line-height: 2;
  border-top: 1px solid var(--bone-faint);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.about-status span { color: var(--copper); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; }
  .rail-left, .rail-right { display: none; }
  .article-main { border-left: none; border-right: none; }
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding: 3rem 1.5rem; }
  .hero-image img { max-width: 260px; margin: 0 auto; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; }
  .about-photo img { max-width: 260px; }
  .prev-next { grid-template-columns: 1fr; }
  .site-header { padding: 0 1.5rem; }
  .site-header::before { left: 1.5rem; }
  .site-nav { gap: 1.25rem; }
}

@media (max-width: 640px) {
  .books-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .writing-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .wi-meta { flex-direction: row; align-items: center; }
  .article-main { padding: 2rem 1.5rem 4rem; }
  .index-header, .writing-list { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── GHOST CARD WIDTHS (required by GScan) ── */
.kg-width-wide {
  margin-left: -4rem;
  margin-right: -4rem;
  max-width: calc(100% + 8rem);
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* ── GHOST CARD TYPES ── */
.kg-image-card img { width: 100%; }

.kg-gallery-card .kg-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.kg-gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kg-bookmark-card {
  border: 1px solid var(--bone-faint);
  padding: 1.25rem;
  margin: 2rem 0;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}

.kg-bookmark-card:hover { border-color: var(--copper-dim); }

.kg-bookmark-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.kg-bookmark-description {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.kg-bookmark-url {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: var(--copper-dim);
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  display: block;
}

.kg-video-card { margin: 2rem 0; }
.kg-video-card video { width: 100%; }

.kg-audio-card {
  border: 1px solid var(--bone-faint);
  padding: 1rem;
  margin: 2rem 0;
}

.kg-header-card {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--surface2);
  margin: 2rem 0;
}

.kg-header-card-header {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--white);
}

.kg-product-card {
  border: 1px solid var(--bone-faint);
  padding: 1.5rem;
  margin: 2rem 0;
}

.kg-product-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.kg-product-card-description {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--bone-dim);
  margin-bottom: 1rem;
}

.kg-product-card-button {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--copper);
  color: var(--copper);
  text-decoration: none;
  transition: all 0.2s;
}

.kg-product-card-button:hover {
  background: var(--copper);
  color: var(--black);
}

/* ── MEMBERS / PAYWALL ── */
.gh-post-upgrade-cta {
  background: var(--surface2);
  border: 1px solid var(--copper-dim);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.gh-post-upgrade-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
}

.gh-post-upgrade-cta p {
  color: var(--bone-dim);
  margin-bottom: 1.5rem;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pagination a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid var(--copper-dim);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.pagination a:hover { color: var(--bone); }

.pagination .page-number { color: var(--bone-dim); }

/* ── NAV LIST FIX ── */
.site-nav,
.site-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li::before,
.site-nav li::marker {
  display: none;
  content: none;
}

.footer-nav,
.footer-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── GHOST BUTTON CARD — override default pink ── */
.kg-btn,
.kg-button-card a,
.kg-button-card .kg-btn {
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 0.85rem 2rem !important;
  background: transparent !important;
  border: 1px solid var(--copper) !important;
  color: var(--copper) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.25s !important;
  position: relative !important;
  overflow: hidden !important;
}

.kg-btn:hover,
.kg-button-card a:hover,
.kg-button-card .kg-btn:hover {
  background: var(--copper) !important;
  color: var(--black) !important;
}

.kg-button-card {
  text-align: center !important;
  margin: 2rem 0 !important;
}

/* ── BUTTON CARD — ghost purple bright override ── */
.kg-btn,
.kg-button-card a,
.kg-button-card .kg-btn {
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 0.85rem 2rem !important;
  background: transparent !important;
  border: 1px solid #9b7fd4 !important;
  color: #9b7fd4 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.25s !important;
}

.kg-btn:hover,
.kg-button-card a:hover,
.kg-button-card .kg-btn:hover {
  background: #9b7fd4 !important;
  color: var(--black) !important;
}

.kg-button-card {
  text-align: center !important;
  margin: 2rem 0 !important;
}

/* ── BOOKS PAGE — prose size fix ── */
.page-template .prose p,
.page-slug-books .prose p {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

/* ── ALL STATIC PAGES — tighter prose ── */
body.page-template .prose, body.page-slug-books .prose p {
  font-size: 1rem !important;
  line-height: 1.75 !important;
  margin-bottom: 1.25rem !important;
}

body.page-template .prose, body.page-slug-books .prose h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 300 !important;
  font-size: 1.8rem !important;
  color: var(--white) !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  border-top: 1px solid rgba(181,130,74,0.15) !important;
  padding-top: 3rem !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

body.page-template .prose, body.page-slug-books .prose h2::after {
  display: none !important;
}

/* ── HERO BODY — single line ── */
.hero-body {
  white-space: nowrap !important;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem) !important;
}

/* ── BOOKS PAGE ── */
.book-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

.book-entry-cover {
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-entry-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.book-entry-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.book-entry-year {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--copper-dim);
  text-transform: uppercase;
}

.book-entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  color: var(--white);
  line-height: 1.1;
  border: none;
  padding: 0;
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
  display: block;
}

.book-entry-title::after { display: none !important; }

.book-entry-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--copper);
}

.book-entry-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bone-dim);
  max-width: 52ch;
  margin-top: 0.25rem;
}

.book-entry-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ghost);
  padding-left: 1rem;
  border-left: 2px solid var(--ghost-dim);
}

.book-entry-btn {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid #9b7fd4;
  color: #9b7fd4;
  text-decoration: none;
  transition: all 0.25s;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.book-entry-btn:hover {
  background: #9b7fd4;
  color: var(--black);
}

.book-divider {
  height: 1px;
  background: linear-gradient(to right, var(--copper-dim), transparent);
}

@media (max-width: 640px) {
  .book-entry {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .book-entry-cover { max-width: 200px; }
}

/* ── ABOUT PAGE — force bio visibility ── */
.about-body,
.about-body p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: var(--bone-dim) !important;
  margin-bottom: 1.25rem !important;
}

/* ── CONTACT PAGE ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 56ch;
}

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

.contact-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--copper);
  text-transform: uppercase;
}

.contact-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(181,130,74,0.2);
  border-radius: 0;
  padding: 0.85rem 1rem;
  color: var(--bone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

.contact-input:focus {
  border-color: var(--copper);
  background: rgba(181,130,74,0.04);
}

.contact-input::placeholder {
  color: rgba(230,215,196,0.25);
}

.contact-textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit {
  align-self: flex-start;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid #9b7fd4;
  color: #9b7fd4;
  cursor: pointer;
  transition: all 0.25s;
}

.contact-submit:hover {
  background: #9b7fd4;
  color: var(--black);
}

/* ── MOBILE FIXES ── */
@media (max-width: 768px) {

  /* Header — keep site name on one line */
  .site-header {
    padding: 1rem 1.25rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-branding {
    flex-shrink: 0;
  }

  .site-name {
    font-size: 1.1rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
  }

  .site-tagline {
    font-size: 0.5rem !important;
    letter-spacing: 0.12em !important;
  }

  .site-nav {
    display: none; /* hide nav on mobile — relies on Ghost's mobile menu */
  }

  /* Hero — stack vertically, image first */
  .home-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 2rem 1.25rem !important;
    gap: 2rem !important;
  }

  .hero-image {
    max-width: 220px;
    margin: 0 auto;
  }

  .hero-image img {
    width: 100%;
  }

  .hero-content {
    padding: 0 !important;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  .hero-body {
    white-space: normal !important;
    font-size: 1rem !important;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Article layout — single column */
  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .rail-left,
  .rail-right {
    display: none !important;
  }

  .article-main {
    padding: 2rem 1.25rem !important;
  }

  /* Subscribe section */
  .subscribe-section {
    padding: 3rem 1.25rem !important;
  }

  .subscribe-form {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .subscribe-input,
  .subscribe-submit {
    width: 100% !important;
  }

  /* Books page */
  .book-entry {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .book-entry-cover {
    max-width: 180px !important;
  }

  /* About page */
  .about-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem 1.25rem !important;
  }

  .about-photo img {
    max-width: 200px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Writing list */
  .writing-item {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 1.25rem 0 !important;
  }

  .wi-meta {
    align-self: flex-start !important;
  }

  /* Section padding */
  .books-section {
    padding: 3rem 1.25rem !important;
  }
}

/* ── MOBILE MENU ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--copper);
  transition: all 0.25s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-nav ul li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .site-header {
    position: relative;
    z-index: 1000;
  }
}

/* ── MOBILE HEADER CLEANUP ── */
@media (max-width: 768px) {
  .site-tagline {
    display: none;
  }

  .site-name {
    font-size: 1rem !important;
    letter-spacing: 0.1em !important;
  }

  .site-header {
    padding: 0.85rem 1.25rem !important;
  }
}

/* ── MOBILE READING — prevent text scrolling behind header ── */
@media (max-width: 768px) {
  .post-template .article-main {
    padding-top: 1rem !important;
  }

  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
  }

  #reading-progress {
    top: 0;
  }
}

/* ── MOBILE PROGRESS BAR FIX ── */
@media (max-width: 768px) {
  #reading-progress {
    position: fixed;
    top: 0;
    z-index: 9999;
  }
}
