:root {
  --deep-earth: #0f0a07;
  --dark-gold: #d4a843;
  --dim-gold: #8b6914;
  --light-gold: #e8c96a;
  --warm-red: #8b3a2a;
  --text: #e8e0d8;
  --muted-text: #a89888;
  --warm-background: #2d1810;
  --section-background: #1a1210;
  --section-alt-background: #140e0b;
  --border-accent: rgba(212, 168, 67, 0.15);
  --max-content-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--deep-earth);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--light-gold);
}

a {
  color: var(--dark-gold);
  text-decoration: none;
}

.credentials-list {
  color: var(--muted-text);
  padding-left: 1.25rem;
  margin: 0.5rem 0 1.5rem;
}

.credentials-list li {
  margin-bottom: 0.4rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--section-alt-background);
  border-bottom: 1px solid var(--border-accent);
}

.site-nav__brand {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--light-gold);
  font-size: 1.1rem;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__logo {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav a {
  color: var(--muted-text);
  padding: 0.625rem 0;
  display: inline-flex;
  align-items: center;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--section-alt-background);
  border-top: 1px solid var(--border-accent);
  color: var(--muted-text);
  font-size: 0.9rem;
  text-align: center;
}

/* Quiet by design. Reporting a problem should be findable when something
   goes wrong and invisible the rest of the time, so it sits below the
   devotion line rather than competing with it. */
.site-footer__help {
  margin: 0;
  font-size: 0.85rem;
}

.site-footer__help a {
  color: var(--muted-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__help a:hover,
.site-footer__help a:focus-visible {
  color: var(--dark-gold);
}

.site-footer__logo {
  height: 20px;
  width: auto;
  display: block;
}

.site-footer__socials {
  display: flex;
  gap: 1rem;
}

.site-footer__social-link {
  color: var(--muted-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  color: var(--light-gold);
}

.site-footer__social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-nav a:hover {
  color: var(--light-gold);
}

.hero__orientation {
  margin-top: 1.25rem;
  color: var(--muted-text);
  font-size: 0.95rem;
  max-width: 480px;
}

.hero__orientation a {
  color: var(--light-gold);
}

.trust-line {
  margin-top: 1.5rem;
  color: var(--dark-gold);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.section {
  padding: 3rem 2rem;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.section--alt {
  background: var(--section-background);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--alt > * {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.hero--split {
  display: flex;
  flex-wrap: wrap;
  background: var(--deep-earth);
}

.hero__media, .hero__content {
  flex: 1 1 320px;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__headline {
  font-size: 1.75rem;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.hero__subhead {
  color: var(--muted-text);
  margin: 0 0 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  font-family: -apple-system, sans-serif;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover, .button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.button--primary {
  background: var(--dark-gold);
  color: var(--deep-earth);
}

.button--secondary {
  background: transparent;
  color: var(--light-gold);
  border: 1px solid var(--dim-gold);
}

a:focus-visible,
button:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--light-gold);
  outline-offset: 2px;
}

.site-nav a[aria-current="page"] {
  color: var(--light-gold);
  text-decoration: underline;
  text-decoration-color: var(--dim-gold);
}

.card {
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.card:hover, .card:focus-visible {
  border-color: var(--dim-gold);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .button, .card, .gallery-item img {
    transition: none !important;
  }
  .gallery-item:hover img {
    transform: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 100;
  background: var(--section-alt-background);
  color: var(--light-gold);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-accent);
}

.skip-link:focus {
  top: 0.5rem;
}

.program-group-label {
  color: var(--dark-gold);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
}

.program-group-label:first-of-type {
  margin-top: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: none;
}

.card {
  border: 1px solid var(--border-accent);
  background: var(--section-background);
}

.card--expanded {
  display: flex;
}

.card--expanded .card__body {
  display: flex;
  flex-direction: column;
}

.card__for {
  color: var(--light-gold);
  font-size: 0.9rem;
  font-style: italic;
}

.card__facts {
  color: var(--dark-gold);
  font-size: 0.85rem;
  margin-top: auto;
}

.card__action {
  display: inline-block;
  margin-top: 1rem;
  color: var(--light-gold);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.card__action:hover {
  text-decoration: underline;
}

.card__body {
  padding: 1.25rem;
}

.card__body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.card__body p {
  color: var(--muted-text);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

blockquote {
  border-left: 3px solid var(--dark-gold);
  padding-left: 1.5rem;
  margin: 0 0 1rem;
  font-style: italic;
}

cite {
  color: var(--muted-text);
  font-size: 1rem;
}

.about__image {
  width: 100%;
  max-width: 480px;
  display: block;
  margin-bottom: 1.5rem;
}

.section--centered {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: none;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  background: var(--section-background);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.5rem 0.6rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text);
  background: linear-gradient(to top, rgba(15, 10, 7, 0.9), rgba(15, 10, 7, 0));
}

@media (max-width: 640px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    row-gap: 0.75rem;
  }
  .site-nav__brand {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
  .site-nav a:not(.site-nav__brand) {
    font-size: 0.9rem;
  }
  .section { padding: 2rem 1.25rem; }
}

/* Required by Google to publish the OAuth consent screen, and required in
   plain decency once real people are storing readings. Kept at footer weight:
   present on every page, quiet on all of them. */
.site-footer__legal {
  margin: 0;
  font-size: 0.85rem;
}

.site-footer__legal a {
  color: var(--muted-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--dark-gold);
}

/* Breath Check opt-in */
/* In-person series schedule */
.card__schedule {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.card__schedule li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-accent);
}

.card__schedule li:last-child {
  border-bottom: none;
}

.card__schedule-date {
  color: var(--dark-gold);
  font-weight: 600;
  display: inline-block;
  min-width: 3.5rem;
}

.venue-line {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
}

.venue-line strong {
  color: var(--text);
}

.optin__headline { margin-bottom: 0.6rem; }
.optin__body { max-width: 46ch; margin: 0 auto 0.9rem; }
.optin__form { max-width: 26rem; margin: 1.8rem auto 0; text-align: left; }
.optin__label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.optin__input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  margin-bottom: 1rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 4px;
}
.optin__input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* The inquiry form on contact.html reuses .optin__input for its select and
   textarea. Only the two things a single-line input never needed. */
.optin__input--area { resize: vertical; min-height: 8rem; }
.optin__optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }
/* Checkbox and its label on one line, label clickable, aligned to the
   first line of text rather than centred against a wrapped label. */
.optin__consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; margin: 0 0 1.1rem; }
.optin__consent input { margin-top: 0.25rem; flex: none; }
.optin__form .button { width: 100%; }
.optin__fine { font-size: 0.85rem; opacity: 0.75; margin-top: 0.9rem; text-align: center; }
.optin__status { margin-top: 0.9rem; text-align: center; }
.optin__status:empty { margin-top: 0; }
.optin__status--ok { font-weight: 600; }
.optin__status--error { color: #9a1c1c; }
.optin__repeat { margin-top: 1.2rem; font-size: 0.95rem; }
/* Honeypot. Hidden from people, still reachable by bots that ignore CSS. */
.optin__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
