/* ── Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Slab:wght@500;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f5f4f1;
  --surface:    #e4dfd9;
  --blue:       #1A1560;
  --blue-dark:  #130f4a;
  --border:     #e0ddd8;
  --accent:     #F3AE3E;
  --accent-h:   #d4922a;
  --text:       #23211F;
  --muted:      #545C52;
  --radius:     10px;
  --max-w:      1280px;

  --font-head:  'Bebas Neue', sans-serif;
  --font-sub:   'Roboto Slab', serif;
  --font-body:  'Crimson Text', serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }

/* ── Header ───────────────────────────────────────── */
header {
  background: var(--blue);
  position: relative;
}

/* Yellow triangle outline — 4px taller, sits behind the blue triangle */
header::before {
  content: '';
  position: absolute;
  bottom: -52px;
  left: 0;
  width: 100%;
  height: 52px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 9;
}

/* Blue triangle on top */
header::after {
  content: '';
  position: absolute;
  bottom: -48px;
  left: 0;
  width: 100%;
  height: 48px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 10;
}

main {
  padding-top: 52px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  width: 100%;
}

.header-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.header-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-social a {
  color: #D7D3D4;
  font-size: 1.3rem;
  transition: color 0.15s;
}

.header-social a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-newsletter {
  text-align: center;
  padding: 32px 24px 48px;
}

.header-newsletter p {
  color: #D7D3D4;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.btn {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-h); }

/* ── MailerLite ───────────────────────────────────── */
/* Hide MailerLite's own description text (we have our own above) */
.ml-embedded .ml-form-embedBody .ml-form-embedContent { display: none !important; }

/* ── About ────────────────────────────────────────── */
.about h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 16px;
}

.about p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.about ol {
  color: var(--muted);
  font-size: 1.1rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Section headings ─────────────────────────────── */
.section-heading {
  font-family: var(--font-head);
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 32px;
}

/* ── Event Cards (upcoming) ───────────────────────── */
.events-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

.event-card {
  background: var(--surface);
  border: 1px solid #cdc8c2;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.event-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--border);
}

.event-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-title {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.event-meta span { display: flex; align-items: flex-start; gap: 6px; }

.event-card-body a { color: #9a6800; }
.event-card-body a:hover { color: #6b4900; }

.event-description {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-style: italic;
  margin-top: 4px;
  flex: 1;
}

.event-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.event-footer a {
  padding: 7px 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background 0.15s;
}
.event-footer a:hover { background: var(--accent-h); text-decoration: none; }

/* ── Past Events Table ────────────────────────────── */
.past-events table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 1rem;
}

.past-events th {
  text-align: left;
  padding: 10px 16px;
  color: var(--muted);
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.past-events td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.past-events td:first-child {
  color: var(--text);
  font-weight: 600;
}

.past-events tr:hover td { background: var(--surface); }

/* ── Loading / Empty states ───────────────────────── */
.state-msg {
  color: var(--muted);
  text-align: center;
  padding: 48px 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--blue);
  padding: 48px 24px;
  color: #D7D3D4;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.footer-copy {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 32px;
  color: #D7D3D4;
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.footer-section h4 {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-section p {
  color: #D7D3D4;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-credit {
  text-align: center;
  font-size: 0.85rem;
  color: #9a9599;
}

.footer-credit a {
  color: #D7D3D4;
}

.footer-credit a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .footer-legal { grid-template-columns: 1fr; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr !important; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: unset; }

  .past-events th:last-child,
  .past-events td:last-child { display: none; }
}
