/* WOT Publishing — Journey System
   Design: editorial, restrained, serif-led */

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #1a1612;
  background: #f6f2ea;
  line-height: 1.65;
  min-height: 100vh;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

::selection {
  background: #d8d2c8;
  color: #1a1612;
}

/* ========================================
   Layout container
   ======================================== */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

main {
  flex: 1;
}

/* ========================================
   Masthead — stamp of authorship
   ======================================== */
.site-header {
  padding: 104px 0 64px;
  text-align: center;
}

.masthead {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #1a1612;
  gap: 64px;
}

.masthead-logo {
  display: block;
  height: 68px;
  width: auto;
  opacity: 0.96;
  transition: opacity 0.2s ease;
}

.masthead:hover .masthead-logo {
  opacity: 1;
}

.masthead-tagline {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: #a49b8e;
  letter-spacing: 0.025em;
  line-height: 1;
}

/* ========================================
   Footer — closing signature
   ======================================== */
.site-footer {
  padding: 128px 0 80px;
  margin-top: 400px;
  text-align: center;
  border-top: 1px solid #ece7dc;
}

.site-footer .footer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  color: #5c544a;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.site-footer .footer-contact {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-footer a {
  color: #8a8074;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #1a1612;
}

/* ========================================
   Landing — Hero
   ======================================== */
.landing {
  padding: 40px 0 0;
}

.hero {
  text-align: center;
  padding: 32px 0 192px;
  max-width: 660px;
  margin: 0 auto;
}

.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #1a1612;
  margin: 0 auto 112px;
  max-width: 600px;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.hero-support {
  margin-bottom: 144px;
}

.hero-support p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
  color: #3a332a;
}

.hero-block {
  margin-bottom: 0;
}

.hero-pivot {
  margin-top: 64px;
  font-style: italic;
  color: #1a1612;
}

.hero-coda {
  margin-top: 32px;
}

.hero-instruction {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #a49b8e;
  line-height: 1.7;
  letter-spacing: 0.015em;
  margin-top: 0;
}

/* ========================================
   Landing — Stage rows (editorial entries)
   ======================================== */
.stages {
  padding: 240px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}

.stage-row {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding: 112px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.25s ease;
}

.stage-row:hover .stage-numeral {
  color: #000;
}

.stage-row:hover .stage-row-title {
  text-decoration-color: #8a8074;
}

.stage-row:hover .stage-row-tagline {
  color: #2a241e;
}

.stage-row:hover .stage-text {
  transform: translateX(6px);
}

.stage-numeral {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 58px;
  color: #1a1612;
  flex-shrink: 0;
  min-width: 108px;
  line-height: 1.02;
  letter-spacing: 0.03em;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  transition: color 0.25s ease;
}

.stage-text {
  flex: 1;
  padding-top: 12px;
  transition: transform 0.25s ease;
}

.stage-row-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.22;
  color: #1a1612;
  margin-bottom: 18px;
  letter-spacing: -0.008em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 8px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.stage-row-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: #5c544a;
  transition: color 0.25s ease;
}

.stage-divider {
  border: none;
  border-top: 1px solid #ece7dc;
  margin: 0;
}

/* ========================================
   Stage Page — Editorial
   ======================================== */
.stage-page {
  padding: 16px 0 48px;
  max-width: 680px;
  margin: 0 auto;
}

.stage-masthead {
  padding: 72px 0 88px;
  text-align: center;
  position: relative;
}

.stage-numeral-large {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(72px, 12vw, 112px);
  line-height: 1;
  color: #d8d2c8;
  letter-spacing: 0.015em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
  user-select: none;
}

.stage-eyebrow {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #8a8074;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.stage-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #1a1612;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.stage-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  color: #3a332a;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.stage-description {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: #3a332a;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Stage Longform — editorial reading
   ======================================== */
.stage-longform {
  padding: 16px 0 48px;
  max-width: 720px;
  margin: 0 auto;
}

.stage-longform .stage-masthead {
  padding: 72px 0 120px;
}

.stage-opening-line {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: #5c544a;
  max-width: 540px;
  margin: 36px auto 0;
  letter-spacing: 0.005em;
}

.stage-longform .back-link {
  color: #b8afa3;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.stage-longform .back-link:hover {
  color: #5c544a;
}

.longform-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 16px;
}

.longform-section {
  margin-bottom: 112px;
}

.longform-section:last-child {
  margin-bottom: 0;
}

.longform-content p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  color: #1a1612;
  margin-bottom: 36px;
  letter-spacing: -0.003em;
}

.longform-content p:last-child {
  margin-bottom: 0;
}

.longform-closing {
  max-width: 560px;
  margin: 160px auto 0;
  text-align: center;
}

.longform-closing p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  color: #3a332a;
  margin-bottom: 16px;
}

.longform-closing p:last-child {
  margin-bottom: 0;
}

.longform-cta {
  text-align: center;
  padding: 96px 0 32px;
}

.longform-cta-link {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: #1a1612;
  text-decoration: underline;
  text-decoration-color: #c9c1b3;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  letter-spacing: 0.005em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.longform-cta-link:hover {
  color: #5c544a;
  text-decoration-color: #5c544a;
}

/* ========================================
   Bundle Entry — Editorial (no card chrome)
   ======================================== */
.stage-bundles {
  padding: 48px 0 64px;
  border-top: 1px solid #e4dfd4;
}

.bundle-entry {
  padding: 64px 0 72px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border-bottom: 1px solid #e4dfd4;
}

.bundle-entry:last-child {
  border-bottom: none;
}

.bundle-entry-eyebrow {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #8a8074;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}

.bundle-entry-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: #1a1612;
  margin-bottom: 20px;
}

.bundle-entry-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: #5c544a;
  margin-bottom: 36px;
}

.bundle-entry-link {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1a1612;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 4px;
  border-bottom: 1px solid #1a1612;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bundle-entry-link:hover {
  color: #5c544a;
  border-bottom-color: #5c544a;
}

/* ========================================
   Stage Passage (transitional stages)
   ======================================== */
.stage-passage {
  padding: 96px 0 48px;
  text-align: center;
  border-top: 1px solid #e4dfd4;
}

.stage-passage p {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: #8a8074;
  line-height: 1.6;
}

/* ========================================
   Stage Forward (transitional → next)
   ======================================== */
.stage-forward {
  padding: 32px 0 48px;
  text-align: center;
}

.stage-forward-line {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #8a8074;
  line-height: 1.6;
  margin-bottom: 20px;
}

.stage-forward-link {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1a1612;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 4px;
  border-bottom: 1px solid #1a1612;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.stage-forward-link:hover {
  color: #5c544a;
  border-bottom-color: #5c544a;
}

/* ========================================
   Bundle Detail Page
   ======================================== */
.bundle-page {
  padding: 24px 0 48px;
  max-width: 640px;
  margin: 0 auto;
}

.bundle-detail {
  padding: 32px 0;
}

.bundle-detail h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 16px 0 28px;
  color: #1a1612;
}

.bundle-description {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: #3a332a;
  line-height: 1.7;
  margin-bottom: 40px;
}

.bundle-contents {
  border-top: 1px solid #e4dfd4;
  border-bottom: 1px solid #e4dfd4;
  padding: 28px 0;
  margin-bottom: 48px;
}

.bundle-contents h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #8a8074;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.bundle-contents ul {
  list-style: none;
  padding: 0;
}

.bundle-contents li {
  padding: 10px 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: #1a1612;
  line-height: 1.5;
}

/* ========================================
   Purchase section
   ======================================== */
.purchase-section {
  text-align: center;
  padding: 32px 0 16px;
}

.price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #1a1612;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.purchase-btn {
  display: inline-block;
  background: #1a1612;
  color: #f6f2ea;
  border: none;
  padding: 18px 44px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.purchase-btn:hover {
  background: #3a332a;
}

.purchase-btn:disabled {
  background: #8a8074;
  cursor: wait;
}

.purchase-note {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #8a8074;
  margin-top: 16px;
}

/* ========================================
   Download Page
   ======================================== */
.download-page {
  text-align: center;
  padding: 48px 0 0;
  max-width: 580px;
  margin: 0 auto;
}

.confirmation {
  margin-bottom: 48px;
}

.check-icon {
  display: none;
}

.download-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1612;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.download-page .subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #5c544a;
}

/* Book download list */
.books-list {
  text-align: left;
  margin: 0 auto 40px;
  border-top: 1px solid #e4dfd4;
}

.book-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  border-bottom: 1px solid #e4dfd4;
  background: transparent;
  border-radius: 0;
}

.book-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: #1a1612;
}

.download-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1a1612;
  background: transparent;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #1a1612;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.download-btn:hover {
  background: #1a1612;
  color: #f6f2ea;
}

.expiry-note {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: #8a8074;
  margin-bottom: 48px;
}

/* ========================================
   Next Stage (download page + empty stage)
   ======================================== */
.next-stage {
  border-top: 1px solid #e4dfd4;
  padding: 40px 0 0;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  border-radius: 0;
}

.next-stage p {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #5c544a;
  margin-bottom: 14px;
  line-height: 1.6;
}

.next-btn {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1a1612;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.next-btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ========================================
   Coming Soon (transitional stages)
   ======================================== */
.coming-soon {
  text-align: center;
  padding: 32px 0;
}

.coming-soon p {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: #8a8074;
}

/* ========================================
   Error Page
   ======================================== */
.error-page {
  text-align: center;
  padding: 96px 0;
}

.error-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 14px;
}

.error-page p {
  font-family: 'Fraunces', Georgia, serif;
  color: #5c544a;
  margin-bottom: 28px;
}

/* ========================================
   Back Link
   ======================================== */
.back-link {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: #8a8074;
  text-decoration: none;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #1a1612;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
  .page {
    padding: 0 20px;
  }

  .site-header {
    padding: 72px 0 44px;
  }

  .masthead {
    gap: 40px;
  }

  .masthead-logo {
    height: 52px;
  }

  .masthead-tagline {
    font-size: 14px;
  }

  .landing {
    padding: 24px 0 0;
  }

  .hero {
    padding: 16px 0 112px;
  }

  .hero-headline {
    margin-bottom: 80px;
    max-width: 100%;
  }

  .hero-support {
    margin-bottom: 104px;
  }

  .hero-support p {
    font-size: 17px;
  }

  .hero-pivot {
    margin-top: 48px;
  }

  .hero-coda {
    margin-top: 24px;
  }

  .hero-instruction {
    font-size: 13px;
  }

  .stages {
    padding: 152px 0 40px;
  }

  .stage-row {
    gap: 36px;
    padding: 80px 0;
  }

  .stage-numeral {
    font-size: 44px;
    min-width: 76px;
  }

  .stage-row-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .stage-row-tagline {
    font-size: 15px;
  }

  /* Stage page (mobile) */
  .stage-masthead {
    padding: 48px 0 64px;
  }

  .stage-numeral-large {
    margin-bottom: 20px;
  }

  .stage-bundles {
    padding: 32px 0 48px;
  }

  .bundle-entry {
    padding: 48px 0 56px;
  }

  /* Stage longform (mobile) */
  .stage-longform .stage-masthead {
    padding: 48px 0 80px;
  }

  .stage-opening-line {
    font-size: 17px;
    margin-top: 28px;
  }

  .longform-content p {
    font-size: 17px;
    line-height: 1.72;
    margin-bottom: 30px;
  }

  .longform-section {
    margin-bottom: 88px;
  }

  .longform-closing {
    margin-top: 120px;
  }

  .longform-closing p {
    font-size: 17px;
  }

  .longform-cta {
    padding: 72px 0 24px;
  }

  .longform-cta-link {
    font-size: 15px;
  }

  /* Bundle page (mobile) */
  .book-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 4px;
  }

  .purchase-btn {
    width: 100%;
    padding: 18px;
  }

  .site-footer {
    padding: 112px 0 64px;
    margin-top: 240px;
  }
}
