/* CrownNovel — Ivory Luxe */

:root {
  --ivory: #F7F2E8;
  --card: #FFFDF8;
  --purple: #3B2A5D;
  --gold: #C9A24B;
  --body: #2B2536;
  --secondary: #8A8296;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ivory);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--purple);
  line-height: 1.25;
}

a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 75, 0.5);
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--gold);
}

.crown {
  display: block;
  margin: 0 auto;
}

/* ————— Landing ————— */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.wordmark {
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 20px;
}

.tagline {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--body);
  margin-top: 14px;
  max-width: 30em;
}

.divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 32px auto;
}

.coming-soon {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 13px 28px;
  border-radius: 14px;
}

/* ————— Content pages ————— */

.page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.page-brand {
  text-align: center;
  margin-bottom: 28px;
}

.page-brand .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--purple);
  border: none;
  display: inline-block;
  margin-top: 8px;
}

.card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(59, 42, 93, 0.07);
  padding: clamp(28px, 6vw, 52px);
}

.card h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  margin-bottom: 6px;
}

.effective {
  color: var(--secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 34px 0 10px;
}

.card h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
}

.card p {
  margin: 12px 0;
}

.card ul, .card ol {
  margin: 12px 0 12px 22px;
}

.card li {
  margin: 8px 0;
}

.muted {
  color: var(--secondary);
}

/* ————— Top nav ————— */

.site-nav {
  width: 100%;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(59, 42, 93, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--purple);
}

.nav-logo .crown {
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--body);
}

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

@media (max-width: 520px) {
  .nav-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
    gap: 20px;
  }
}

/* ————— Hero badges ————— */

.badge-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

.badge {
  display: inline-block;
  background: var(--card);
  border: 1.5px solid var(--gold);
  color: var(--purple);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 30px;
}

/* ————— Sections ————— */

.section {
  width: 100%;
  padding: 72px 24px;
}

.section-alt {
  background: var(--card);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 680px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  margin-bottom: 12px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section p {
  margin-top: 16px;
}

.section-narrow > p {
  text-align: center;
}

/* ————— Featured story ————— */

.featured-story {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.featured-story img {
  width: 260px;
  max-width: 60vw;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(59, 42, 93, 0.22);
}

.featured-text {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--purple);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin-top: 6px;
}

.featured-text .by {
  color: var(--secondary);
  margin-top: 4px;
}

.featured-text .lead {
  color: var(--purple);
  font-style: italic;
  font-weight: 600;
  margin-top: 20px;
}

/* ————— How it works ————— */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 44px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.step p {
  margin-top: 0;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ————— Screenshots ————— */

.screenshot-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 44px;
}

.screenshot-row img {
  width: 210px;
  max-width: 42vw;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(59, 42, 93, 0.16);
}

/* ————— Why CrownNovel ————— */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 44px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.feature p {
  margin-top: 0;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ————— For writers ————— */

.coming-soon-text {
  color: var(--gold);
  font-weight: 700;
  text-align: center;
  margin-top: 20px;
}

/* ————— Footer ————— */

footer {
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 0.9rem;
  color: var(--secondary);
}

footer a {
  color: var(--secondary);
  margin: 0 10px;
}

footer a:hover {
  color: var(--purple);
}
