/* =========================================================
   THE BOOK OF ENOCH — MESSIANIC PROPHECY EDITION
   Version 3.0 Homepage
   ========================================================= */

:root {
  --ink: #181714;
  --ink-soft: #34312b;
  --charcoal: #171713;
  --charcoal-soft: #24221d;
  --parchment: #efe7d4;
  --paper: #f8f5ed;
  --gold: #b89554;
  --gold-light: #d8c38c;
  --line: rgba(184, 149, 84, 0.35);
  --white: #ffffff;
  --max-width: 1180px;
  --reading-width: 760px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.prose {
  max-width: var(--reading-width);
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 9999;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-light);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 68% 22%, rgba(184, 149, 84, 0.19), transparent 28%),
    linear-gradient(130deg, rgba(7, 7, 6, 0.78), rgba(17, 16, 13, 0.9)),
    linear-gradient(180deg, #2d2a22, #11110f);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.025) 58% 59%, transparent 59% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    radial-gradient(circle at 15% 82%, rgba(184, 149, 84, 0.22), transparent 22%),
    radial-gradient(circle at 85% 70%, rgba(184, 149, 84, 0.12), transparent 18%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 120px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.timeline h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 7.3rem);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 780px;
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
}

.hero-copy p {
  margin: 0 0 12px;
}

.hero-declaration {
  margin: 36px 0 28px;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-style: italic;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--charcoal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-light);
}

.button-secondary {
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-marker {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-marker span {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--gold-light);
  animation: travel 2.2s ease-in-out infinite;
}

@keyframes travel {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(30px); opacity: 0; }
}

.section {
  padding: 120px 0;
}

.section-light {
  background: var(--paper);
}

.section-dark {
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 15% 15%, rgba(184, 149, 84, 0.11), transparent 24%),
    var(--charcoal);
}

.section-parchment {
  background:
    linear-gradient(rgba(239, 231, 212, 0.96), rgba(239, 231, 212, 0.96)),
    repeating-linear-gradient(0deg, rgba(72, 61, 40, 0.04) 0 1px, transparent 1px 4px);
}

.section-gold {
  background: var(--gold);
}

.section-closing {
  color: var(--white);
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 149, 84, 0.18), transparent 35%),
    #11110f;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-dark h2,
.section-closing h2 {
  color: var(--white);
}

.rule {
  width: 72px;
  height: 1px;
  margin: 30px 0;
  background: var(--gold);
}

.welcome p {
  margin: 0 0 24px;
}

.pull-quote {
  margin-top: 48px !important;
  padding-left: 28px;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.45;
  font-style: italic;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  align-items: start;
}

.section-copy p {
  margin: 0 0 24px;
}

.staccato {
  margin: 36px 0;
  padding: 26px 0 18px 26px;
  border-left: 1px solid var(--gold);
}

.staccato p {
  margin: 0 0 8px;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
}

.preservation-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0;
}

.preservation-sequence span {
  padding: 9px 13px;
  border: 1px solid rgba(184, 149, 84, 0.5);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.emphasis {
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.5;
}

.centered-heading {
  max-width: 850px;
  margin: 0 auto 70px;
  text-align: center;
}

.lead {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.5;
}

.lead strong {
  font-weight: 600;
}

.timeline {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 89px;
  width: 1px;
  background: rgba(84, 67, 39, 0.22);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 34px;
  padding: 0 0 64px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--parchment);
  color: #7a6030;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.timeline-content {
  padding-top: 2px;
}

.timeline h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 600;
}

.timeline p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
}

.timeline-closing {
  margin-top: 12px !important;
  color: #785f31 !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
}


.edition-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(58px, 8vw, 110px);
  align-items: center;
}

.edition-cover {
  margin: 0;
}

.cover-stage {
  position: relative;
  max-width: 470px;
  margin-inline: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 28%, rgba(216, 195, 140, 0.24), transparent 42%),
    linear-gradient(145deg, #292720, #11110f);
  border: 1px solid rgba(184, 149, 84, 0.38);
  box-shadow: var(--shadow);
}

.cover-stage::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(216, 195, 140, 0.16);
  pointer-events: none;
}

.cover-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.34);
}

.edition-cover figcaption {
  margin-top: 16px;
  color: #766b58;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.edition-content p {
  margin: 24px 0 0;
}

.edition-content .text-link {
  margin-top: 32px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: #745a2d;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.project-inner {
  max-width: 860px;
}

.project .section-kicker {
  color: rgba(24, 23, 20, 0.7);
}

.project h2 {
  max-width: 900px;
}

.project p:last-child {
  max-width: 720px;
  margin-top: 26px;
  color: rgba(24, 23, 20, 0.78);
}

.closing-invitation p {
  color: rgba(255, 255, 255, 0.74);
}

.closing-line {
  margin-top: 38px;
  color: var(--white) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.45;
  font-style: italic;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.54);
  background: #0b0b0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.footer-title {
  margin: 0;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.footer-inner p {
  margin: 2px 0 0;
  font-size: 0.76rem;
}

.copyright {
  text-align: right;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 126px;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .hero-inner {
    padding-top: 190px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 190px;
    padding-bottom: 110px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-copy {
    margin-top: 34px;
  }

  .section {
    padding: 76px 0;
  }

  .timeline::before {
    left: 25px;
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding-bottom: 48px;
  }

  .timeline-number {
    width: 50px;
    height: 50px;
  }

  .timeline h3 {
    font-size: 1.9rem;
  }

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

  .copyright {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .edition-layout {
    grid-template-columns: 1fr;
  }

  .edition-cover {
    order: 2;
  }

  .edition-content {
    order: 1;
  }

  .cover-stage {
    max-width: 430px;
  }
}

@media (max-width: 620px) {
  .cover-stage {
    padding: 14px;
  }
}
