/* ==========================================================================
   WAS IT WORTH BECOMING HUMAN? | David Lucas
   Split-Horizon Philosophical Editorial Aesthetic (Sky Ochre & Starlit Midnight)
   ========================================================================== */

:root {
  --bg-chalk: #f8f6f0;
  --bg-tint: #efece3;
  --bg-midnight: #0e1117;
  --bg-slate: #161b24;
  --gold: #e4b548;
  --gold-dark: #c29124;
  --sky: #2c7fa3;
  --text-ink: #141923;
  --text-body: #424a57;
  --text-muted: #6c7482;
  --border: rgba(20, 25, 35, 0.12);
  --font-serif: 'Newsreader', Georgia, serif;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 46px rgba(14, 17, 23, 0.08);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-chalk);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.66;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

main, section, header, footer {
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, 90%);
  margin: 0 auto;
}

.hero-grid > *,
.exp-choices > *,
.pillars-grid > *,
.audience-grid > *,
.author-grid > *,
.editions-grid > * {
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 181, 72, 0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
}

.brand-split {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg, #56bde5 50%, #e4b548 50%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #cfd6e2;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px 6%;
  background: var(--bg-slate);
  border-bottom: 1px solid rgba(228, 181, 72, 0.24);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-weight: 600;
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  max-width: 100%;
  white-space: normal;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, #f0c962 0%, #d49e2a 100%);
  color: #12151c;
  box-shadow: 0 10px 26px rgba(228, 181, 72, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(228, 181, 72, 0.4);
}

.btn-dark {
  background: var(--bg-midnight);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1f2633;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-ink);
  border-color: rgba(20, 25, 35, 0.24);
}

.btn-outline:hover {
  background: var(--bg-tint);
  transform: translateY(-2px);
}

/* Split-Horizon Hero */
.hero {
  position: relative;
  padding: 72px 0 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(73, 178, 220, 0.26) 0%, transparent 45%),
    radial-gradient(circle at 82% 76%, rgba(228, 181, 72, 0.18) 0%, transparent 46%),
    linear-gradient(135deg, #101824 0%, #0e1117 58%, #0a0c10 100%);
  color: #ffffff;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(228, 181, 72, 0.38);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.gold-accent {
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  line-height: 1.54;
  color: #dce3ee;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: #9ba6b8;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.cover-pedestal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 345px;
  width: 100%;
}

.cover-glow {
  position: absolute;
  inset: 6% -8% 14%;
  background:
    radial-gradient(circle at 25% 40%, rgba(73, 178, 220, 0.45), transparent 58%),
    radial-gradient(circle at 75% 60%, rgba(228, 181, 72, 0.3), transparent 58%);
  filter: blur(30px);
  z-index: 0;
}

.book-cover {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65);
}

.cover-caption {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cfd6e2;
  letter-spacing: 0.04em;
}

/* Marquee */
.marquee-band {
  background: #181e29;
  border-top: 1px solid rgba(228, 181, 72, 0.25);
  border-bottom: 1px solid rgba(228, 181, 72, 0.25);
  color: var(--gold);
  padding: 14px 0;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
}

.marquee-group span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Shared Sections */
.section {
  padding: 86px 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  margin-bottom: 44px;
}

.section-head.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  line-height: 1.14;
  color: var(--text-ink);
  letter-spacing: -0.015em;
}

.section-lead {
  margin: 0;
  font-size: 1.04rem;
  color: var(--text-body);
}

/* Interactive Thought Experiment */
.experiment-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
}

.exp-question {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 600;
  color: var(--text-ink);
}

.exp-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.exp-choice {
  background: var(--bg-chalk);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exp-choice:hover {
  border-color: var(--sky);
}

.exp-choice.active {
  background: var(--bg-midnight);
  border-color: var(--bg-midnight);
  color: #ffffff;
}

.exp-choice strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.exp-choice.active strong {
  color: var(--gold);
}

.exp-choice span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.exp-choice.active span {
  color: #d4dce8;
}

.exp-response {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, #f3f8fb 0%, #faf6eb 100%);
  border-left: 4px solid var(--sky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.exp-response h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--text-ink);
}

.exp-response p {
  margin: 0;
  font-size: 0.96rem;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--bg-midnight);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
}

.pillar-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--text-ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Quote Band */
.quote-band {
  background: var(--bg-midnight);
  color: #ffffff;
  padding: 72px 0;
  text-align: center;
}

.quote-inner {
  max-width: 820px;
}

.quote-mark {
  display: inline-block;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.quote-band blockquote {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.4;
}

.quote-attrib {
  margin: 0;
  font-size: 0.9rem;
  color: #b7c2d4;
}

/* Audience Grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.audience-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}

.audience-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--text-ink);
}

.audience-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Author Grid */
.author-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: center;
}

.author-art-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.horizon-art {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.author-art-caption {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.author-art-caption strong {
  font-family: var(--font-display);
  color: var(--text-ink);
}

.author-art-caption span {
  color: var(--text-muted);
}

.author-bio p {
  margin: 0 0 16px;
  font-size: 1rem;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Editions */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

.edition-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.edition-card.featured {
  border: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, #ffffff 0%, #fcf8ec 100%);
}

.ed-badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-midnight);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ed-badge.subtle {
  background: var(--bg-tint);
  color: var(--text-ink);
}

.edition-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-ink);
}

.ed-isbn {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sky);
}

.ed-desc {
  margin: 0 0 22px;
  font-size: 0.94rem;
  flex-grow: 1;
}

.ed-dual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reader Box */
.reader-box {
  background: var(--bg-midnight);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 46px 36px;
  text-align: center;
}

.reader-box .kicker {
  color: var(--gold);
}

.reader-box h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.reader-box > p {
  max-width: 60ch;
  margin: 0 auto 26px;
  color: #cfd6e2;
}

.reader-form {
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 22px;
}

.reader-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  outline: none;
}

.reader-form input::placeholder {
  color: #9ba6b8;
}

.reader-form input:focus {
  border-color: var(--gold);
}

.reader-success {
  margin-bottom: 18px;
  color: var(--gold);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #aeb8c9;
}

.contact-strip a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  background: #090b10;
  color: #aeb8c9;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.86rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .exp-choices,
  .pillars-grid,
  .audience-grid,
  .author-grid,
  .editions-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .exp-response {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero {
    padding: 42px 0 58px;
  }
  .section {
    padding: 60px 0;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cover-pedestal {
    max-width: min(295px, 82vw);
  }
  .reader-form {
    grid-template-columns: 1fr;
  }
  .experiment-box,
  .reader-box {
    padding: 28px 20px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
