:root {
  --bg: #f7f3e9;
  --bg-alt: #e3dac7;
  --text: #2b2b2b;
  --accent-dark: #304733;   /* Blue Ridge green */
  --accent-medium: #4f6a4a;
  --accent-brown: #5b3b1f;
  --accent-gold: #d9a441;
  --accent-rust: #b65c2b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #e9eee2 0, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-rust);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Layout */

.site-header {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-brown));
  color: #fff;
  padding: 0.75rem 1rem;
  border-bottom: 4px solid rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  background: #2b2b2b;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fefcf8;
  background: rgba(255, 255, 255, 0.08);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  background: var(--accent-gold);
  color: #2b2414;
  text-decoration: none;
}

.main-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Home / Mission */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hero-badge {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: 2.1rem;
  color: var(--accent-brown);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4a4a4a;
}

.hero-logo-wrap {
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column; /* stack logo above text */
  align-items: center;    /* center both horizontally */
}

.hero-logo-wrap img {
  width: 180px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.hero-logo-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #fdf8ea;
  background: linear-gradient(135deg, var(--accent-brown), var(--accent-dark));
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* Sections */

.section-title {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--accent-brown);
}

.mission-points {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.mission-points li + li {
  margin-top: 0.4rem;
}

.mission-points strong {
  color: var(--accent-dark);
}

/* Utility areas */

.notice {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent-gold);
  font-size: 0.95rem;
}

.notice strong {
  color: var(--accent-brown);
}

/* Embeds */

.embed-wrapper {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.embed-wrapper iframe {
  width: 100%;
  border: 0;
}

/* Give calendar a default height; Word HTML will resize with JS */

.calendar-frame {
  min-height: 600px;
}

.content-frame {
  min-height: 800px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li + li {
  margin-top: 0.5rem;
}

.contact-label {
  font-weight: 600;
  color: var(--accent-dark);
}

.social-links {
  list-style: none;
  padding-left: 0;
}

.social-links li + li {
  margin-top: 0.35rem;
}

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #5b5b5b;
}

.news-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.news-pager-label {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.news-pager-btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-medium);
  color: #fdfaf3;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.news-pager-btn:hover,
.news-pager-btn:focus-visible {
  background: var(--accent-gold);
  color: #2b2414;
}

.news-pager-btn.disabled {
  background: var(--bg-alt);
  color: #888;
  cursor: default;
  pointer-events: none;
}



/* Responsive */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-logo-wrap {
    order: -1;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

}
