/* Old School Village — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ink: #1F3A33;
  --ink-soft: #2E4941;
  --paper: #FAF6EC;
  --paper-dim: #F1EBDC;
  --white: #FFFFFF;
  --gold: #BE8A34;
  --gold-dark: #9C7028;
  --clay: #A65B3E;
  --sage: #6E8C74;
  --charcoal: #26302C;
  --line: #DCD3BE;
  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em 0; max-width: 62ch; }

a {
  color: var(--clay);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 0.9em 1.3em;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  left: 1em;
  top: 1em;
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section--tight { padding: 3rem 0; }

.section--white { background: var(--white); }
.section--dim { background: var(--paper-dim); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #DCE7DF; }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Site header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark:hover { color: var(--ink); }

.wordmark span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover { background: var(--gold-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}

.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--on-dark {
  background: var(--paper);
  color: var(--ink);
}

.btn--on-dark:hover { background: var(--white); }

.btn--small { padding: 0.55em 1.1em; font-size: 0.92rem; }

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* Each hero block (vision, mission, call-to-action) gets clear vertical
   separation so screen reader users and sighted readers alike can tell
   where one idea ends and the next begins. */
.hero__block {
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.hero__block:first-of-type {
  margin-top: 1.4rem;
  padding-top: 0;
  border-top: none;
}

.hero__subheading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage);
  margin-bottom: 0.6rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
}

.hero__note {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  width: 100%;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Two column generic */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split--reverse .split__art { order: -1; }

@media (min-width: 801px) {
  .split--reverse .split__art { order: 2; }
}

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
}

.stat__num {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}

/* Testimony blocks */
.testimony {
  border-left: 4px solid var(--clay);
  padding: 0.2rem 0 0.2rem 1.6rem;
  margin-bottom: 2.8rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.6rem;
}

@media (max-width: 620px) {
  .testimony { grid-template-columns: 1fr; }
  .testimony__portrait { width: 90px; }
}

.testimony__portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
}

.testimony__name {
  font-weight: 700;
  color: var(--ink);
  margin: 0.8rem 0 0.2rem;
}

.testimony__place {
  font-size: 0.92rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Cards (used sparingly — donate options, partner tracks) */
.option-list {
  display: grid;
  gap: 1.4rem;
}

.option {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  padding: 1.8rem;
}

.option h3 { margin-bottom: 0.5rem; }

.option--gold { border-top-color: var(--gold); }
.option--clay { border-top-color: var(--clay); }

/* Sponsor counter widget */
.sponsor-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  max-width: 640px;
  margin-top: 1.8rem;
}

.sponsor-box > div,
.sponsor-box > p,
.sponsor-box > .form-grid {
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.sponsor-box > *:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sponsor-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.counter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.counter button {
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}

.counter button:hover { background: var(--ink); color: var(--white); }

.counter__value {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  min-width: 2ch;
  text-align: center;
}

.amount-choices {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.amount-choices button {
  border: 2px solid var(--line);
  background: var(--white);
  padding: 0.6em 1em;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.amount-choices button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--paper-dim);
  color: var(--ink);
}

.sponsor-box__total {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 1rem 0;
}

.sponsor-box__total strong { color: var(--gold-dark); }

/* Forms */
.form-grid {
  display: grid;
  gap: 1.3rem;
  max-width: 640px;
}

.field label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.75em 0.9em;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  outline: none;
}

.field textarea { resize: vertical; min-height: 120px; }

.field__hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}

.field--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

fieldset {
  border: 1px solid var(--line);
  padding: 1.6rem;
  border-radius: var(--radius);
}

legend {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  padding: 0 0.5rem;
  color: var(--ink);
}

.form-status {
  padding: 1em 1.3em;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 600;
}

.form-status--ok { background: #E7EFE5; color: #2F4A32; border: 1px solid #B9CFB4; }

/* Donate channel list */
.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.channel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.channel__label { font-weight: 700; color: var(--ink); }
.channel__note { font-size: 0.92rem; color: var(--ink-soft); margin: 0.2rem 0 0; }

.bank-details {
  margin-top: 1rem;
  background: var(--paper-dim);
  border: 1px dashed var(--line);
  padding: 1.2rem 1.4rem;
  display: none;
}

.bank-details.is-open { display: block; }

.bank-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
}

.bank-details dt { font-weight: 700; color: var(--ink); }
.bank-details dd { margin: 0; }

/* Directors */
.directors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.director {
  border-top: 3px solid var(--gold);
  background: var(--white);
  padding: 1.4rem 1.5rem;
}

.director__role {
  font-size: 0.88rem;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* Placeholder note */
.placeholder-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Impact strip */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.impact-strip__item p {
  margin: 0.3rem 0 0;
  color: var(--paper);
  opacity: 0.85;
}

.impact-strip__num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--ink-soft);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.faq-item p {
  margin: 0.8rem 0 0.2rem;
}

/* Report list */
.report-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.report-list a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink-soft);
  border-radius: 6px;
  text-decoration: none;
}

.report-list a:hover,
.report-list a:focus {
  background: var(--ink);
  color: var(--paper);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0 2rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--gold); }

.footer-nav ul,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.social-list {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-list a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid #33544A;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: #B9CFC3;
}

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

/* Thank-you ticker (Donate page) */
.thankyou-ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-top: 1.5rem;
}

.thankyou-ticker__track {
  display: inline-block;
  animation: thankyou-scroll 30s linear infinite;
}

.thankyou-item {
  display: inline-block;
  margin-right: 3rem;
  font-weight: 600;
  color: var(--ink);
}

@keyframes thankyou-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .thankyou-ticker__track {
    animation: none;
    white-space: normal;
  }
  .thankyou-ticker {
    white-space: normal;
  }
}

/* Gallery page -- clickable event cards, each opening a modal of photos */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.gallery-card { display: flex; flex-direction: column; text-align: left; background: var(--paper-dim); border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: inherit; }
.gallery-card:hover, .gallery-card:focus { border-color: var(--gold); }
.gallery-card__preview { display: flex; }
.gallery-card__preview img { width: 50%; height: 140px; object-fit: cover; display: block; }
.gallery-card__preview img:only-child { width: 100%; }
.gallery-card__label { padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.gallery-card__name { font-weight: 700; }
.gallery-card__date { font-size: 0.85rem; opacity: 0.75; }
.gallery-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.gallery-modal[hidden] { display: none; }
.gallery-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.gallery-modal__dialog { position: relative; background: var(--paper-dim); border-radius: 10px; max-width: 900px; max-height: 85vh; overflow-y: auto; padding: 2rem; width: 100%; }
.gallery-modal__close { position: absolute; top: 0.75rem; right: 0.75rem; border: 1px solid var(--line); background: var(--paper, #fff); border-radius: 6px; padding: 0.4rem 0.8rem; cursor: pointer; font: inherit; }
.gallery-modal__photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 1rem; }
.gallery-modal__photos img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }

/* Expansion page photo gallery */
.expansion-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.expansion-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
}
.expansion-photos figcaption {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  color: var(--ink);
}


/* Seasonal announcement banner (Home page, editable in admin) */
.site-announcement {
  background: #BE8A34;
  color: #FFFFFF;
  text-align: center;
  padding: 0.75rem 1rem;
}
.site-announcement p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}


/* Daily devotion audio player (Home page) */
.devotion-player {
  background: #4F6E58;
  color: #FFFFFF;
  padding: 0.75rem 1rem;
}
.devotion-player__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.devotion-player__title {
  margin: 0;
  font-weight: 600;
}
.devotion-player__toggle {
  min-width: 90px;
}
