/* ── Bibliotech Landing Page ── */

:root {
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --ink: #1a1008;
  --ink-soft: #3d2e1a;
  --ink-muted: #6b5a45;
  --wood-gold: #c4a574;
  --wood-mid: #8b6914;
  --accent: #7c4a1e;
  --accent-hover: #5c3317;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--ink-soft) !important;
}

/* ── HERO ── */

.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-decoration {
  margin-top: 4rem;
}

.hero-line {
  width: 80px;
  height: 1px;
  background: var(--wood-gold);
  margin: 0 auto;
}

/* ── BUTTONS ── */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid rgba(107, 90, 69, 0.3);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

/* ── SCOPE (STATS BAR) ── */

.scope {
  padding: 3rem 0;
  border-top: 1px solid rgba(196, 165, 116, 0.25);
  border-bottom: 1px solid rgba(196, 165, 116, 0.25);
}

.scope-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.scope-stat {
  text-align: center;
}

.scope-number {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.scope-label {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: 0.25rem;
  display: block;
}

/* ── COLLECTIONS ── */

.collections {
  padding: 5rem 0;
}

.collections h2,
.reader-section h2,
.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
}

.section-sub {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.7;
}

.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.coll-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(196, 165, 116, 0.2);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.coll-card:hover {
  border-color: rgba(196, 165, 116, 0.5);
  box-shadow: 0 2px 12px rgba(26, 16, 8, 0.06);
}

.coll-region {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood-mid);
  margin-bottom: 0.5rem;
}

.coll-card h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.625rem;
  color: var(--ink);
}

.coll-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

/* ── READER FEATURES ── */

.reader-section {
  padding: 5rem 0;
  background: var(--ink);
  color: var(--cream-dark);
}

.reader-section h2 {
  color: var(--cream);
}

.reader-section .section-sub {
  color: rgba(232, 224, 208, 0.65);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid rgba(196, 165, 116, 0.12);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: rgba(196, 165, 116, 0.3);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--wood-gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.feature p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(232, 224, 208, 0.6);
  margin: 0;
}

/* ── CTA ── */

.cta-section {
  padding: 5rem 0;
}

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

.cta-inner h2 {
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
  font-weight: 300;
}

/* ── FOOTER ── */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(196, 165, 116, 0.25);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.footer-brand a {
  color: var(--ink-muted);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .scope-grid {
    gap: 2rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ── SMOOTH SCROLL ── */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
