/* Johnston Family Bible Study — warm, readable, phone-friendly */

:root {
  --paper: #faf6ee;
  --card: #ffffff;
  --ink: #2b2620;
  --ink-soft: #5c554a;
  --accent: #8a5a2b;      /* warm bronze */
  --accent-deep: #6d451f;
  --accent-wash: #f3e8d5;
  --line: #e7ddc9;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(160deg, #2e2620 0%, #4a3a28 100%);
  color: #f7f1e5;
  padding: 28px 0 24px;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.brand h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}

.brand p {
  margin: 0;
  color: #d8c9ae;
  font-size: 0.95rem;
}

.track-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.track-btn {
  border: 0;
  background: transparent;
  color: #e9dfc9;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  font-family: inherit;
}

.track-btn .track-name { font-weight: 600; font-size: 0.95rem; }
.track-btn .track-sub { font-size: 0.72rem; opacity: 0.75; }

.track-btn.active {
  background: var(--accent-wash);
  color: var(--accent-deep);
}

/* ---------- How it works ---------- */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 8px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.step strong { font-size: 0.95rem; }
.step p { margin: 2px 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  margin: 30px 0 12px;
}

.study-picker {
  display: grid;
  gap: 12px;
}

.study-card {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.study-card:hover { border-color: var(--accent); }
.study-card.active { border-color: var(--accent); background: #fffdf8; }

.study-card h3 { margin: 0 0 2px; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; }
.study-card .study-sub { margin: 0 0 6px; color: var(--accent-deep); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.study-card p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Week tabs ---------- */
.week-tabs {
  display: flex;
  gap: 8px;
  margin: 26px 0 0;
  flex-wrap: wrap;
}

.week-tab {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 9px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.week-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f1e5;
}

/* ---------- Week content ---------- */
.week-content { padding-bottom: 40px; }

.week-head { margin: 26px 0 6px; }
.week-kicker {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.week-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  margin: 4px 0 6px;
  line-height: 1.2;
}
.week-passage {
  display: inline-block;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 4px 12px;
  margin: 6px 0 10px;
}
.week-summary { color: var(--ink-soft); font-size: 1.02rem; max-width: 62ch; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 22px;
}

.card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  margin-bottom: 12px;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-link { font-size: 0.9rem; margin: 0; }
.video-link a { color: var(--accent-deep); font-weight: 600; }

.reading-list { margin: 0; padding-left: 20px; }
.reading-list li { margin-bottom: 6px; }
.reading-list li::marker { color: var(--accent); }

.q-group { margin-top: 18px; }
.q-group:first-of-type { margin-top: 6px; }
.q-group h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-deep);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.question {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.q-num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.question p { margin: 0; }

.track-intro {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.resource-list { margin: 0; padding-left: 20px; }
.resource-list li { margin-bottom: 8px; }
.resource-list a { color: var(--accent-deep); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-footer a { color: var(--accent-deep); }
.site-footer p { margin: 4px 0; }
.footer-sub { font-style: italic; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .how-it-works { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: stretch; }
  .track-toggle { justify-content: center; }
  .brand h1 { font-size: 1.45rem; }
  .week-head h2 { font-size: 1.55rem; }
}
