/* =========================================================
   Recursive Pipeline — recursivepipeline.com
   Dark literary theme: deep navy, warm gold, quiet confidence
   ========================================================= */

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

:root {
  --bg: #0a0b14;
  --bg-surface: #0f1020;
  --bg-elevated: #151729;
  --gold: #c9a84c;
  --gold-light: #dfc06e;
  --gold-dim: #9a7d33;
  --blue: #5b8fa8;
  --blue-light: #7eb3c9;
  --text: #d4d4d8;
  --text-muted: #8b8b94;
  --text-bright: #eeeef0;
  --crimson: #a83240;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-bright);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-light);
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--text-bright);
}

/* --- Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 11, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Crimson Pro', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.nav-logo:hover {
  color: var(--gold-light);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--text-bright);
}

.nav-cta {
  padding: 6px 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold) !important;
  font-weight: 500 !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
  border-color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    var(--bg);
}

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

.hero-series-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-author {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-blurb {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
}

.hero-stat-divider {
  color: var(--gold-dim);
  opacity: 0.5;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.hero-cta:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-1px);
}
.hero-actions {
  margin-top: 4px;
  text-align: center;
}
.hero-actions div {
  margin-bottom: 12px;
}
.hero-actions .hero-sample {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.hero-actions .hero-sample:hover {
  color: var(--gold);
}
.hero-actions .hero-series-link {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: color 0.2s ease;
}
.hero-actions .hero-series-link:hover {
  color: var(--gold-light);
}

/* --- Section Headings --- */
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

/* --- Series Section --- */
.series {
  padding: 100px 24px;
  background: var(--bg-surface);
}

.series-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.series-tagline {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 64px;
}

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

/* --- Volume Cards --- */
.volume-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.volume-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-2px);
}

.volume-cover {
  flex-shrink: 0;
  width: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.volume-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}
.volume-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Volume Info --- */
.volume-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.volume-title {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.volume-tagline {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.volume-epigraph {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid var(--gold-dim);
  padding-left: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.volume-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  align-self: flex-start;
}
.volume-link:hover {
  color: var(--gold-light);
}

.volume-coming-soon {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  align-self: flex-start;
  font-style: italic;
}

/* --- Process Section --- */
.process {
  padding: 100px 24px;
  background: var(--bg);
}

.process-inner {
  max-width: 780px;
  margin: 0 auto;
}

.process-preamble {
  text-align: center;
  margin-bottom: 64px;
}

.process-preamble p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.process-preamble p:first-child {
  font-family: 'Crimson Pro', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
}

.process-movement {
  margin-bottom: 24px;
}

.process-movement-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 28px;
  text-align: center;
}

.process-movement-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 20px;
}

.process-movement-body p:first-child {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-bright);
}

.process-colophon {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.05rem !important;
  color: var(--gold) !important;
  text-align: center;
  margin-top: 40px;
}

.process-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 56px auto;
}

/* --- Author Section --- */
.author {
  padding: 100px 24px;
  background: var(--bg-surface);
}

.author-inner {
  max-width: 680px;
  margin: 0 auto;
}

.author-content {
  text-align: center;
}

.author-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.author-content a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.author-content a:hover {
  border-bottom-color: var(--gold);
}

/* --- Footer --- */
.footer {
  padding: 60px 24px 40px;
  background: var(--bg);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-name {
  font-family: 'Crimson Pro', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-bright);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 11, 20, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-title {
    letter-spacing: 0.08em;
  }

  .volumes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .volume-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .volume-cover {
    width: 160px;
  }

  .volume-epigraph {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--gold-dim);
    padding-top: 12px;
  }

  .volume-link {
    align-self: center;
  }

  .process-movement-body p {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 60px;
  }

  .series,
  .process,
  .author {
    padding: 72px 20px;
  }
}

@media (max-width: 480px) {
  .hero-blurb {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stat {
    font-size: 0.75rem;
  }

  .volume-card {
    padding: 20px 16px;
  }
}
/* v2026-04-12 */
