/* Verso Ghost Theme - verso.pub */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --ink: #0f0e0c;
  --ink2: #1a1917;
  --paper: #f5f2eb;
  --cream: #ede9df;
  --accent: #c8401a;
  --gold: #b8922a;
  --mid: #6b6560;
  --rule: #d4cfc5;
  --sidebar-w: 220px;
}

html { font-size: 16px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── HEADER / NAV ─── */
.site-header {
  background: var(--ink);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-logo span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a857e;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--paper); }

.nav-subscribe {
  background: var(--accent) !important;
  color: var(--paper) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-subscribe:hover { background: #a83415 !important; }

/* ─── HERO ─── */
.site-hero {
  background: var(--ink);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid #1a1917;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: 'V';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 30rem;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--paper);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #6b6560;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ─── SUBSCRIBE FORM ─── */
.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  background: #1a1917;
  border: 1px solid #2a2825;
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  outline: none;
  border-radius: 2px;
}

.subscribe-form input::placeholder { color: #3a3630; }

.subscribe-form button {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 0.75rem 1.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}

.subscribe-form button:hover { background: #a83415; }

/* ─── SECTION LABELS ─── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ─── MAIN CONTENT AREA ─── */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ─── POST GRID ─── */
.post-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--cream);
}

.post-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}

.post-card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
}

.post-card-access {
  margin-left: auto;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-free { background: rgba(42,110,69,0.1); color: #2a6e45; }
.access-paid { background: rgba(184,146,42,0.12); color: var(--gold); }

/* ─── FEATURED POST ─── */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.post-card-featured:hover { border-color: var(--ink); }

.post-card-featured .post-card-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 300px;
}

.post-card-featured .post-card-content {
  padding: 2.5rem;
}

.post-card-featured .post-card-title {
  font-size: 1.8rem;
}

/* ─── ARTICLE PAGE ─── */
.article-header {
  background: var(--ink);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.article-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--paper);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.article-excerpt {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #6b6560;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #6b6560;
}

.article-byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2a2825;
}

.article-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content p {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.article-content blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.article-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(200,64,26,0.3);
}

.article-content a:hover { border-bottom-color: var(--accent); }

.article-content figure { margin: 2rem 0; }
.article-content figcaption {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin-top: 0.6rem;
  text-align: center;
}

/* ─── PAYWALL ─── */
.paywall {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.paywall-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.paywall-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.paywall-description {
  color: var(--mid);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.paywall-plans {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.paywall-plan {
  border: 1px solid var(--rule);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 140px;
}

.paywall-plan:hover { border-color: var(--accent); }
.paywall-plan.active { border-color: var(--accent); }

.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.plan-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.paywall-btn {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 0.8rem 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.paywall-btn:hover { background: #a83415; }

/* ─── AUTHOR PAGE ─── */
.author-header {
  background: var(--ink);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.author-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.author-bio {
  color: #6b6560;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 500px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--ink);
  border-top: 2px solid #1a1917;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--paper);
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3630;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a3630;
}

.footer-links a:hover { color: var(--paper); }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.pagination a {
  border: 1px solid var(--rule);
  padding: 0.5rem 1rem;
  transition: all 0.15s;
}

.pagination a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .post-feed { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-image { min-height: 200px; }
  .subscribe-form { flex-direction: column; }
  .site-footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .author-header { flex-direction: column; text-align: center; }
  .paywall-plans { flex-direction: column; align-items: center; }
}

@media (max-width: 1024px) {
  .post-feed { grid-template-columns: repeat(2, 1fr); }
  .post-card-featured { grid-template-columns: 1fr; }
}

/* ─── GHOST REQUIRED CARD CLASSES ─── */
.kg-width-wide {
  margin-left: calc(50% - 40vw);
  margin-right: calc(50% - 40vw);
  max-width: 80vw;
}

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

.kg-image { max-width: 100%; }

.kg-image-card { margin: 2rem 0; }
.kg-image-card img { margin: 0 auto; }

.kg-gallery-container { display: flex; flex-direction: column; margin: 2rem 0; }
.kg-gallery-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { margin: 2rem 0; border: 1px solid var(--rule); }
.kg-bookmark-container { display: flex; text-decoration: none; color: var(--ink); }
.kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-weight: 600; margin-bottom: 0.3rem; }
.kg-bookmark-description { font-size: 0.85rem; color: var(--mid); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

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

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

.kg-callout-card { 
  margin: 2rem 0; 
  padding: 1.2rem 1.4rem; 
  border-left: 3px solid var(--accent);
  background: var(--cream);
  display: flex;
  gap: 0.8rem;
}

.kg-callout-emoji { font-size: 1.2rem; flex-shrink: 0; }

.kg-toggle-card { margin: 2rem 0; border: 1px solid var(--rule); }
.kg-toggle-heading { padding: 1rem 1.2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.kg-toggle-content { padding: 0 1.2rem 1rem; }

.kg-button-card { margin: 2rem 0; text-align: center; }
.kg-btn { 
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 0.75rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.kg-btn:hover { background: #a83415; }

.kg-header-card { margin: 2rem 0; padding: 3rem 2rem; background: var(--ink); text-align: center; }
.kg-header-card h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--paper); }
.kg-header-card p { color: #6b6560; margin-top: 0.5rem; }

.kg-nft-card { margin: 2rem 0; }
.kg-product-card { margin: 2rem 0; border: 1px solid var(--rule); padding: 1.4rem; }
.kg-product-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; }

/* Fix accent color to correct red-orange */
:root {
  --accent: #c8401a;
}

/* Ensure nav subscribe button uses correct color */
.nav-subscribe {
  background: #c8401a !important;
}

/* ─── GHOST MEMBER FEATURES ─── */
.gh-post-upgrade-cta {
  background: var(--ink);
  border-top: 3px solid var(--accent);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.gh-post-upgrade-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.gh-post-upgrade-cta p { color: #6b6560; margin-bottom: 1.2rem; }

.gh-post-upgrade-cta a {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 0.7rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
}
