/* Biblical Parenting — shared brand styles (R-03). Plain CSS, no build step, one file
   shared by every page so Tami's four pages stay visually identical without repeating
   this by hand in each one. */

:root {
  --sage: #354f52;
  --rose: #ddd4d3;
  --ink: #353535;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans: Arial, Helvetica, sans-serif;
  --tile-overlay: rgba(53, 79, 82, 0.8); /* sage at 80% — see contrast note in the build report */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rose);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--sage); }
a.tile { color: #fff; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--sage);
  margin: 0 0 0.5em;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--rose);
}

.site-header img.logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.site-header .site-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--sage);
  letter-spacing: 0.5px;
}

.site-header a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Home tiles (R-01, R-02) ---------- */

.tiles {
  display: flex;
  flex-direction: column;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.tile-title {
  position: absolute;
  top: 22px;
  left: 20px;
  right: 96px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tile-subtitle {
  position: absolute;
  top: 100px;
  left: 20px;
  right: 96px;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.92;
}

.tile-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 84px;
  height: 84px;
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
}

.about-link {
  display: block;
  text-align: center;
  padding: 18px 16px;
  font-family: var(--serif);
  font-size: 15px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  padding: 14px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--sage);
  color: #fff;
}

.btn-primary[disabled],
.btn-primary.is-disabled {
  background: #8a9a9c;
  color: #eee;
  cursor: not-allowed;
}

.btn-block { display: block; width: 100%; }

/* ---------- Section cards ---------- */

.section {
  padding: 20px 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ---------- Next class card ---------- */

.next-class .weekday-date {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--sage);
}

.next-class .time {
  font-size: 14px;
  color: var(--ink);
  margin: 2px 0 10px;
}

.next-class .topic {
  font-size: 16px;
  margin-bottom: 14px;
}

/* ---------- Homework ---------- */

.homework details {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 16px;
}

.homework summary {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--sage);
  cursor: pointer;
}

.homework .week {
  margin: 14px 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.homework .week h4 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.homework .week p { margin: 4px 0; }

/* ---------- Full schedule ---------- */

.schedule-list { list-style: none; margin: 0; padding: 0; }

.schedule-list li {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.schedule-list li.is-past { opacity: 0.5; }

.schedule-list .sched-date {
  font-family: var(--serif);
  color: var(--sage);
  font-size: 16px;
}

.schedule-list .sched-topic { margin: 2px 0; }

.schedule-list a.add-one {
  font-size: 13px;
  text-decoration: underline;
}

.action-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.action-row .btn { flex: 1; }

/* ---------- Unlock page ---------- */

.unlock-box {
  max-width: 380px;
  margin: 15vh auto 0;
  padding: 28px 20px;
  text-align: center;
}

.unlock-box h1 { font-size: 24px; }

.unlock-box input[type="text"],
.unlock-box input[type="password"] {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  margin: 16px 0;
  border: 1px solid #bbb;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 1px;
}

.unlock-error {
  color: #8a2f2f;
  min-height: 1.4em;
  font-size: 14px;
}

.unlock-signup {
  margin-top: 22px;
  font-size: 14px;
}

/* ---------- About ---------- */

.about-photo {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* ---------- Print (R-06: "Print schedule") ---------- */

@media print {
  .no-print { display: none !important; }
  html, body { background: #fff; color: #000; }
  .wrap { max-width: none; }
  #print-schedule h2 { color: #000; }
  .schedule-list li { background: #fff; border: 1px solid #999; box-shadow: none; }
  .schedule-list .sched-date { color: #000; }
  .schedule-list li.is-past { opacity: 1; }
  .schedule-list a.add-one { display: none; }
}
