:root {
  --quiet-ivory: #F7F3EA;
  --deep-ink: #28312F;
  --olive-branch: #68745C;
  --candle-gold: #C3A45B;
  --soft-stone: #E4DED2;
  --white: #FFFFFF;
  --body-text: #3F4946;
  --font-body: 16px;
  --font-page-title: 40px;
  --page-width: 1120px;
  --reading-width: 760px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --header-height: 76px;
  --pill-radius: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--quiet-ivory);
  color: var(--body-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

p {
  margin-bottom: var(--space-3);
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1000;
  padding: var(--space-2) var(--space-3);
  background: var(--deep-ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
  left: var(--space-3);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--soft-stone);
  background: var(--quiet-ivory);
}

.header-inner {
  width: min(calc(100% - 32px), var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand-group {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-cross {
  width: 18px;
  height: 24px;

  flex: 0 0 auto;
  display: inline-block;

  background:
    linear-gradient(var(--deep-ink), var(--deep-ink)) center / 2px 100% no-repeat,
    linear-gradient(var(--deep-ink), var(--deep-ink)) center 35% / 100% 2px no-repeat;
}

.site-name {
  color: var(--deep-ink);
  font-size: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header nav a {
  color: var(--deep-ink);
  font-size: var(--font-body);
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--candle-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.nav-toggle {
  min-height: 48px;
  padding: 12px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--deep-ink);
  border-radius: var(--pill-radius);
  background: var(--quiet-ivory);
  color: var(--deep-ink);
  font-size: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.nav-toggle:focus-visible,
.accordion-trigger:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--candle-gold);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  color: var(--deep-ink);
}

h1 {
  margin-bottom: var(--space-4);
  font-size: var(--font-page-title);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

h2,
h3 {
  margin: var(--space-5) 0 var(--space-4);
  font-size: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.65;
}

.lead,
.hero-introduction,
.small-note,
.prayer-label,
.eyebrow {
  color: var(--body-text);
  font-size: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.standard-page,
.questions-page,
.simple-home .hero,
.section {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: var(--space-8) 0;
}

.page-content,
.reading-width,
.hero-content {
  width: min(calc(100% - 32px), var(--reading-width));
  margin: 0 auto;
}

.page-width {
  width: min(calc(100% - 32px), var(--reading-width));
  margin: 0 auto;
}

.section-stone {
  background: var(--quiet-ivory);
}

.simple-home .hero {
  padding-bottom: 0;
}

.simple-home .section {
  padding-top: var(--space-6);
  padding-bottom: 0;
}

.simple-home .section:last-child {
  padding-bottom: var(--space-8);
}

.button-group {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.button {
  min-height: 48px;
  padding: 12px 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid transparent;
  border-radius: var(--pill-radius);

  font-size: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}


.button-secondary {
  border-color: var(--deep-ink);

  background: var(--soft-stone);
  color: var(--deep-ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--deep-ink);
  color: var(--quiet-ivory);
}

.card-grid,
.choice-grid {
  display: grid;
  gap: var(--space-3);
}

.card {
  padding: 0 0 var(--space-4);
  border-bottom: 1px solid var(--soft-stone);
}

.card-number {
  display: inline;
  margin-right: var(--space-1);
  font-weight: 700;
}

.simple-list,
.toc-list {
  margin: var(--space-4) 0;
  padding-left: var(--space-5);
}

.simple-list li,
.toc-list li {
  margin-bottom: var(--space-2);
}

.prayer-text {
  margin: var(--space-4) 0 0;
  padding: var(--space-4) 0 var(--space-4);
  border-top: 1px solid var(--soft-stone);
}

.prayer-text p {
  margin-bottom: var(--space-2);
}

.call-response {
  display: grid;
  gap: var(--space-3);
}

.call-response p {
  margin-bottom: 0;
}

.speaker {
  color: var(--body-text);
  font-weight: 700;
}

.question-category + .question-category {
  margin-top: var(--space-6);
}

.question-list {
  border-top: 1px solid var(--soft-stone);
}

.question-item {
  border-bottom: 1px solid var(--soft-stone);
}

.accordion-trigger {
  width: 100%;
  padding: var(--space-4) 36px var(--space-4) 0;
  border: 0;
  background: transparent;
  color: var(--deep-ink);
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
}

.question-answer {
  padding: 0 0 var(--space-4);
}

.question-answer p {
  margin-bottom: var(--space-4);
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

.question-answer p:last-child {
  margin-bottom: 0;
}

.accordion-trigger::after {
  content: "+";
  float: right;
  color: var(--deep-ink);
  font-weight: 700;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

@media (max-width: 1050px) {
  .javascript-available .nav-toggle {
    display: inline-flex;
  }

  .javascript-available .site-header nav {
    position: absolute;
    top: 100%;
    right: var(--space-3);
    left: var(--space-3);
    margin: 0;
    padding: var(--space-3);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    border: 1px solid var(--soft-stone);
    background: var(--quiet-ivory);
  }

  .javascript-available .site-header nav.is-open {
    display: flex;
  }

}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    min-height: var(--header-height);
    padding: var(--space-2) 0;
    flex-wrap: nowrap;
    gap: var(--space-2) var(--space-3);
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .standard-page,
  .questions-page,
  .simple-home .hero,
  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.simple-home .section.explore-faith-section {
  text-align: left;
  padding-top: var(--space-3);
  padding-bottom: var(--space-8);
}

.simple-home .section.explore-faith-section .button-group {
  margin-bottom: var(--space-4);
}

.button-primary {
  background: var(--olive-branch);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--deep-ink);
}

.related-sites {
  width: min(calc(100% - 32px), var(--reading-width));
  margin: var(--space-6) auto var(--space-8);
  padding-top: var(--space-5);

  border-top: 1px solid var(--soft-stone);

  text-align: center;
}

.related-sites h2 {
  margin: 0 0 var(--space-5);
  text-align: center;
}

.related-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.related-site-option {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.related-site-option p {
  margin: 0 0 var(--space-4);
}

.related-site-option .button {
  width: 100%;
  max-width: 340px;
  margin-top: auto;
}

@media (max-width: 760px) {
  .related-sites {
    margin-bottom: var(--space-7);
  }

  .related-sites-grid {
    grid-template-columns: 1fr;
  }
}
