/* ==========================================================================
   Vinyl Mixtress Ghost Theme — Typewriter Light Emerald
   ========================================================================== */

:root {
  --bg: #FAF8F5;
  --text: #1a1a18;
  --text-muted: #6b6862;
  --accent: #1B7A4E;
  --accent-light: #B8DCC8;
  --border: #e4e0da;
  --card-bg: #FFFFFF;
  --tag-bg: #f0ebe5;
}

/* --- GHOST CONTENT CLASSES --- */
.kg-width-wide {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

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

.kg-width-full img {
  width: 100%;
}

.kg-image-card img,
.kg-gallery-image img {
  max-width: 100%;
  height: auto;
}

.kg-bookmark-card,
.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.kg-bookmark-content {
  padding: 16px;
  flex: 1;
}

.kg-bookmark-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.kg-bookmark-description {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- NAV --- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-subscribe {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px !important;
  transition: opacity 0.2s !important;
}

.nav-subscribe:hover { opacity: 0.8; }

/* --- HERO --- */
.hero {
  text-align: center;
  padding: 100px 48px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: clamp(44px, 6.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .bio {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.hero-cta:hover { background: #14603D; }

/* --- DIVIDER --- */
.section-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* --- CATEGORIES --- */
.categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px;
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cat-pill {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  background: var(--card-bg);
}

.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0faf5;
}

.cat-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- SECTION LABELS --- */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

/* --- TAG --- */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tag-sm {
  font-size: 10px;
  padding: 3px 10px;
}

/* --- DATE --- */
.date {
  font-size: 13px;
  color: #a8a39b;
}

.date-sm { font-size: 12px; }

/* --- FEATURED GRID --- */
.featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.featured-main {
  display: block;
  transition: transform 0.3s ease;
}

.featured-main:hover { transform: translateY(-4px); }

.featured-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.featured-main h2 {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.featured-main .excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  display: flex;
  gap: 20px;
  align-items: start;
  transition: transform 0.2s ease;
}

.sidebar-card:hover { transform: translateX(4px); }

.sidebar-card img {
  width: 140px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.sidebar-card h3 {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

/* --- POSTS GRID --- */
.posts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.post-card {
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover { transform: translateY(-4px); }

.post-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}

.post-card h3 {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.post-card .excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- READ ON SUBSTACK LINK --- */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.read-more:hover { gap: 10px; }

.read-more::after {
  content: '\2192';
}

/* --- ABOUT SECTION --- */
.about-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 48px;
}

.about-section .section-label {
  text-align: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-text .paid-note {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
}

/* --- CTA BANNER --- */
.cta-banner {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 48px;
}

.cta-inner {
  background: var(--text);
  border-radius: 20px;
  padding: 80px 60px;
  text-align: center;
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
}

.cta-inner h2 {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.cta-inner p {
  color: #a8a39b;
  font-size: 16px;
  margin-bottom: 36px;
  position: relative;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  position: relative;
}

.cta-button:hover { background: #14603D; }

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: 18px;
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover { color: var(--text); }

/* --- ABOUT PAGE --- */
.about-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 48px 80px;
}

.about-page h1 {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 48px;
}

.about-page h1 em {
  font-style: italic;
  color: var(--accent);
}

.about-photo {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 48px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.about-page p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.about-page .paid-note {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  font-style: italic;
  margin-top: 40px;
  margin-bottom: 48px;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .site-nav { padding: 20px 24px; }
  .hero { padding: 60px 24px 50px; }
  .categories { padding: 40px 24px; }
  .featured { padding: 0 24px; }
  .featured-grid { grid-template-columns: 1fr; }
  .posts-section { padding: 60px 24px; }
  .posts-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-banner { padding: 0 24px; }
  .cta-inner { padding: 60px 32px; }
  .site-footer { padding: 32px 24px; flex-direction: column; gap: 16px; }
  .section-divider { padding: 0 24px; }
  .about-section { padding: 60px 24px; }
  .about-page { padding: 60px 24px 50px; }
}

/* --- MOBILE MENU --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

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

.mobile-menu a {
  font-family: 'Special Elite', 'Courier New', cursive;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .close-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

.mobile-menu .close-menu svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .sidebar-card { flex-direction: column; }
  .sidebar-card img { width: 100%; height: auto; aspect-ratio: 3/2; }
}
