@font-face {
  font-family: 'Libre Baskerville';
  src: url('static/fonts/Libre_Baskerville/static/LibreBaskerville-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('static/fonts/Libre_Baskerville/static/LibreBaskerville-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('static/fonts/Libre_Baskerville/static/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('static/fonts/Cormorant_Garamond/static/CormorantGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('static/fonts/Cormorant_Garamond/static/CormorantGaramond-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('static/fonts/Cormorant_Garamond/static/CormorantGaramond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nav-h: 220px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 250px;
  margin: 0;
  padding: 0;
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  color: #292D31;
  background-color: #F5F4EF;
  background-image: url('static/img/background.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
}

@media (hover: hover) and (pointer: fine) {
  body {
    background-attachment: fixed;
  }
}

.site-container {
  max-width: 1200px;
  min-height: calc(100vh - var(--nav-h) + 100px);
  margin: 0 auto;
  padding: 50px 50px 100px 50px;
  background: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

.content-block {
  max-width: 1100px;
  margin: 0 0 50px 0;
  padding: 25px 50px;
  border: 1px solid rgba(201, 162, 74, 0.5); /* Harvest Gold at 50% transparency */
  border-radius: 8px;
  background: rgba(245, 244, 239, 0.75); /* Mountain Mist at 25% transparency */
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .content-block[aria-labelledby="upcoming-events-title"] .event {
    max-width: 400px;
  }
}

.navbar {
  position: relative;
  z-index: 10;
  background: #25292C; /* dark Smoky Slate */
  color: #F5F4EF; /* Mountain Mist */
  border-top: 1px solid #1F4D3A; /* Cherokee Pine */
  border-bottom: 2px solid #1F4D3A; /* Cherokee Pine */
}

.nav-inner {
  display: grid;
  grid-template-rows: 3fr 1fr;
  align-items: stretch;
  max-width: 1200px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 16px;
}

.logo {
  display: block;
  width: auto;
  height: calc(var(--nav-h) * 0.8 - 12px);
  margin: 5px 0 0 0;
  object-fit: contain;
}

.logo-link {
  display: inline-block;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-row--logo {
  padding: 5px 0;
}

.nav-row--tabs {
  align-items: flex-start;
  padding-top: 5px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', serif;
}

.nav-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.nav-link {
  color: #F5F4EF; /* Mountain Mist */
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  transition: transform 150ms ease;
}

.nav-link:hover {
  transform: scale(1.05);
}

body[data-current="home"] .nav-link[href="index.html"],
body[data-current="about"] .nav-link[href="about.html"],
body[data-current="connect"] .nav-link[href="connect.html"],
body[data-current="membership"] .nav-link[href="membership.html"],
body[data-current="donations"] .nav-link[href="donations.html"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
h1,
h2,
h3 {
  color: #1F4D3A;
  margin-top: 0.2em;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  line-height: 1.75;
}

.site-container a:not(.btn) {
  color: #1F4D3A; /* Cherokee Pine */
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: #7DAF85; /* Rolling Meadow */
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-container a:not(.btn):visited {
  color: #1F4D3A;
}

.site-container a:not(.btn):hover,
.site-container a:not(.btn):focus-visible {
  text-decoration-thickness: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 6px;
  background: #1F4D3A;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  opacity: 0.9;
}

.calendar-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #e5e5e0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.calendar-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.spacer-lg {
  height: 24px;
}

.event {
  margin: 16px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 0.5px solid rgba(201, 162, 74, 0.5); /* Harvest Gold, thinner than content-block */
  border-radius: 8px;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
}

.event > * {
  grid-column: 2;
}

.event::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  background-image: url('data:image/svg+xml;utf8,<svg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23C9A24A%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22><rect%20x=%223%22%20y=%224%22%20width=%2218%22%20height=%2218%22%20rx=%222%22%20ry=%222%22/><line%20x1=%2216%22%20y1=%222%22%20x2=%2216%22%20y2=%226%22/><line%20x1=%228%22%20y1=%222%22%20x2=%228%22%20y2=%226%22/><line%20x1=%223%22%20y1=%2210%22%20x2=%2221%22%20y2=%2210%22/></svg>');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}

.event h3 {
  margin: 0 0 5px 0;
}

.event p {
  margin: 2px 0;
  line-height: 1.5;
}

.event p:first-of-type {
  padding-top: 2px;
  padding-bottom: 1px;
}

.event p + p {
  margin-top: 8px;
}

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

.event-image {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  padding: 12px;
  border-radius: 8px;
  box-sizing: border-box;
}

.content-block[aria-labelledby="faq-title"] .faq-item {
  margin: 30px 0;
}

.content-block[aria-labelledby="faq-title"] h3 {
  color: #292D31; /* Make questions black for contrast */
  margin: 0;
  padding-bottom: 10px;
}

.content-block[aria-labelledby="faq-title"] p {
  margin: 0;
}

.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.board-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.board-photo {
  width: 64px;
  height: 64px;
  border: 5px solid #ffffff; /* inner white border */
  border-radius: 50%;
  background: #EDEBE6;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(201, 162, 74, 0.5); /* outer gold ring */
}

.board-text {
  display: flex;
  flex-direction: column;
}

.board-role {
  font-size: 16px;
  font-weight: 700;
  color: #1F4D3A;
}

.board-name {
  font-size: 15px;
  color: #292D31;
}

@media (max-width: 599px) {
  html,
  body {
    min-width: 400px;
  }

  :root {
    --nav-h: 165px;
  }

  .nav-inner {
    padding: 0 12px;
  }

  .nav-row--tabs {
    padding-top: 2px;
  }

  .nav-tabs {
    gap: 6px;
  }

  .nav-link {
    font-size: 14px;
  }

  .content-block {
    margin: 0 0 25px;
    padding: 15px 25px;
  }

  .site-container {
    min-width: 400px;
    max-width: 600px;
    margin: 0 auto;
    padding: 25px 25px 50px 25px;
  }

  body {
    font-size: 12px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 14px;
  }

  .calendar-embed {
    aspect-ratio: 4 / 5;
  }

  .board {
    gap: 14px;
  }

  .board-item {
    gap: 12px;
  }

  .board-photo {
    width: 48px;
    height: 48px;
  }

  .board-role {
    font-size: 14px;
  }

  .board-name {
    font-size: 12px;
  }

  .content-block[aria-labelledby="faq-title"] .faq-item {
    margin: 30px 0;
  }

  .content-block[aria-labelledby="faq-title"] h3 {
    margin: 0;
    padding-bottom: 10px;
  }

  .content-block[aria-labelledby="faq-title"] p {
    margin: 0;
  }
}
