/* Authority.Coffee — Ebooks
   Page-specific styles. Reuses brand variables from /style.css. */

:root {
  --rule: #D4C5B8;
  --mid-brown: #6B4F3A;
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.eb-hero {
  background: var(--warm-cream, #F5EFE6);
  padding: 96px 24px 72px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.eb-hero__inner {
  max-width: 880px;
  margin: 0 auto;
}
.eb-hero__overline {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.eb-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.12;
  margin: 0 0 24px;
  letter-spacing: -.005em;
}
.eb-hero__sub {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--mid-brown);
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 640px;
}
.eb-hero__author {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--espresso);
  margin: 0 0 36px;
}
.eb-hero__author strong { font-style: normal; font-weight: 600; }
.eb-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.eb-hero__trust {
  font-family: 'Barlow', sans-serif;
  font-size: .8rem;
  font-weight: 400;
  color: var(--mid-brown);
  letter-spacing: .04em;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.eb-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Barlow', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: opacity .15s ease, background .15s ease;
}
.eb-btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.eb-btn--primary:hover { opacity: .88; }
.eb-btn--ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.eb-btn--ghost:hover { background: var(--espresso); color: #fff; }
.eb-btn--gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.eb-btn--gold-outline:hover { background: var(--gold); color: #fff; }
.eb-btn--inverse {
  background: var(--gold);
  color: var(--espresso);
  border-color: var(--gold);
  font-weight: 600;
}
.eb-btn--inverse:hover { opacity: .92; }
.eb-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ─── Section frame ───────────────────────────────────────────────── */
.eb-section {
  padding: 80px 24px;
  background: var(--light-cream, #FAF7F2);
}
.eb-section--cream { background: var(--warm-cream, #F5EFE6); }
.eb-section--espresso {
  background: var(--espresso);
  color: #F5EFE6;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.eb-section__inner { max-width: 1080px; margin: 0 auto; }
.eb-section__inner--narrow { max-width: 800px; margin: 0 auto; }
.eb-section__overline {
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eb-section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0 0 32px;
}
.eb-section--espresso .eb-section__title { color: #F5EFE6; }
.eb-section--espresso .eb-section__overline { color: var(--gold); }

/* ─── Authority section ──────────────────────────────────────────── */
.eb-authority p {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid-brown);
  line-height: 1.85;
  margin: 0 0 18px;
}

/* ─── Volume 1 featured block ────────────────────────────────────── */
.eb-featured {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.eb-featured__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eb-featured__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0 0 8px;
  line-height: 1.18;
}
.eb-featured__sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mid-brown);
  margin: 0 0 20px;
}
.eb-featured__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--espresso);
  margin: 0 0 20px;
}
.eb-featured__chapters {
  list-style: none;
  padding: 0;
  margin: 0;
}
.eb-featured__chapters li {
  font-family: 'Barlow', sans-serif;
  font-size: .92rem;
  color: var(--espresso);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.eb-featured__chapters li:last-child { border-bottom: 0; }
.eb-featured__chapters li strong { font-weight: 500; color: var(--gold); margin-right: 8px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }

/* ─── Volume grid ────────────────────────────────────────────────── */
.eb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.eb-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.eb-card__info {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  padding: 0;
  z-index: 2;
}
.eb-card__info:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.eb-card__num {
  font-family: 'Barlow', sans-serif;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding-right: 38px;
}
.eb-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.22;
  margin: 0 0 6px;
  padding-right: 8px;
}
.eb-card__subline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: .96rem;
  color: var(--mid-brown);
  line-height: 1.4;
  margin: 0 0 14px;
}
.eb-card__teaser {
  font-family: 'Barlow', sans-serif;
  font-size: .86rem;
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.62;
  margin: 0 0 14px;
  opacity: .82;
}
.eb-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}
.eb-card__bullets li {
  font-family: 'Barlow', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  color: var(--mid-brown);
  line-height: 1.55;
  padding: 6px 0 6px 16px;
  position: relative;
}
.eb-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.eb-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  gap: 10px;
  flex-wrap: wrap;
}
.eb-card__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--espresso);
}
.eb-card__actions {
  display: flex;
  gap: 8px;
}
.eb-btn--primary-sm,
.eb-btn--ghost-sm {
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.eb-btn--primary-sm {
  background: var(--gold);
  color: #fff;
}
.eb-btn--primary-sm:hover { opacity: .88; }
.eb-btn--ghost-sm {
  background: transparent;
  color: var(--gold);
}
.eb-btn--ghost-sm:hover { background: var(--gold); color: #fff; }

/* ─── Bundle section (espresso bg) ───────────────────────────────── */
.eb-bundle { text-align: center; padding: 88px 24px; }
.eb-bundle__overline {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eb-bundle__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 500;
  color: #F5EFE6;
  margin: 0 0 18px;
  line-height: 1.15;
}
.eb-bundle__title em { color: var(--gold); font-style: normal; }
.eb-bundle__body {
  font-family: 'Barlow', sans-serif;
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(245,239,230,0.78);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 16px;
}
.eb-bundle__save {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 32px;
}
.eb-bundle__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 28px;
  letter-spacing: -.005em;
}
.eb-bundle__note {
  font-family: 'Barlow', sans-serif;
  font-size: .85rem;
  color: rgba(245,239,230,0.68);
  margin-top: 24px;
  letter-spacing: .04em;
}

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.eb-faq__item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.eb-faq__q {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0 0 10px;
}
.eb-faq__a {
  font-family: 'Barlow', sans-serif;
  font-size: .94rem;
  color: var(--mid-brown);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}
.eb-faq__a a { color: var(--gold); }

/* ─── Coming Soon page ───────────────────────────────────────────── */
.eb-soon {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  background: var(--warm-cream, #F5EFE6);
  text-align: center;
}
.eb-soon__inner { max-width: 640px; }
.eb-soon__overline {
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.eb-soon__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.15;
  margin: 0 0 22px;
}
.eb-soon__body {
  font-family: 'Barlow', sans-serif;
  font-size: 1.02rem;
  color: var(--mid-brown);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 36px;
}
.eb-soon__rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 32px auto;
  border: 0;
}

/* ─── Download page ──────────────────────────────────────────────── */
.eb-thanks { padding: 96px 24px; background: var(--warm-cream); min-height: 70vh; }
.eb-thanks__inner {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 48px 40px;
}
.eb-thanks__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0 0 16px;
}
.eb-thanks__body {
  font-family: 'Barlow', sans-serif;
  color: var(--mid-brown);
  line-height: 1.75;
  font-weight: 300;
  margin: 0 0 24px;
}
.eb-thanks__list { list-style: none; padding: 0; margin: 0 0 24px; }
.eb-thanks__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  gap: 18px;
  flex-wrap: wrap;
}
.eb-thanks__vol {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--espresso);
}

/* ─── Modal (Sample + Info) ──────────────────────────────────────── */
.eb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.eb-modal--open { opacity: 1; pointer-events: auto; }
.eb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 13, 8, 0.78);
  cursor: pointer;
}
.eb-modal__panel {
  position: relative;
  background: var(--warm-cream, #F5EFE6);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gold-dim);
  border-top: 3px solid var(--gold);
  transform: translateY(8px);
  transition: transform .2s ease;
}
.eb-modal--open .eb-modal__panel { transform: translateY(0); }
.eb-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: var(--mid-brown);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color .15s ease;
}
.eb-modal__close:hover { color: var(--espresso); }
.eb-modal__head {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--rule);
}
.eb-modal__overline {
  font-family: 'Barlow', sans-serif;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eb-modal__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.2;
  margin: 0 0 6px;
  padding-right: 36px;
}
.eb-modal__sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--mid-brown);
  margin: 0;
  line-height: 1.45;
}
.eb-modal__body {
  padding: 28px 40px;
  overflow-y: auto;
  flex: 1;
  font-family: 'Barlow', sans-serif;
  font-size: .94rem;
  color: var(--espresso);
  line-height: 1.75;
  font-weight: 300;
}
.eb-modal__body p { margin: 0 0 14px; }
.eb-modal__body p:last-child { margin-bottom: 0; }
.eb-modal__foot {
  border-top: 1px solid var(--rule);
  padding: 20px 40px;
  background: #fff;
}
.eb-modal__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sample-empty state */
.eb-sample-empty p { font-size: .92rem; color: var(--mid-brown); }
.eb-sample-empty p:first-child { color: var(--espresso); }

/* Editorial sample (Chapter / Preface preview) — book-style serif */
.eb-sample-prose {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--espresso);
  font-weight: 400;
}
.eb-sample-prose p {
  margin: 0 0 18px;
  text-align: left;
}
.eb-sample-prose em {
  font-style: italic;
  color: var(--espresso);
}
.eb-sample-section {
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  text-align: center;
}
.eb-sample-lead {
  font-size: 1.32rem !important;
  font-style: italic;
  color: var(--espresso);
  text-align: center !important;
  margin: 0 auto 26px !important;
  max-width: 520px;
  line-height: 1.55 !important;
}
.eb-sample-emphasis {
  font-style: italic;
  font-size: 1.18rem !important;
  text-align: center !important;
  color: var(--gold);
  margin: 30px auto !important;
  max-width: 520px;
  line-height: 1.55 !important;
}
.eb-sample-rule {
  border: 0;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 36px auto 28px;
}
.eb-sample-signoff {
  text-align: center;
  font-style: italic;
  color: var(--mid-brown);
  font-size: .98rem;
  line-height: 1.7;
}
.eb-sample-signoff div { margin-bottom: 2px; }
.eb-sample-signoff a {
  color: var(--gold);
  text-decoration: none;
}
.eb-sample-signoff a:hover { text-decoration: underline; }

/* Metadata definition list (Info modal) */
.eb-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 18px;
  margin: 0;
  font-size: .88rem;
}
.eb-meta dt {
  font-family: 'Barlow', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
}
.eb-meta dd {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.55;
}
.eb-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.eb-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--gold-dim);
  font-family: 'Barlow', sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--mid-brown);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .eb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eb-featured { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 560px) {
  .eb-grid { grid-template-columns: 1fr; }
  .eb-section { padding: 56px 20px; }
  .eb-bundle { padding: 64px 20px; }
  .eb-hero { padding: 72px 20px 56px; }
  .eb-featured { padding: 32px 22px; }
  .eb-thanks__inner { padding: 32px 24px; }
  .eb-modal__head { padding: 28px 24px 18px; }
  .eb-modal__body { padding: 24px; }
  .eb-modal__foot { padding: 16px 24px; }
  .eb-modal__cta { flex-direction: column; align-items: stretch; }
  .eb-meta { grid-template-columns: 1fr; gap: 4px 0; }
  .eb-meta dt { padding-top: 8px; }
  .eb-meta dd { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
  .eb-meta dd:last-child { border-bottom: 0; }
}
