:root {
  --questions-ink: #1c2c36;
  --questions-muted: #52636a;
  --questions-paper: #f4f1e9;
  --questions-card: #fffefa;
  --questions-rule: #e4dfd3;
  --questions-gold: #e5a23a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.questions-page {
  flex: 1;
  width: 100%;
  color: var(--questions-ink);
  background:
    radial-gradient(ellipse at 12% 19%, rgba(222, 194, 132, .12), transparent 35rem),
    var(--questions-paper);
}

.questions-intro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 87% 10%, rgba(112, 180, 227, .52), transparent 32rem),
    linear-gradient(112deg, #0522b5 0%, #123a9c 54%, #174f8d 100%);
}

.questions-intro::after {
  position: absolute;
  top: -175px;
  right: -90px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, .035), 0 0 0 84px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.intro-inner,
.qa-section {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.scripture-reader-invite {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px auto 0;
  padding: 22px 26px;
  color: #253a30;
  border-left: 3px solid #bd8750;
  background: #ebe7dc;
}

.scripture-reader-invite .section-kicker {
  color: #765536;
}

.scripture-reader-invite h2 {
  margin: 5px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.scripture-reader-invite p:not(.section-kicker) {
  margin: 0;
  color: #526159;
  font-size: 13px;
  line-height: 1.6;
}

.scripture-reader-invite a {
  flex: 0 0 auto;
  padding: 11px 14px;
  color: #fff;
  background: #254e3d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.scripture-reader-invite a:hover {
  background: #18382b;
}

.intro-inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 84px) 0 47px;
}

.intro-kicker,
.section-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.intro-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffdfa5;
}

.intro-kicker span {
  font-size: 16px;
}

.questions-intro h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.8vw, 76px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .99;
}

.questions-intro h1 em {
  color: #ffe0a0;
  font-weight: 400;
}

.intro-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: 890px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .31);
}

.intro-bottom > p:first-child {
  max-width: 540px;
  margin: 0;
  color: #eff5ff;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
}

.editorial-note {
  flex: 0 0 auto;
  margin: 0 0 2px;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.editorial-note span {
  display: block;
  color: #ffdfa5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}

.qa-section {
  padding: clamp(48px, 6vw, 75px) 0 80px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 27px;
}

.section-kicker {
  margin-bottom: 9px;
  color: #9a6519;
}

.section-heading h2 {
  margin: 0;
  color: #1b3040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.section-heading > p {
  max-width: 385px;
  margin: 0 0 3px;
  color: var(--questions-muted);
  font-size: 14px;
  line-height: 1.65;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  counter-reset: question;
}

.qa-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 28px 22px;
  overflow: hidden;
  background: var(--questions-card);
  border: 1px solid var(--questions-rule);
  border-top: 3px solid #d5a453;
  box-shadow: 0 6px 18px rgba(40, 45, 46, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.qa-card::after {
  position: absolute;
  top: 20px;
  right: 23px;
  color: #e6e0d3;
  content: attr(data-number);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.qa-card:hover {
  border-color: #d6c7a9;
  border-top-color: #b57720;
  box-shadow: 0 11px 28px rgba(40, 45, 46, .09);
  transform: translateY(-2px);
}

.qa-card-featured {
  grid-column: 1 / -1;
  padding: 32px 36px 28px;
  border-top-color: var(--questions-gold);
  background:
    linear-gradient(110deg, rgba(233, 220, 190, .24), transparent 62%),
    var(--questions-card);
}

.qa-card-featured::after {
  top: 20px;
  right: 31px;
  color: #dfd2b7;
  font-size: 34px;
}

.qa-category {
  margin: 0 42px 9px 0;
  color: #996622;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.qa-card h3 {
  max-width: 90%;
  margin: 0 0 9px;
  color: #1c3040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.qa-card-featured h3 {
  font-size: 34px;
}

.qa-summary {
  max-width: 660px;
  margin: 0 0 17px;
  color: #43545c;
  font-size: 14px;
  line-height: 1.65;
}

.qa-references {
  margin: auto 0 17px;
  color: #59666b;
  font-size: 11px;
  letter-spacing: .015em;
  line-height: 1.5;
}

.read-answer {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 39px;
  padding: 9px 14px;
  color: #fff;
  background: #153f85;
  border: 1px solid #153f85;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.read-answer span {
  color: #ffdf9f;
  font-size: 16px;
  line-height: 1;
  transition: transform .18s ease;
}

.read-answer:hover {
  background: #0e2e66;
  border-color: #0e2e66;
}

.read-answer:hover span {
  transform: translate(2px, -2px);
}

.read-answer:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid #e5a23a;
  outline-offset: 3px;
}

.scripture-note {
  max-width: 760px;
  margin: 22px 0 0;
  color: #5d6768;
  font-size: 12px;
  line-height: 1.6;
}

.answer-dialog {
  position: fixed;
  width: min(590px, calc(100% - 32px));
  max-width: none;
  max-height: min(82vh, 760px);
  padding: clamp(24px, 5vw, 40px);
  overflow-y: auto;
  color: var(--questions-ink);
  background: #fffefa;
  border: 1px solid #dfd6c5;
  border-top: 4px solid var(--questions-gold);
  box-shadow: 0 24px 80px rgba(4, 18, 44, .28);
}

.answer-dialog::backdrop {
  background: rgba(8, 22, 40, .67);
  backdrop-filter: blur(2px);
}

.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: #97611a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.dialog-mark {
  color: #ce9a45;
  font-size: 20px;
}

.answer-dialog h2 {
  margin: 0 0 15px;
  color: #1c3040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 39px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.14;
}

.answer-dialog > p {
  margin: 0;
  color: #40515a;
  font-size: 15px;
  line-height: 1.75;
}

.dialog-scripture {
  margin-top: 23px;
  padding: 15px 17px;
  background: #f5f1e8;
  border-left: 3px solid #d3a252;
}

.dialog-scripture span {
  display: block;
  margin-bottom: 5px;
  color: #80602f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dialog-scripture p {
  margin: 0;
  color: #354750;
  font-size: 13px;
  line-height: 1.6;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 15px;
  color: #fff;
  background: #153f85;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.dialog-close span {
  color: #ffdf9f;
  font-size: 19px;
  line-height: 1;
}

@media (max-width: 700px) {
  .intro-inner,
  .qa-section,
  .scripture-reader-invite {
    width: min(100% - 36px, 560px);
  }

  .scripture-reader-invite {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .intro-inner {
    padding: 52px 0 37px;
  }

  .questions-intro::after {
    top: -90px;
    right: -255px;
    width: 390px;
    height: 390px;
  }

  .intro-bottom,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .editorial-note {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .editorial-note span {
    font-size: 23px;
  }

  .section-heading > p {
    max-width: 470px;
  }

  .qa-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .qa-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .intro-inner,
  .qa-section,
  .scripture-reader-invite {
    width: calc(100% - 32px);
  }

  .questions-intro h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .qa-section {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .qa-card,
  .qa-card-featured {
    padding: 22px 20px 20px;
  }

  .qa-card::after {
    top: 16px;
    right: 17px;
    font-size: 22px;
  }

  .qa-card-featured h3 {
    font-size: 29px;
  }

  .qa-summary {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-card,
  .read-answer,
  .read-answer span {
    transition: none;
  }

  .qa-card:hover {
    transform: none;
  }
}
