/* ========== Base Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
}
/* ========== Awards list ========== */
.award-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.award-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px 0;
}

.award-icon {
  width: 56px;       /* slightly bigger for desktop readability */
  height: auto;
  flex-shrink: 0;
}

/* ========== Colors & Theme ========== */
:root {
  --bsm-gold: #d4af37;
  --bsm-red: #7b1113;
  --bsm-dark: #151313;
  --bsm-light: #faf7f0;
  --bsm-accent: #314255;

  --bg-body: #faf7f0;
  --bg-card: #fffdf7;
  --bg-section-alt: rgba(0, 0, 0, 0.03);
  --text-main: #111111;
  --text-muted: #333333;
  --header-gradient: linear-gradient(120deg, #000000, #311010);
  --footer-bg: #111111;

  --max-width: 1600px;
}

/* Dark theme overrides - warm, candlelit */
:root[data-theme="dark"] {
  --bg-body: #050304;
  --bg-card: #141012;
  --bg-section-alt: #0d090b;
  --text-main: #f5e9c8;
  --text-muted: #c9b8a0;
  --header-gradient: linear-gradient(120deg, #060304, #3a0505);
  --footer-bg: #040203;
}

/* ========== Layout Helpers ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  padding: 2rem 0 3rem;
}

/* ========== Header & Navigation ========== */

.site-header {
  background: var(--header-gradient);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem 0.25rem;
}

/* Top row: brand + mobile menu button */
.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand: logo + text */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  min-width: 260px;
}

.brand img {
  height: 80px;
  width: auto;
}

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

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.3;
}

/* Second row: nav bar (shares same gradient via header background) */
.site-nav {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;  /* align under brand */
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-nav a {
  color: #f9f9f9;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.18rem;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--bsm-gold);
  transition: width 0.2s ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* Theme toggle lives at end of nav row */
.site-nav .theme-toggle {
  margin-left: 0.75rem;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.site-nav .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Mobile menu button (shows only on small screens) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #777;
  color: #f5f5f5;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ========== Hero ========== */

.hero {
  background-image: url("../images/parchment-texture.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid #000;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75),
    rgba(30, 0, 0, 0.6)
  );
  color: #fefaf2;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem 2.5rem;
}

.hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bsm-gold);
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin: 0.25rem 0 0.5rem;
}

.hero-subtitle {
  max-width: 40rem;
  font-size: 1rem;
  opacity: 0.98;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease-out, color 0.2s ease-out,
    border-color 0.2s ease-out, transform 0.1s ease-out;
}

.btn-primary {
  background: var(--bsm-gold);
  color: #1b1100;
  border-color: var(--bsm-gold);
}

.btn-primary:hover {
  background: #f4ca52;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #f4f4f4;
  border-color: rgba(250, 250, 250, 0.7);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ========== Sections ========== */

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--bsm-red);
}

.section-title {
  margin: 0.35rem 0;
  font-size: 1.5rem;
}

.section-lead {
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ========== Cards & Grids ========== */

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

.card {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.1rem;
}

.card-title {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--bsm-accent);
}

.card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin-bottom: 0.5rem;
}

.card-body {
  font-size: 0.9rem;
}
/* Prevent long emails/URLs from overflowing cards */
.card a,
.card em,
.card-body a,
.card-body em {
  overflow-wrap: anywhere;   /* best for emails */
  word-break: break-word;    /* fallback */
}

/* Simple list styles */
.inline-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inline-list li {
  font-size: 0.85rem;
  padding: 0.1rem 0.5rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 999px;
}

/* ========== Tables (for awards, etc.) ========== */

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.table th {
  text-align: left;
  background: rgba(0, 0, 0, 0.04);
}

/* ========== Forms ========== */

.form-grid {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========== Footer ========== */

.site-footer {
  background: var(--footer-bg);
  color: #ddd;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer a {
  color: #f0f0f0;
  text-decoration: underline;
}
/* ========== Bardic Callout ========== */

.section-divider {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Dark mode divider */
:root[data-theme="dark"] .section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.bardic-callout {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 3rem auto;
}

.bardic-callout-title {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.bardic-callout-text {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.btn-link {
  display: inline-block;
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--text-main);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--bsm-gold);
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-link:hover::after {
  opacity: 1;
  transform: scaleX(1.05);
}
.poem-credit {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  font-style: italic;
}

/* ========== Footer Legal Block ========== */

.footer-legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #aaa;
}

.footer-legal p {
  margin-bottom: 0.75rem;
}

.footer-legal a {
  color: #ddd;
  text-decoration: underline;
}

/* ========== Responsive ========== */

@media (max-width: 800px) {
  .site-header-inner {
    padding: 0.4rem 0.75rem 0.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Mobile nav slides down */
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: none;
    border-bottom: 1px solid #333;
  }

  .site-nav.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 2.25rem 1rem 2rem;
  }
  
  .calendar-embed {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.calendar-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

}
.announcement-section {
  background: #f8f5f0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.election-btn {
  color: #ffffff !important;
  background-color: #8B0000;
  border: 1px solid #8B0000;
}

.election-btn:hover {
  background-color: #a00000;
  color: #ffffff;
}