/* ============================================================
   Rhett Lawson — Ghost Theme
   Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=EB+Garamond:ital,wght@0,400;1,400&display=swap');

/* ============================================================
   Reset & Base
   ============================================================ */

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

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: #0a0405;
  color: #b8a08a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================================
   Site Wrapper
   ============================================================ */

.rl-site {
  font-family: 'EB Garamond', Georgia, serif;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   Hero
   ============================================================ */

.rl-hero {
  background: #1a0a0d;
  padding: 72px 40px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140,45,60,0.35) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 100%, rgba(110,35,45,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(160,110,30,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.rl-name {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 400;
  color: #f2e4d0;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 32px;
  position: relative;
}

.rl-hero-quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: #c8b49a;
  line-height: 1.9;
  max-width: 440px;
  margin: 0 auto 32px;
  position: relative;
}

.rl-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 28px;
  max-width: 220px;
  position: relative;
}

.rl-divider-line {
  flex: 1;
  height: 0.5px;
  background: #a04050;
  opacity: 0.5;
}

.rl-novel-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #f2e4d0;
  margin-bottom: 28px;
  position: relative;
}

.rl-cta {
  display: inline-block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8923a;
  border: 0.5px solid #a04050;
  padding: 11px 32px;
  text-decoration: none;
  cursor: pointer;
  background: rgba(140,45,60,0.15);
  position: relative;
  transition: background 0.2s;
}

.rl-cta:hover {
  background: rgba(140,45,60,0.3);
}

/* ============================================================
   Navigation
   ============================================================ */

.rl-nav {
  background: #120608;
  border-bottom: 0.5px solid #4a1e28;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.rl-nav a {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8a7060;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}

.rl-nav a:hover,
.rl-nav a.active {
  border-bottom-color: #a04050;
  color: #c8b49a;
}

/* ============================================================
   Sections
   ============================================================ */

.rl-section {
  padding: 56px 40px;
  background: #1e0d10;
  border-bottom: 0.5px solid #361520;
}

.rl-section-alt {
  padding: 56px 40px;
  background: #160a0c;
  border-bottom: 0.5px solid #361520;
}

.rl-section-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a04050;
  margin-bottom: 18px;
}

.rl-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: #f2e4d0;
  margin-bottom: 22px;
  line-height: 1.3;
}

.rl-body {
  font-size: 17px;
  line-height: 1.9;
  color: #b8a08a;
}

.rl-body + .rl-body {
  margin-top: 16px;
}

/* ============================================================
   Two Column Layout
   ============================================================ */

.rl-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.rl-portrait-placeholder {
  background: #2a1015;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid #4a1e28;
  overflow: hidden;
}

.rl-portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-portrait-inner { text-align: center; }

.rl-portrait-inner svg {
  width: 44px;
  height: 44px;
  fill: #a04050;
  margin-bottom: 8px;
  opacity: 0.45;
}

.rl-portrait-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a04050;
  opacity: 0.45;
}

/* ============================================================
   Novel Card
   ============================================================ */

.rl-novel-card {
  background: #120608;
  border: 0.5px solid #4a1e28;
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.rl-book-placeholder {
  width: 86px;
  flex-shrink: 0;
  background: #1a0a0d;
  aspect-ratio: 2/3;
  border: 0.5px solid #4a1e28;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rl-book-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-book-spine {
  width: 1.5px;
  height: 55%;
  background: #a04050;
  opacity: 0.5;
}

.rl-novel-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a04050;
  margin-bottom: 10px;
}

.rl-novel-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: #f2e4d0;
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.3;
}

.rl-novel-desc {
  font-size: 16px;
  color: #8a7060;
  line-height: 1.9;
}

/* ============================================================
   Newsletter
   ============================================================ */

.rl-newsletter {
  background: #120608;
  padding: 52px 40px;
  text-align: center;
  border-top: 0.5px solid #4a1e28;
}

.rl-newsletter-ornament {
  font-size: 11px;
  color: #a04050;
  letter-spacing: 8px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.rl-newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: #f2e4d0;
  margin-bottom: 12px;
}

.rl-newsletter-sub {
  font-size: 16px;
  font-style: italic;
  color: #8a7060;
  margin-bottom: 32px;
  line-height: 1.8;
}

.rl-input-row {
  display: flex;
  max-width: 360px;
  margin: 0 auto;
}

.rl-input-row input {
  flex: 1;
  background: #1a0a0d;
  border: 0.5px solid #4a1e28;
  border-right: none;
  color: #c8b49a;
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  padding: 11px 16px;
  outline: none;
  border-radius: 0;
}

.rl-input-row input::placeholder { color: #4a2a30; }

.rl-input-row button {
  background: #a04050;
  border: none;
  color: #f2e4d0;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 11px 22px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
}

.rl-input-row button:hover {
  background: #8a3040;
}

/* Subscribe success/error states */
.rl-subscribe-success {
  font-size: 15px;
  font-style: italic;
  color: #c8b49a;
  margin-top: 16px;
}

/* ============================================================
   Footer
   ============================================================ */

.rl-footer {
  background: #0a0405;
  padding: 22px 40px;
  text-align: center;
  border-top: 0.5px solid #2a1015;
}

.rl-footer-text {
  font-size: 11px;
  letter-spacing: 2px;
  color: #3a2025;
}

/* ============================================================
   Single Post (From the Author / The History)
   ============================================================ */

.rl-post {
  background: #160a0c;
  padding: 56px 40px;
  min-height: 60vh;
}

.rl-post-tag {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a04050;
  margin-bottom: 18px;
}

.rl-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: #f2e4d0;
  margin-bottom: 12px;
  line-height: 1.3;
  font-style: italic;
}

.rl-post-meta {
  font-size: 12px;
  letter-spacing: 2px;
  color: #4a2a30;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid #2a1015;
}

.rl-post-content {
  font-size: 18px;
  line-height: 1.9;
  color: #b8a08a;
}

.rl-post-content p {
  margin-bottom: 1.5rem;
}

.rl-post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: #f2e4d0;
  margin: 2.5rem 0 1rem;
}

.rl-post-content blockquote {
  border-left: 1px solid #a04050;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #8a7060;
}

.rl-post-content a {
  color: #b8923a;
  border-bottom: 0.5px solid rgba(184,146,58,0.3);
}

/* ============================================================
   Ghost Editor Card Width Classes (required)
   ============================================================ */

.kg-width-wide {
  margin-left: -2rem;
  margin-right: -2rem;
}

.kg-width-full {
  margin-left: -40px;
  margin-right: -40px;
}

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

.kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

/* ============================================================
   Post Archive (Writing/History listing)
   ============================================================ */

.rl-archive {
  background: #160a0c;
  padding: 56px 40px;
}

.rl-archive-item {
  padding: 28px 0;
  border-bottom: 0.5px solid #2a1015;
  display: block;
}

.rl-archive-item:first-child {
  border-top: 0.5px solid #2a1015;
}

.rl-archive-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a04050;
  margin-bottom: 8px;
}

.rl-archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: #f2e4d0;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.2s;
}

.rl-archive-item:hover .rl-archive-title {
  color: #c8b49a;
}

.rl-archive-excerpt {
  font-size: 15px;
  color: #6a5045;
  line-height: 1.7;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
  .rl-hero {
    padding: 48px 24px 40px;
  }

  .rl-name {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .rl-novel-hero-title {
    font-size: 26px;
    letter-spacing: 4px;
  }

  .rl-nav {
    padding: 0 24px;
    gap: 20px;
  }

  .rl-section,
  .rl-section-alt {
    padding: 40px 24px;
  }

  .rl-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rl-novel-card {
    flex-direction: column;
    padding: 24px;
  }

  .rl-book-placeholder {
    width: 100%;
    aspect-ratio: 3/1;
  }

  .rl-newsletter {
    padding: 40px 24px;
  }

  .rl-input-row {
    flex-direction: column;
  }

  .rl-input-row input {
    border-right: 0.5px solid #4a1e28;
    border-bottom: none;
  }

  .rl-post {
    padding: 40px 24px;
  }
}
