/* ========================================
   Philippians Preaching Series — Theme
   Inspired by Tufte: clean, readable, minimal
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Palatino', 'Palatino Linotype', 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #faf9f7;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}

h1 { font-size: 2rem; border-bottom: 2px solid #d4a373; padding-bottom: 0.4rem; }
h2 { font-size: 1.5rem; color: #2a4a5a; }
h3 { font-size: 1.2rem; color: #3a5a3a; }

p { margin-bottom: 1rem; }

/* --- Links --- */
a { color: #2a6b8a; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { border-bottom-color: #2a6b8a; }

/* --- Blockquotes (for commentary quotes) --- */
blockquote {
  border-left: 3px solid #d4a373;
  padding: 0.75rem 1rem;
  margin: 1.2rem 0;
  background: #f3efe9;
  color: #444;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

blockquote p:last-child { margin-bottom: 0; }

/* --- Code / Scripture references --- */
code, .scripture {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background: #ede8e0;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* --- Lists --- */
ul, ol { margin: 0.8rem 0 1.2rem 1.8rem; }
li { margin-bottom: 0.4rem; }

/* --- Horizontal Rule --- */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* --- Callout boxes --- */
.callout {
  border-left: 4px solid #2a6b8a;
  background: #e8f0f5;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.callout.warning {
  border-left-color: #c96;
  background: #fdf6ec;
}

.callout.highlight {
  border-left-color: #5a8a5a;
  background: #eef5ee;
}

.callout-title {
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  color: inherit;
}

/* --- Metadata block (lesson number, date, etc.) --- */
.meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Table --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #2a4a5a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

tr:nth-child(even) { background: #f3efe9; }

/* --- Print --- */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    max-width: 100%;
    padding: 0;
  }
  a { color: #000; border: none; }
  blockquote { border-left-color: #999; background: #f5f5f5; }
}
