/* ============================================================
   London Musicians Association — design tokens
   Navy + gold, grounded in the org's actual Divi source (color #c39d63
   used 134 times, Playfair Display used 92 times in the real content).
   Institutional and credible, but warm — serves musicians, not investors.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --paper:        #FFFFFF;
  --paper-deep:   #F7F5F0;
  --navy:         #1B2A3D;   /* primary — institutional, credible */
  --navy-deep:    #111C29;
  --ink:          #232323;
  --muted:        #5C5C58;
  --gold:         #C39D63;   /* the org's real, established accent color */
  --gold-deep:    #A07E47;
  --hairline:     #E2DED4;
  --white:        #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', -apple-system, sans-serif;

  --max-width: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(27, 42, 61, 0.3); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--gold-deep); text-decoration-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-weight: 700; }

p { margin: 0 0 1.1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Top bar + header / nav
   ============================================================ */

.topbar { background: var(--navy-deep); color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.topbar__inner { max-width: var(--max-width); margin: 0 auto; padding: 8px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--gold); text-decoration: none; }
.topbar a:hover { color: #DDBE85; }

.site-header { background: var(--white); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 100; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--max-width); margin: 0 auto; gap: 16px; }

.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--navy); }
.wordmark span.accent { color: var(--gold-deep); }

.main-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.main-nav a { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 0.92rem; padding: 8px 13px; border-radius: var(--radius); }
.main-nav a:hover { background: var(--paper-deep); color: var(--navy); }
.main-nav a.is-active { color: var(--gold-deep); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--hairline); border-radius: var(--radius); padding: 6px 14px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding: 8px 0 4px; }
  .main-nav.is-open { display: flex; }
  .site-header__inner { flex-wrap: wrap; }
}

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

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); padding: 72px 24px; border-bottom: 4px solid var(--gold); }
.hero__inner { max-width: var(--max-width); margin: 0 auto; }
.hero .eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; color: var(--gold); display: block; margin-bottom: 16px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 18px; max-width: 700px; }
.hero p.lede { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-block; font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent; }
.btn--primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn--primary:hover { background: #DDBE85; border-color: #DDBE85; color: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--navy); border-color: var(--hairline); }
.btn--ghost-light:hover { border-color: var(--navy); }

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

.section { padding: 64px 24px; }
.section--alt { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section__header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.section__header h2 { font-size: 1.8rem; margin: 0; }
.section__header .see-all { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* ============================================================
   Cards
   ============================================================ */

.card-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.info-card { background: var(--white); border: 1px solid var(--hairline); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 26px 24px; text-decoration: none; color: var(--ink); display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.07); }
.info-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.info-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ============================================================
   News / posts
   ============================================================ */

.post-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.07); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-deep); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__date { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-deep); margin-bottom: 6px; display: block; }
.post-card__title { font-size: 1.15rem; margin: 0; }

/* ============================================================
   Person cards (officers / notable members)
   ============================================================ */

.person-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .person-grid { grid-template-columns: 1fr; } }
.person-card { background: var(--paper-deep); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; text-align: center; }
.person-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 2px solid var(--gold); }
.person-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.person-card .role { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* ============================================================
   Newsletter archive (Crescendo)
   ============================================================ */

.newsletter-year { margin-bottom: 32px; }
.newsletter-year h3 { font-size: 1.2rem; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 14px; }
.newsletter-list { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-list a { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px 18px; font-weight: 600; text-decoration: none; color: var(--navy); }
.newsletter-list a:hover { border-color: var(--gold); color: var(--gold-deep); }

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

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.85); padding: 48px 24px 32px; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #DDBE85; }
.footer__grid { max-width: var(--max-width); margin: 0 auto; }
.footer__brand .wordmark { color: var(--white); }
.footer__brand .wordmark span.accent { color: var(--gold); }
.footer__brand p { margin-top: 12px; }
.footer__bottom { max-width: var(--max-width); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   Page content
   ============================================================ */

.page-header { background: var(--paper-deep); border-bottom: 1px solid var(--hairline); padding: 48px 24px 36px; }
.page-header__inner { max-width: 800px; margin: 0 auto; }
.page-header .eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--gold-deep); display: block; margin-bottom: 10px; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.page-header .meta { color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 760px; margin: 0 auto; padding: 44px 24px 72px; }
.prose img { border-radius: var(--radius); margin: 8px auto 20px; max-width: 100%; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3, .prose h4 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--hairline); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-deep); font-weight: 700; }

.callout { background: var(--paper-deep); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.empty-note { background: var(--paper-deep); border: 1px dashed var(--hairline); border-radius: var(--radius); padding: 20px; color: var(--muted); font-size: 0.95rem; }
