/* ============================================================
   Sermon Speech Notes — Component Stylesheet
   Source of truth: ~/.claude/skills/sermon-speech-notes/reference/sermon-notes.css
   Linked from generated HTML via <link rel="stylesheet" href="sermon-notes.css">

   Design direction: Editorial literary — like a well-typeset book
   for the pulpit. Serif authority for headings, clean sans for body.
   Every element serves the speaker scanning at arm's length.

   Target device: iPad 11" (834 × 1194 logical px, portrait)
   Print/PDF: iPad 11" portrait (198 × 280mm)
   Paper fallback: browsers can scale to A4 via print dialog
   ============================================================ */

/* ---- Base ---- */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #FDFCFA;
  color: #1C1917;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent overscroll bounce on iPad */
  overscroll-behavior: none;
}

/* ---- Page Container ---- */

/* Screen: continuous scroll, content centered with readable measure.
   No page metaphor — the iPad IS the page. */
.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  position: relative;
}

/* Remove visual gap between page divs — continuous flow */
.page + .page {
  padding-top: 0;
}

/* Page number — hidden on screen, visible only in print */
.page::after {
  content: attr(data-page);
  display: none;
}

/* ---- Headings ---- */

/* Sermon title — large serif, editorial weight */
.sermon-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: #1C1917;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}

/* Meta line — occasion · date · passage */
.sermon-meta {
  font-size: 12px;
  line-height: 1.4;
  color: #A8A29E;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

/* Secondary meta — compact card for coaching reminders */
.sermon-meta-card {
  margin-bottom: 2rem;
  padding: 0.625rem 0.875rem;
  background-color: #F5F5F4;
  border-radius: 0.375rem;
  border-left: 3px solid #D6D3CD;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sermon-meta-item {
  font-size: 11px;
  line-height: 1.5;
  color: #78716C;
  font-weight: 400;
}

.sermon-meta-label {
  font-weight: 600;
  color: #A8A29E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 9px;
  margin-right: 0.375rem;
}

/* H2: Main structural anchors — serif authority, refined rule */
.heading-2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #1C1917;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #292524;
  letter-spacing: -0.01em;
}

/* Section number — inline with heading text */
.heading-2-num {
  color: #B45309;
  font-weight: 400;
  font-style: italic;
}

/* H3: section navigator — blue bar, bigger than H4.
   Marks Blok/Fala/Ruch — the main structural beats within a Stage. */
.heading-3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  font-style: normal;
  color: #1E3A8A;
  letter-spacing: 0.005em;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.875rem;
  background-color: #DBEAFE;
  border-left: 4px solid #2563EB;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* H4: internal stage direction — blue accent, pops against warm body text.
   Speaker glances down and instantly sees "oh, THIS part is next." */
.heading-4 {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  font-style: italic;
  color: #1E40AF;
  letter-spacing: 0.01em;
  margin-top: 1.75rem;
  margin-bottom: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: #EFF4FF;
  border-left: 3px solid #3B82F6;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* ---- Body Text ---- */

.para {
  font-size: 18px;
  line-height: 1.85;
  color: #292524;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* ---- Inline Micro-Format ---- */

/* Bold logical anchors — the argument skeleton */
.para strong {
  font-weight: 700;
  color: #1C1917;
}

/* Orange rhetorical heat — delivery emphasis */
.o {
  color: #C2410C;
  font-weight: 600;
}

/* Paragraph opener — THE most important element for stage scanning.
   Bold + orange + slightly larger = instant re-entry point after
   looking up at the congregation. */
strong.o,
.bo {
  color: #C2410C;
  font-weight: 800;
  font-size: 1.0667em;
}

/* Purple rhetorical emphasis — questions, audience engagement, emphasis series.
   Speaker sees purple and knows: "this is where I look at the people."
   Needs to be visually distinct from orange at arm's length on iPad. */
.prp {
  color: #6D28D9;
  font-weight: 700;
  font-style: italic;
}

/* ---- Scripture Block ---- */

.scripture {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background-color: #FEF5F4;
  border-radius: 0.5rem;
  border: 1.5px solid #E8CDCB;
  border-left: 4px solid #B91C1C;
}

/* Scripture text — Source Serif 4: designed for extended reading,
   excellent x-height and Polish diacritics. Upright, not italic:
   at arm's length italic serif creates thin wispy strokes. */
.scripture-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: normal;
  font-weight: 500;
  color: #3B0D0D;
  margin-bottom: 0.75rem;
  font-size: 19px;
  line-height: 1.85;
}

.scripture-text:last-child {
  margin-bottom: 0;
}

/* When scripture has no ref, tighten bottom padding so the block
   feels intentionally compact rather than missing its closer. */
.scripture:not(:has(.scripture-ref)) {
  padding-bottom: 1rem;
}

/* Scripture ref — small caps feel, but not uppercase-screaming */
.scripture-ref {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  color: #B91C1C;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scripture-ref::before {
  content: '';
  width: 1.25rem;
  height: 1.5px;
  background-color: #B91C1C;
  opacity: 0.35;
  flex-shrink: 0;
}

/* ---- Story Block ---- */

.story {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background-color: #EFF4FF;
  border-radius: 0.5rem;
  border: 1.5px solid #CBDAF0;
  border-left: 4px solid #1D4ED8;
}

.story p {
  font-size: 18px;
  line-height: 1.85;
  color: #1E3A5F;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

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

.story strong {
  font-weight: 700;
  color: #1E3A5F;
}

/* ---- Callout ---- */

.callout {
  margin: 3rem 0;
  padding: 1.25rem 1.5rem;
  background-color: #FEF9EC;
  border-radius: 0.375rem;
  border: 3px solid #D97706;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.125rem 1rem;
}

.callout-icon {
  grid-column: 1;
  grid-row: 1 / -1;
  font-size: 2rem;
  line-height: 1;
  opacity: 1;
  padding-top: 0;
}

/* Callout label — lowercase italic serif, not corporate uppercase */
.callout-label {
  grid-column: 2;
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #B45309;
  margin-bottom: 0.375rem;
}

.callout p {
  grid-column: 2;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #78350F;
  margin: 0;
}

/* ---- Slide Cue ---- */

.slide-cue {
  margin: 1.25rem 0;
  padding: 0.5rem 1rem;
  background-color: #F5F5F4;
  border-radius: 0.25rem;
  border-left: 2px solid #A8A29E;
}

.slide-cue-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A8A29E;
  margin-bottom: 0.125rem;
}

.slide-cue p {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: #57534E;
  font-weight: 500;
  margin: 0;
}

/* ---- Pause Cue ---- */

/* Pause cue — bracketed, visible at arm's length. Speaker sees [ pauza ]
   and knows to stop talking. Styled as a subtle card. */
.pause-cue {
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  color: #78716C;
  letter-spacing: 0.02em;
  margin: 1.5rem auto;
  padding: 0.375rem 1.25rem;
  max-width: fit-content;
  border: 1.5px solid #D6D3CD;
  border-radius: 0.375rem;
  background-color: #F5F5F4;
  user-select: none;
}

/* ---- Divider & Transition ---- */

.divider {
  margin: 2.5rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, #292524 0%, #292524 25%, transparent 100%);
}

.transition {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  color: #78716C;
  font-style: italic;
  margin: 1.5rem 0;
  font-weight: 400;
}

/* ---- Selection ---- */

::selection {
  background-color: #FCECD4;
  color: #1C1917;
}

/* ---- Print / PDF: iPad 11" portrait ---- */

@media print {
  html { background: white; }
  body { padding: 0; background: white; }
  .page {
    width: 198mm;
    min-height: 280mm;
    max-width: none;
    padding: 12mm 18mm;
    margin: 0;
    page-break-after: always;
  }
  .page + .page { padding-top: 12mm; }
  .page::after {
    display: block;
    position: absolute;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    line-height: 1;
    color: #A8A29E;
    font-weight: 400;
    bottom: 12mm;
    right: 18mm;
  }
  @page { size: 198mm 280mm; margin: 0; }
}
