/* ==========================================================================
   book.css — coming-soon page for Takkeem's untitled memoir
   Design intent: an aged paper broadsheet with restrained editorial voice.
   Same brand universe as babyoftheband.com, but quieter, more intimate.
   ========================================================================== */

.book-page {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

.book-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 8px 12px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ------------------------------------------------------------------ */
/* Paper backdrop — layered texture built with CSS gradients          */
/* ------------------------------------------------------------------ */
.paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.paper__grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(107, 74, 43, 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(107, 74, 43, 0.05) 0, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(217, 164, 65, 0.04) 0, transparent 60%);
  mix-blend-mode: multiply;
}
.paper__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(107, 74, 43, 0.1) 90%,
    rgba(107, 74, 43, 0.2) 100%
  );
}
.paper__foxing {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 121, 28, 0.09) 0,
    rgba(168, 121, 28, 0.04) 30%,
    transparent 70%
  );
  filter: blur(20px);
}
.paper__foxing--tl {
  top: -100px;
  left: -80px;
}
.paper__foxing--br {
  bottom: -120px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(229, 84, 26, 0.08) 0,
    rgba(229, 84, 26, 0.03) 40%,
    transparent 75%
  );
}

/* ------------------------------------------------------------------ */
/* Nav — the "colophon at the head of the page"                       */
/* ------------------------------------------------------------------ */
.book-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px var(--pad-x) 24px;
  border-bottom: 1px solid var(--ink-15);
}
.book-nav__mark {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.mark__stack {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
}
.mark__row--ital {
  font-style: italic;
  font-weight: 400;
  color: var(--sepia);
  font-size: 0.75em;
  padding: 2px 0;
}
.book-nav__back {
  align-self: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-15);
  padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.book-nav__back:hover {
  color: var(--heat);
  border-color: var(--heat);
}

/* ------------------------------------------------------------------ */
/* Shared: folio (page number label)                                  */
/* ------------------------------------------------------------------ */
.plate__folio,
.broadsheet__folio {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
}
.plate__folio-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 3px 8px;
  border: 1px solid var(--ink-15);
  border-radius: 2px;
}

/* ------------------------------------------------------------------ */
/* SECTION 1 — Bookplate                                              */
/* ------------------------------------------------------------------ */
.plate {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 12vh, 140px) var(--pad-x) clamp(80px, 14vh, 160px);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.plate__frame {
  position: relative;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--ink-15);
  outline: 1px solid var(--ink-15);
  outline-offset: 8px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    to bottom,
    rgba(251, 246, 236, 0.4) 0%,
    rgba(251, 246, 236, 0.15) 100%
  );
}
.plate__relief {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/book/assets/ra-relief.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.25;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.plate__frame > *:not(.plate__relief) {
  position: relative;
  z-index: 1;
}
.plate__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.plate__eyebrow-line {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: var(--sepia);
  opacity: 0.35;
}
.plate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.plate__title-line {
  display: block;
}
.plate__title-line--ital em {
  font-style: italic;
  font-weight: 300;
  color: var(--heat);
}
.plate__byline {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin: clamp(28px, 4vw, 44px) 0 0;
}
.plate__byline-name {
  color: var(--ink);
  font-weight: 500;
}
.plate__ornament {
  color: var(--sepia);
  margin: clamp(32px, 4vw, 48px) auto;
  max-width: 220px;
  opacity: 0.6;
}
.plate__ornament svg {
  width: 100%;
  height: auto;
  display: block;
}
.plate__epigraph {
  margin: 0 auto;
  max-width: 540px;
  padding: 0;
  border: 0;
}
.plate__epigraph p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 12px;
}
.plate__epigraph cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
}
.plate__stamp {
  margin: clamp(40px, 6vw, 60px) 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.7;
}
.stamp__dot {
  color: var(--heat);
}
.stamp__line {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .plate__stamp {
    font-size: 9px;
    letter-spacing: 0.22em;
    gap: 8px;
  }
}
.plate__scroll {
  margin: clamp(60px, 10vh, 110px) 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.plate__scroll-arrow {
  font-size: 16px;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* SECTION 2 — Broadsheet excerpt                                     */
/* ------------------------------------------------------------------ */
.broadsheet {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(60px, 10vh, 120px);
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
  background: rgba(251, 246, 236, 0.25);
}
.broadsheet__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.broadsheet__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 780px) {
  .broadsheet__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.broadsheet__meta {
  border-left: 2px solid var(--heat);
  padding: 4px 0 4px 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}
.broadsheet__meta-row {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.broadsheet__meta-label {
  color: var(--sepia);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
}
.broadsheet__meta-value {
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.broadsheet__meta-value--heat {
  color: var(--heat);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.broadsheet__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--heat);
  box-shadow: 0 0 0 0 rgba(229, 84, 26, 0.6);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 84, 26, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(229, 84, 26, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 84, 26, 0);
  }
}
.broadsheet__quote {
  margin: 0;
  padding: 0;
  border: 0;
}
.broadsheet__pull {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.dropcap {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 6.2em;
  line-height: 0.82;
  padding: 6px 14px 0 0;
  color: var(--heat);
  font-variation-settings: "opsz" 144;
}
.broadsheet__cite {
  display: block;
  margin: 32px 0 0;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  align-items: center;
  gap: 12px;
}
.broadsheet__cite .tape {
  background: var(--ink);
  color: var(--parchment);
  padding: 3px 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.broadsheet__cite-title {
  color: var(--ink);
  text-transform: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
}
.broadsheet__rule {
  margin: 60px auto 24px;
  height: 1px;
  max-width: 200px;
  background: var(--ink-15);
  position: relative;
}
.broadsheet__rule::before,
.broadsheet__rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--sepia);
  border-radius: 50%;
  background: var(--parchment);
}
.broadsheet__rule::before {
  left: -3px;
}
.broadsheet__rule::after {
  right: -3px;
}
.broadsheet__whisper {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--sepia);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ */
/* SECTION 3 — Pillars (why)                                          */
/* ------------------------------------------------------------------ */
.pillars {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
}
.pillars__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.pillars__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 20px 0 clamp(50px, 6vw, 80px);
  max-width: 900px;
  font-variation-settings: "opsz" 144;
}
.pillars__title span {
  display: inline-block;
  margin-right: 0.3em;
}
.pillars__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--heat);
  display: inline-block;
  margin-right: 0.3em;
}
.pillars__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 56px);
  counter-reset: pillar;
}
@media (max-width: 780px) {
  .pillars__list {
    grid-template-columns: 1fr;
  }
}
.pillar {
  padding: 24px 0 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--heat);
  transform: translateY(-1px);
}
.pillar__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heat);
  display: block;
  margin: 0 0 14px;
  font-weight: 500;
}
.pillar__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.pillar__body em {
  font-style: italic;
  color: var(--sepia);
}
.pillar__link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--heat);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}
.pillar__link:hover {
  color: var(--heat);
}

/* ------------------------------------------------------------------ */
/* SECTION 4 — Subscribe                                              */
/* ------------------------------------------------------------------ */
.subscribe {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  background: linear-gradient(
    to bottom,
    var(--parchment) 0%,
    rgba(241, 233, 218, 0.6) 100%
  );
  border-top: 1px solid var(--ink-15);
}
.subscribe__inner {
  max-width: 780px;
  margin: 0 auto;
}
.subscribe__head {
  text-align: center;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.subscribe__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--heat);
  margin: 0 0 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.subscribe__eyebrow::before,
.subscribe__eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--heat);
}
.subscribe__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.subscribe__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--heat);
}
.subscribe__lede {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 560px;
  margin: 0 auto;
}

.subscribe__form {
  background: var(--bone-soft);
  border: 1px solid var(--ink-15);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
.subscribe__form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 3px;
  background: var(--heat);
}
.subscribe__row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 620px) {
  .subscribe__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sepia);
  font-weight: 500;
}
.field__hint {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sepia);
  margin-left: 6px;
}
.field__input {
  font-family: var(--serif);
  font-size: 18px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.field__input::placeholder {
  color: var(--ink-40);
  font-style: italic;
  font-weight: 300;
}
.field__input:focus {
  border-color: var(--heat);
}

.subscribe__reasons {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.subscribe__reasons legend {
  padding: 0;
  margin: 0 0 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  cursor: pointer;
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--ink-15);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  transition: all 0.2s ease;
  border-radius: 2px;
}
.chip:hover span {
  border-color: var(--ink);
  color: var(--ink);
}
.chip input:checked + span {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--heat);
  outline-offset: 2px;
}

.subscribe__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--parchment);
  border: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease;
  width: 100%;
}
.subscribe__cta-fill {
  position: absolute;
  inset: 0;
  background: var(--heat);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.subscribe__cta-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.subscribe__cta-arrow {
  transition: transform 0.28s ease;
}
.subscribe__cta:hover .subscribe__cta-fill {
  transform: translateY(0);
}
.subscribe__cta:hover .subscribe__cta-arrow {
  transform: translateX(6px);
}
.subscribe__cta:active {
  transform: scale(0.99);
}
.subscribe__cta:focus-visible {
  outline: 2px solid var(--heat);
  outline-offset: 3px;
}
.subscribe__cta[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.subscribe__note {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--sepia);
  line-height: 1.5;
  text-align: center;
}
.subscribe__status {
  margin: 20px 0 0;
  padding: 14px 18px;
  background: rgba(229, 84, 26, 0.08);
  border-left: 3px solid var(--heat);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.subscribe__status.is-error {
  background: rgba(107, 74, 43, 0.1);
  border-left-color: var(--sepia);
  color: var(--sepia);
}

.subscribe__signature {
  margin: clamp(40px, 6vw, 60px) 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--sepia);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.subscribe__signature-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--sepia);
  opacity: 0.4;
}

/* ------------------------------------------------------------------ */
/* Colophon                                                           */
/* ------------------------------------------------------------------ */
.colophon {
  position: relative;
  z-index: 2;
  padding: clamp(50px, 8vh, 90px) var(--pad-x) clamp(40px, 6vh, 70px);
  border-top: 1px solid var(--ink-15);
}
.colophon__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 780px) {
  .colophon__inner {
    grid-template-columns: 1fr;
  }
}
.colophon__line {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.colophon__line--wide {
  grid-column: 1 / -1;
  border-top: 1px solid var(--ink-15);
  padding-top: 20px;
  margin-top: 12px;
}
.colophon__label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sepia);
  font-size: 10px;
}
.colophon__value {
  color: var(--ink);
}
.colophon__line--wide .colophon__value {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--ink-70);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ------------------------------------------------------------------ */
/* Reveal-on-scroll (progressive enhancement)                         */
/* ------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .plate__scroll-arrow,
  .broadsheet__pulse {
    animation: none;
  }
}
