:root {
  color-scheme: light;
  --forest: #263f37;
  --green: #3a5a50;
  --ink: #232b25;
  --muted: #515c52;
  --cream: #f7efdd;
  --paper: #fffcf5;
  --line: #d9ceba;
  --gold: #e8bc76;
  --red: #962f3a;
  --soft-red: #f9e8e5;
  --serif: "Vollkorn", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--gold); }

.wrap { width: min(100% - 2.5rem, 58rem); margin-inline: auto; }
.site-header { background: var(--forest); color: var(--cream); }
.masthead {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  letter-spacing: .05em;
}
.masthead-label { color: var(--gold); font-weight: 700; }
.hero {
  padding: clamp(2.1rem, 6vw, 4.25rem) 0 clamp(2.35rem, 6vw, 4rem);
  border-top: 1px solid #62776d;
  border-bottom: .25rem solid var(--red);
  background: radial-gradient(ellipse at 50% 0%, var(--green), var(--forest) 75%);
  color: var(--paper);
  text-align: center;
}
.ornament {
  margin-bottom: .5rem;
  color: var(--gold);
  font-size: 1.65rem;
  line-height: 1;
}
.hero h1 {
  font: 700 clamp(2.5rem, 7vw, 4.8rem)/1.05 var(--serif);
  text-wrap: balance;
}
.hero p { margin-top: .85rem; color: var(--cream); text-wrap: balance; }

.worship { padding-block: 1.5rem 2.5rem; }
.week-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  margin-bottom: 1.6rem;
}
.week-nav button, .versions button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  color: var(--forest);
  font-weight: 700;
}
.week-nav button {
  display: grid;
  place-content: center;
  padding: .4rem .12rem;
  border-radius: .35rem;
  background: var(--paper);
  text-align: center;
  font-size: .875rem;
  line-height: 1.25;
}
.week-nav time { font-size: .875rem; font-weight: 500; }
.week-nav button[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}
.week-nav button[aria-pressed="true"] time { color: var(--gold); }
.week-nav button[aria-pressed="false"]:hover, .versions button[aria-pressed="false"]:hover {
  background: #ede3cf;
}
.lesson-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.week-date {
  color: var(--red);
  font-size: .875rem;
  font-weight: 700;
}
.lesson h2 {
  font: 700 clamp(1.9rem, 4.8vw, 3rem)/1.12 var(--serif);
  text-wrap: balance;
}
.versions { display: inline-flex; gap: .35rem; }
.versions button {
  min-width: 5.25rem;
  border-radius: .35rem;
  padding: .35rem .75rem;
  background: var(--paper);
  font-size: .875rem;
}
.versions button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--soft-red);
  color: var(--red);
}
.reading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .05rem .65rem;
  padding: .65rem .9rem;
  margin-bottom: 1rem;
  border-inline-start: .2rem solid var(--red);
  background: #efe5ce;
}
.reading span { color: var(--muted); font-size: .875rem; font-weight: 700; }
.reading a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--forest); font-weight: 700; }
.questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.question {
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--paper);
}
.question-number {
  display: block;
  margin-bottom: .45rem;
  color: var(--red);
  font-size: .875rem;
  font-weight: 700;
}
.question h3 { font: 700 clamp(1.4rem, 3.5vw, 1.9rem)/1.2 var(--serif); }
.answer { margin-top: .7rem; }
.answer-label { color: var(--forest); font-weight: 700; }
.site-footer {
  padding: 1.3rem 0;
  border-top: 1px solid var(--green);
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  font-size: .875rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .questions { grid-template-columns: 1fr; }
  .week-nav { margin-bottom: 1.3rem; }
  .week-nav button { min-height: 3.25rem; }
}
@media (max-width: 22rem) {
  .week-nav time { font-size: .75rem; }
  .week-nav { gap: .25rem; }
}
