/* ========================================
   CultureDocs — Custom Theme
   ======================================== */

:root {
  --bg: #faf8f5;
  --bg-alt: #f0ece4;
  --fg: #1a1714;
  --fg-muted: #6b6560;
  --accent: #c2410c;
  --accent-light: #fed7aa;
  --ink: #292524;
  --ink-2: #44403c;
  --surface: #ffffff;
  --border: #e7e5e0;
  --hero-bg: #1a1714;
  --hero-fg: #faf8f5;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===================== HERO ===================== */

.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 clamp(2rem, 6vw, 7rem);
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194,65,12,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.eyebrow-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(254,215,170,0.25);
  padding: 0.35em 1em;
  border-radius: 999px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--hero-fg);
  grid-column: 1;
  align-self: end;
}

.hero-accent {
  font-style: normal;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(250,248,245,0.65);
  max-width: 42ch;
  grid-column: 1;
  align-self: start;
  margin-top: 1.5rem;
}

.hero-visual {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Book preview illustration */
.book-preview {
  display: flex;
  gap: 0;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
}

.book-spine {
  width: 18px;
  background: linear-gradient(to right, #8c3a18, #c2410c);
  border-radius: 3px 0 0 3px;
  flex-shrink: 0;
}

.book-body {
  width: 260px;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.book-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.book-logo-placeholder {
  width: 36px;
  height: 36px;
  background: var(--hero-bg);
  border-radius: 6px;
  flex-shrink: 0;
}

.book-title-block {
  flex: 1;
}

.book-title {
  height: 10px;
  width: 70%;
  background: var(--ink);
  border-radius: 2px;
  margin-bottom: 5px;
}

.book-subtitle {
  height: 7px;
  width: 50%;
  background: var(--fg-muted);
  border-radius: 2px;
}

.book-toc {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.toc-line {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 2px;
}

.toc-line.active {
  background: var(--accent);
  width: 60%;
}

.toc-line.short { width: 40%; }
.toc-line.medium { width: 80%; }

.book-content-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0.5rem;
}

.content-line {
  height: 5px;
  background: var(--border);
  border-radius: 2px;
}

.content-line.short { width: 55%; }
.content-line.medium { width: 85%; }

.book-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  margin-top: auto;
}

.badge-icon {
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-text {
  font-size: 0.72rem;
  color: #15803d;
  font-weight: 500;
}

/* ===================== WHY ===================== */

.why {
  background: var(--bg-alt);
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 7rem);
}

.why-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.why-label,
.features-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.why-statement {
  margin-bottom: 3.5rem;
}

.why-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  max-width: 60ch;
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.why-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-icon {
  font-size: 1.2rem;
  color: #dc2626;
  font-weight: 700;
  line-height: 1;
}

.why-col h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.why-col p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===================== FEATURES ===================== */

.features {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 7rem);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 4px;
  width: fit-content;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===================== VISION ===================== */

.vision {
  background: var(--ink);
  padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 6vw, 7rem);
}

.vision-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.vision-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--hero-fg);
  letter-spacing: -0.01em;
}

.vision-sub {
  margin-top: 2rem;
  font-size: 1rem;
  color: rgba(250,248,245,0.55);
  line-height: 1.6;
}

/* ===================== FOOTER ===================== */

.footer {
  background: #111110;
  padding: 2.5rem clamp(2rem, 6vw, 7rem);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-mark {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hero-fg);
}

.footer-tagline {
  flex: 1;
  font-size: 0.82rem;
  color: rgba(250,248,245,0.4);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.25);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(4rem, 10vw, 6rem);
    padding-bottom: clamp(4rem, 10vw, 6rem);
  }

  .hero-eyebrow { grid-column: 1; }
  .hero-headline { grid-column: 1; font-size: clamp(2.4rem, 8vw, 4rem); }
  .hero-sub { grid-column: 1; }
  .hero-visual {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1rem;
  }

  .book-body { width: 200px; }

  .why-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .book-body { width: 160px; padding: 1.25rem; gap: 0.75rem; }
  .book-logo-placeholder { width: 28px; height: 28px; }
}