/* ─── EXCERPT — Atelier Muse & Co. — Auth-free Playbook preview page ─── */
:root {
  --ex-bg: #F5EDE0;             /* warm linen/cream — matches --lm-bg */
  --ex-bg-card: #fffaf0;        /* printable cream sheet */
  --ex-ink: #2C1A0E;            /* deep readable ink */
  --ex-burgundy: #3D1A2E;       /* deep plum */
  --ex-burgundy-deep: #2a131f;
  --ex-gold: #C9A96E;           /* warm brass */
  --ex-mauve: #C4949A;          /* dusty rose */
  --ex-rule: rgba(61, 26, 46, 0.12);
  --ex-font-display: 'Cormorant Garamond', Georgia, serif;
  --ex-font-body: 'DM Sans', system-ui, sans-serif;
  --ex-pad: clamp(1.5rem, 5vw, 5rem);
}

* {
  box-sizing: border-box;
}

body.ex__body {
  background: var(--ex-bg);
  color: var(--ex-ink);
  font-family: var(--ex-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ─── Page grid ─── */
.ex {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ─── Brand bar ─── */
.ex__brand {
  padding: 1.75rem var(--ex-pad);
  border-bottom: 1px solid var(--ex-rule);
  font-family: var(--ex-font-display);
  font-style: italic;
  color: var(--ex-burgundy);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: right;
}

/* ─── Main column ─── */
.ex__main {
  padding: clamp(2.5rem, 6vw, 6rem) var(--ex-pad) clamp(3rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Hero ─── */
.ex__hero {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.ex__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--ex-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
  font-weight: 500;
}

.ex__accent-rule {
  display: block;
  width: clamp(2.5rem, 8vw, 4.5rem);
  height: 1px;
  background: var(--ex-mauve);
  margin: 0.5rem 0 2rem;
  opacity: 0.85;
}

.ex__hero .ex__accent-rule {
  margin-left: auto;
  margin-right: auto;
}

.ex__title {
  font-family: var(--ex-font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 3.85rem);
  line-height: 1.15;
  color: var(--ex-burgundy);
  margin: 0 0 1.25rem;
  letter-spacing: 0.005em;
}

.ex__lede {
  margin: 0 auto;
  font-family: var(--ex-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--ex-burgundy);
  line-height: 1.5;
  max-width: 34rem;
}

/* ─── Spread card ─── */
.ex__spread {
  background: var(--ex-bg-card);
  border: 1px solid rgba(196, 148, 154, 0.35);
  border-radius: 4px;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  box-shadow: 0 1px 0 rgba(61, 26, 46, 0.04), 0 24px 60px -32px rgba(61, 26, 46, 0.3);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.ex__spread-num {
  display: block;
  font-family: var(--ex-font-display);
  font-style: italic;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ex-mauve);
  margin-bottom: 1.25rem;
}

.ex__spread-title {
  font-family: var(--ex-font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.18;
  color: var(--ex-burgundy);
  margin: 0 0 0.5rem;
  letter-spacing: 0.005em;
}

.ex__spread-italic-line {
  font-family: var(--ex-font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ex-burgundy);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.45;
}

.ex__spread-body {
  font-family: var(--ex-font-display);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ex-ink);
}

.ex__spread-body p {
  margin: 0 0 1.1rem;
}

/* Floating initial cap on the first paragraph of the intro spread only */
.ex__intro-letter::first-letter {
  font-family: var(--ex-font-display);
  font-weight: 500;
  font-size: 4.4em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  margin-right: 0.05em;
  color: var(--ex-burgundy);
}

.ex__spread-callout {
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  font-family: var(--ex-font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.4;
  text-align: center;
  color: var(--ex-burgundy);
}

.ex__spread-h3 {
  font-family: var(--ex-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ex-burgundy);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}

/* ─── Whats-inside bullets (intro spread) ─── */
.ex__whats-inside {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ex-rule);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ex__whats-inside-item {
  font-family: var(--ex-font-display);
  font-size: 1.1rem;
  color: var(--ex-burgundy);
  line-height: 1.55;
  padding-left: 1.4rem;
  position: relative;
}

.ex__whats-inside-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.55rem;
  height: 1px;
  background: var(--ex-mauve);
}

/* ─── Worksheet block (worksheet spread) ─── */
.ex__worksheet-block {
  border-top: 1px solid var(--ex-rule);
  padding-top: 1.5rem;
}

.ex__worksheet-title {
  font-family: var(--ex-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ex-burgundy);
  margin: 0 0 0.85rem;
}

.ex__worksheet-prompts {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ex-prompt;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ex__worksheet-prompt {
  font-family: var(--ex-font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ex-ink);
  padding-left: 2rem;
  position: relative;
}

.ex__worksheet-prompt::before {
  counter-increment: ex-prompt;
  content: counter(ex-prompt);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--ex-font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ex-mauve);
  padding-top: 0.2em;
}

/* ─── CTA stack ─── */
.ex__cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem auto 0;
}

.ex__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ex-burgundy);
  color: var(--ex-bg);
  padding: 1rem 2rem;
  border: 1px solid var(--ex-burgundy);
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--ex-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, color 200ms ease;
  min-width: 240px;
}

.ex__cta:hover {
  background: var(--ex-burgundy-deep);
  transform: translateY(-1px);
}

.ex__cta:focus-visible {
  outline: 2px solid var(--ex-gold);
  outline-offset: 3px;
}

.ex__cta--secondary {
  background: transparent;
  color: var(--ex-burgundy);
}

.ex__cta--secondary:hover {
  background: rgba(61, 26, 46, 0.06);
  transform: translateY(-1px);
}

.ex__cta-stack .ex__cta {
  width: 100%;
  max-width: 360px;
}

/* ─── Footer ─── */
.ex__footer {
  padding: 1.5rem var(--ex-pad);
  border-top: 1px solid var(--ex-rule);
  text-align: center;
  font-family: var(--ex-font-body);
  font-size: 0.82rem;
  color: var(--ex-burgundy);
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.ex__footer a {
  color: var(--ex-burgundy);
  text-decoration: underline;
  text-decoration-color: var(--ex-gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ex__footer a:hover {
  color: var(--ex-burgundy-deep);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .ex__title {
    line-height: 1.2;
  }

  .ex__main {
    gap: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 480px) {
  .ex__brand {
    padding: 1.4rem var(--ex-pad);
    font-size: 0.85rem;
  }

  .ex__cta {
    min-width: 100%;
    padding: 1rem 1.25rem;
  }

  .ex__spread {
    padding: 1.75rem 1.35rem;
  }
}

/* ─── FAQ Q&A pairs (reuses ex__ tokens) ─── */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.faq__item {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(2.25rem, 5vw, 3.5rem);
  border: 1px solid rgba(196, 148, 154, 0.35);
  border-bottom: none;
  background: var(--ex-bg-card);
}

.faq__item:first-child {
  border-radius: 4px 4px 0 0;
}

.faq__item:last-child {
  border-bottom: 1px solid rgba(196, 148, 154, 0.35);
  border-radius: 0 0 4px 4px;
}

.faq__question {
  font-family: var(--ex-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--ex-burgundy);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.faq__answer {
  font-family: var(--ex-font-display);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ex-ink);
  margin: 0;
}

/* ─── Print styles — strip noise so the page saves as a clean PDF ─── */
@media print {
  body.ex__body {
    background: #fff !important;
    color: #000 !important;
  }

  .ex__brand,
  .ex__footer,
  .ex__cta-stack {
    display: none !important;
  }

  .ex__main {
    padding: 0 !important;
    max-width: none !important;
  }

  .ex__spread {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto 1.5rem !important;
    max-width: none !important;
  }
}
