/* OACMA website styles */
:root {
  --green: #134E3A;
  --green-dark: #0B2F23;
  --gold: #F2B33D;
  --terracotta: #B8462E;
  --ink: #1C1B19;
  --body: #3A3833;
  --muted: #55524C;
  --sand: #F6F2EA;
  --line: #E5E1D8;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 12px 16px; z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.sand { background: var(--sand); }
.dark { background: var(--ink); color: var(--white); }

/* Kente-inspired stripe */
.stripe { height: 8px; display: flex; }
.stripe span { flex: 1; }
.stripe span:nth-child(6n+1) { background: var(--green); }
.stripe span:nth-child(6n+2) { background: var(--gold); }
.stripe span:nth-child(6n+3) { background: var(--terracotta); }
.stripe span:nth-child(6n+4) { background: var(--ink); }
.stripe span:nth-child(6n+5) { background: var(--green); }
.stripe span:nth-child(6n+6) { background: var(--gold); }

/* Header */
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .02em; display: block; line-height: 1.2; }
.brand-full { font-size: 13px; color: var(--muted); display: block; line-height: 1.2; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 10px 0; }
.main-nav a:hover { color: var(--green); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px;
  padding: 14px 26px; font-size: 17px; border: 2px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E5A42A; color: var(--ink); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green); }
.btn-green { background: var(--green); color: var(--white); border: none; }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.main-nav .btn { padding: 10px 22px; }

/* Typography */
.eyebrow {
  margin: 0 0 12px; color: var(--terracotta); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
}
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
h2 { font-weight: 800; font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: 24px; }
.section-intro { max-width: 640px; margin-bottom: 40px; }

/* Hero */
.hero { background: var(--green); color: var(--white); }
.hero-carousel { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text h1, .hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; margin: 0; }
.hero-text p.lead { margin: 0; font-size: 19px; color: #DCE8E2; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-image {
  flex: 1 1 400px; min-width: 0; height: 420px; border-radius: 24px; overflow: hidden;
  background: var(--green-dark);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* Posters and flyers are shown whole rather than cropped */
.hero-image.poster { background: var(--green-dark); padding: 16px; }
.hero-image.poster img { object-fit: contain; border-radius: 12px; }

.hero-controls { display: flex; align-items: center; gap: 12px; }
.hero-controls[hidden] { display: none; }
.hero-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
  background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-btn:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.hero-pause { margin-left: auto; }
.hero-pause .icon-play { display: none; }
.hero-pause.is-paused .icon-play { display: block; }
.hero-pause.is-paused .icon-pause { display: none; }
.hero-dots { display: flex; gap: 4px; }
.hero-dot {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-dot::before { content: ""; width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.hero-dot[aria-current="true"]::before { width: 32px; background: var(--gold); }
.hero-dot:hover::before { background: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: none; }
}

/* Past events page */
.past-events { display: flex; flex-direction: column; gap: 32px; }
.past-event {
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; align-items: center;
  padding: 24px; border: 1px solid var(--line); border-radius: 24px;
}
.past-event img { width: 100%; height: 300px; object-fit: contain; background: var(--sand); border-radius: 16px; }
.past-event h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 12px; }
.past-event p { color: var(--body); margin: 0 0 12px; }
.past-event .eyebrow { margin: 0; }
.past-event img.photo { object-fit: cover; }
a.on-dark { color: var(--gold); }

/* Partners and supporters */
.partners { background: var(--sand); padding: 72px 0; }
.partners .section-intro { margin-bottom: 32px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.partner-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  flex: 0 1 auto; min-width: 180px; height: 128px; padding: 20px 28px; display: flex; align-items: center; justify-content: center;
}
.partner-list a { display: flex; align-items: center; height: 100%; }
.partner-list img { max-height: 88px; max-width: 220px; width: auto; height: auto; }

/* Banner */
.banner { background: var(--gold); }
.banner .container {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.banner p { margin: 0; font-weight: 600; font-size: 18px; }
.banner a { color: var(--ink); font-weight: 600; padding: 10px 0; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about > div:first-child { flex: 1 1 360px; min-width: 0; }
.about-body { flex: 1 1 480px; min-width: 0; font-size: 18px; color: var(--body); }
.about-body p { margin: 0 0 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--green); }
.stat-label { font-size: 15px; color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; color: var(--body); }
.dark .card { background: transparent; border: 1px solid #3A3833; }
.dark .card p { color: #CFCBC2; }
.dark .card a { color: var(--gold); font-weight: 600; padding: 6px 0; }

/* Events */
.events-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.events-head a { font-weight: 600; padding: 10px 0; }
.event { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.event img { width: 100%; height: 190px; object-fit: cover; background: var(--sand); }
.event-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.event-date { margin: 0; color: var(--terracotta); font-weight: 600; font-size: 14px; }
.event-place { margin: 0; color: var(--muted); font-size: 15px; }
.event-body a { font-weight: 600; margin-top: 8px; padding: 6px 0; }
.follow { margin-top: 32px; color: var(--muted); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-info p { margin: 0; font-size: 18px; }
.social { display: flex; gap: 12px; }
.social a {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--green-dark); }

.newsletter {
  flex: 1 1 440px; min-width: 0; background: var(--sand); border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.newsletter p { margin: 0; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 160px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input {
  height: 48px; border: 1px solid #A8A398; border-radius: 12px; padding: 0 14px;
  font-size: 16px; font-family: inherit; background: var(--white);
}
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; }
.consent label { font-size: 15px; color: var(--body); }
.newsletter .btn-green { height: 52px; }

/* Footer */
.site-footer { background: var(--green); color: #DCE8E2; font-size: 15px; }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start;
  padding-top: 48px; padding-bottom: 48px;
}
.site-footer .brand-name { color: var(--white); font-size: 22px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--white); padding: 6px 0; }
.sponsor {
  flex-basis: 100%; margin: 8px 0 0; padding-top: 20px;
  border-top: 1px solid #2F6B55; color: #DCE8E2; font-size: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.sponsor p { margin: 0; }
.sponsor .sponsor-logo {
  background: var(--white); border-radius: 12px; padding: 8px 12px; display: inline-flex;
}
.sponsor-logo img { height: 56px; width: auto; }
.sponsor a { font-weight: 600; color: var(--gold); }
.sponsor a:hover { color: var(--white); }

/* Privacy page */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; color: var(--body); }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); margin-bottom: 12px; }
.legal h2 { font-size: 24px; color: var(--ink); margin: 40px 0 10px; }
.legal p { margin: 0 0 12px; }
.updated { color: var(--muted); }

/* Blog */
.post-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.main-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.post-card img { width: 100%; height: 190px; object-fit: cover; background: var(--sand); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-summary { margin: 0; color: var(--body); }
.post-card .read-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--green); }
.post-card-link:hover h3, .post-card-link:focus-visible h3 { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-card-link:focus-visible { outline: 3px solid var(--terracotta); outline-offset: -3px; }

.blog-hero { background: var(--green); color: var(--white); }
.blog-hero .container { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.blog-hero .eyebrow { color: var(--gold); margin: 0; }
.blog-hero .lead { margin: 0; font-size: 19px; color: #DCE8E2; max-width: 560px; }
.empty { font-size: 18px; color: var(--muted); }

.post { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.back-link { display: inline-block; font-weight: 600; padding: 8px 0; margin-bottom: 24px; }
.post-header { margin-bottom: 32px; }
.post-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.post-author { margin: 16px 0 0; color: var(--muted); }
.post-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; margin-bottom: 40px; background: var(--sand); }
.post-body { font-size: 18px; color: var(--body); line-height: 1.7; }
.post-body > * { margin: 0 0 20px; }
.post-body h2 { font-size: 28px; color: var(--ink); margin: 44px 0 14px; }
.post-body h3 { font-size: 22px; color: var(--ink); margin: 32px 0 10px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body img { height: auto; border-radius: 16px; margin: 32px 0; }
.post-body blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); font-size: 20px; color: var(--ink); }
.post-body table { border-collapse: collapse; width: 100%; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; max-width: 48%; font-weight: 600; text-decoration: none; padding: 6px 0; }
.post-nav a span { font-size: 14px; color: var(--terracotta); text-transform: uppercase; letter-spacing: .1em; }
.post-nav a:hover { text-decoration: underline; }
.post-nav .newer { text-align: right; margin-left: auto; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-carousel { padding-top: 48px; padding-bottom: 32px; }
  .hero-slide { gap: 32px; }
  .hero-image { height: 300px; flex-basis: 100%; }
  .past-event { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .past-event img { height: 260px; }
  .partner-list { gap: 12px; }
  .partner-list li { flex: 1 1 140px; min-width: 0; height: 104px; padding: 16px; }
  .partner-list img { max-height: 72px; max-width: 100%; }
  .newsletter { padding: 28px; }
  .brand-full { display: none; }
  .post-nav a { max-width: 100%; }
  .post-nav .newer { text-align: left; margin-left: 0; }
}
