:root {
  --ink: #202124;
  --muted: #62686a;
  --paper: #fffdf8;
  --wood: #dce6e7;
  --wood-dark: #bdccce;
  --red: #bd1f2d;
  --red-dark: #8f1520;
  --blue: #244d5a;
  --line: rgba(32, 33, 36, 0.16);
  --shadow: 0 18px 45px rgba(24, 34, 37, 0.14);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f6f2;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #e3a425;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 0.25rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(250px, 1fr) minmax(270px, auto);
  gap: 2rem;
  align-items: center;
  min-height: 126px;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  color: #211f20;
  line-height: 0.8;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-small {
  align-self: center;
  margin: 0 0 0.18rem;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.09em;
  transform: translateX(-0.35rem);
}

.brand-strong {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(1.75rem, 3.3vw, 2.45rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.075em;
  -webkit-text-stroke: 0.65px currentColor;
}

.brand-light {
  align-self: center;
  margin-top: 0.15rem;
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.055em;
}

.header-verse {
  max-width: 390px;
  min-height: 6.25rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  opacity: 1;
  transition: opacity 500ms ease;
}

.header-verse.is-changing {
  opacity: 0;
}

.header-verse cite {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
}

.conference-link {
  display: block;
  justify-self: end;
  min-width: 270px;
  padding: 0.8rem 1.1rem;
  color: var(--red);
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 0.25rem;
  box-shadow: 4px 4px 0 rgba(189, 31, 45, 0.13);
  font-size: 1rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.conference-link span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.69rem;
  font-style: normal;
  letter-spacing: 0.14em;
}

.conference-link:hover {
  color: var(--red-dark);
  box-shadow: 2px 2px 0 rgba(189, 31, 45, 0.13);
  transform: translate(2px, 2px);
}

.page-frame {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 540px;
  overflow: hidden;
  background-color: var(--wood);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.15), transparent 30%, rgba(255,255,255,0.12) 70%, transparent),
    repeating-linear-gradient(0deg, transparent 0, transparent 95px, rgba(84,105,107,0.18) 96px, rgba(255,255,255,0.5) 98px, transparent 100px),
    repeating-linear-gradient(3deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 3px, transparent 14px);
  border: 1px solid rgba(78, 101, 104, 0.24);
  box-shadow: var(--shadow);
}

.primary-nav {
  padding: 2.3rem 1.6rem;
  border-right: 1px solid rgba(55, 76, 79, 0.18);
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 0.72rem 0.8rem;
  color: #52595b;
  border-bottom: 1px solid transparent;
  font-size: 1.14rem;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-nav a:hover {
  color: var(--ink);
  border-color: rgba(32, 33, 36, 0.35);
  transform: translateX(0.2rem);
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--red);
}

.page-panel {
  align-self: stretch;
  margin: 1.15rem;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(2px);
}

.page-panel > :first-child {
  margin-top: 0;
}

.page-panel h1 {
  position: relative;
  margin-bottom: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.page-panel h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.75rem;
  background: var(--red);
}

.page-panel h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 45rem;
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
}

.scripture {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--red);
}

.scripture p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  font-style: italic;
  font-weight: 700;
}

.scripture cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  text-align: right;
}

.home-panel {
  position: relative;
  min-height: 510px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #303739;
  border: 0;
}

.home-panel > img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.home-message {
  position: absolute;
  right: clamp(1rem, 5vw, 3.5rem);
  bottom: clamp(1rem, 5vw, 3.5rem);
  width: min(490px, calc(100% - 2rem));
  padding: 1.45rem 1.6rem;
  color: #fff;
  background: rgba(20, 24, 25, 0.9);
  border-left: 5px solid var(--red);
}

.home-message h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 4vw, 2.65rem);
}

.home-message h1::after {
  display: none;
}

.home-message p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
}

.schedule {
  margin: 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row dt {
  font-weight: 800;
  white-space: nowrap;
}

.schedule-row dd {
  margin: 0;
  font-weight: 650;
}

.schedule-row small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 400;
}

.notice-link,
.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--blue);
  border-radius: 0.2rem;
  font-weight: 800;
  text-decoration: none;
}

.notice-link::after,
.directions-link::after {
  content: "→";
  font-size: 1.25em;
}

.notice-link:hover,
.directions-link:hover {
  color: #fff;
  background: var(--red-dark);
}

.beliefs-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beliefs-list li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.beliefs-list li:first-child {
  padding-top: 0;
}

.beliefs-list p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-style: italic;
  font-weight: 700;
}

.beliefs-list cite {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

.map-illustration {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background-color: #edf0e9;
  background-image:
    linear-gradient(32deg, transparent 46%, #fff 47%, #fff 53%, transparent 54%),
    linear-gradient(-38deg, transparent 44%, #fff 45%, #fff 52%, transparent 53%),
    linear-gradient(88deg, transparent 61%, #d6e2cf 62%, #d6e2cf 78%, transparent 79%);
  border: 1px solid var(--line);
}

.map-illustration::before {
  content: "";
  position: absolute;
  top: 47%;
  left: 51%;
  width: 28px;
  height: 28px;
  background: var(--red);
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 4px 9px rgba(0,0,0,0.22);
  transform: rotate(-45deg);
}

.map-illustration::after {
  content: "Bellbrook Believers Assembly";
  position: absolute;
  top: calc(47% + 39px);
  left: 51%;
  width: 145px;
  padding: 0.3rem 0.45rem;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  font-size: 0.69rem;
  font-weight: 800;
  transform: translateX(-42%);
}

.address-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
}

.address-block address {
  margin-bottom: 1.2rem;
  font-size: 1.12rem;
  font-style: normal;
  font-weight: 750;
}

.address-block p {
  margin: 0 0 1.2rem;
}

.site-footer {
  padding: 1.65rem 1rem 2.5rem;
  text-align: center;
}

.site-footer address {
  font-style: normal;
}

.footer-primary,
.footer-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.8rem;
  margin: 0;
}

.footer-primary {
  font-size: 0.95rem;
  letter-spacing: 0.11em;
}

.footer-primary span:not(:last-child)::after {
  content: "•";
  margin-left: 0.8rem;
}

.footer-secondary {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.footer-secondary a {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .header-verse {
    display: none;
  }

  .page-frame {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    padding: 0.7rem;
    border-right: 0;
    border-bottom: 1px solid rgba(55, 76, 79, 0.18);
  }

  .primary-nav ul {
    flex-flow: row wrap;
    justify-content: center;
    gap: 0.2rem 0.45rem;
  }

  .primary-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.98rem;
  }

  .primary-nav a:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 1rem 0;
  }

  .brand {
    justify-self: center;
  }

  .conference-link {
    justify-self: stretch;
    min-width: 0;
  }

  .page-frame {
    min-height: 0;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-nav a {
    text-align: center;
  }

  .page-panel {
    margin: 0.55rem;
    padding: 1.35rem;
  }

  .home-panel {
    margin: 0;
    padding: 0;
  }

  .home-panel > img {
    min-height: 430px;
  }

  .home-message {
    right: 0.8rem;
    bottom: 0.8rem;
    width: calc(100% - 1.6rem);
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .map-illustration {
    min-height: 220px;
  }

  .footer-primary {
    flex-direction: column;
    letter-spacing: 0.05em;
  }

  .footer-primary span:not(:last-child)::after {
    display: none;
  }

  .footer-secondary {
    letter-spacing: 0.06em;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .skip-link,
  .primary-nav,
  .conference-link {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .header-verse {
    display: block;
  }

  .page-frame {
    display: block;
    min-height: 0;
    box-shadow: none;
  }
}
