/* ---------------------------------------------------------------------------
   Miriam's Library: one brand for every page except the concert.
   The colours are the logo's own: teal and gold on cream. Headings are a warm
   serif, body text a clean sans. Loaded before each section's own stylesheet,
   so this is the source of truth and the others inherit.
   ------------------------------------------------------------------------- */
:root {
  --teal: #1f7a6b;
  --teal-deep: #14544a;
  --teal-ink: #0f3f37;
  --gold: #c9962f;
  --gold-soft: #e4c27a;
  --cream: #f8f4ec;
  --cream-2: #f2ebdf;
  --sand: #e9e0d0;
  --paper: #fffdf8;
  --ink: #1d2623;
  --ink-soft: #5c6b66;
  --muted: #7d8a86;
  --line: #e3dccf;
  --forest: #1f3a32;

  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* The library stylesheet's older names, mapped onto the brand so nothing has
     to be rewritten there. */
  --clay: var(--teal);
  --clay-light: var(--teal);
  --clay-deep: var(--teal-deep);
  --sand-deep: var(--sand);
  /* The homepage's names, likewise. */
  --wine: var(--teal-deep);
  --wine-deep: var(--teal-ink);
  /* The after-school stylesheet's names. */
  --teal-dark: var(--teal-deep);
  --body: var(--ink-soft);
}
body { font-family: var(--sans); color: var(--ink); background: var(--cream); }
h1, h2, h3, h4, .display { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; text-transform: none; }

/* ---- The shared header and footer, rendered by /js/nav.js on every page ---- */
.ml-head { position: sticky; top: 0; z-index: 50; background: rgba(248,244,236,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ml-head-in { width: min(1120px, 92vw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.ml-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-deep); }
.ml-brand img { width: 44px; height: 44px; }
.ml-brand b { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.05; display: block; color: var(--teal-deep); }
.ml-brand span { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: var(--sans); }
.ml-nav { display: flex; align-items: center; gap: 22px; }
.ml-nav a { font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.ml-nav a:hover, .ml-nav a.on { color: var(--teal-deep); }
.ml-nav a.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.ml-nav .ml-cta { background: var(--teal); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.ml-nav .ml-cta:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }
.ml-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-right: -6px; }
.ml-burger span { display: block; width: 24px; height: 2.5px; background: var(--teal-deep); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ml-burger span + span { margin-top: 5px; }
.ml-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ml-burger.open span:nth-child(2) { opacity: 0; }
.ml-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.ml-panel { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--cream); }
.ml-panel a { padding: 15px 4vw; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.ml-panel a.on { color: var(--teal-deep); background: var(--cream-2); }
.ml-panel.open { display: flex; }
@media (max-width: 880px) {
  .ml-nav { display: none; }
  .ml-burger { display: block; }
}

.ml-foot { background: var(--teal-ink); color: #cfe2dc; padding: 46px 0 40px; margin-top: 40px; }
.ml-foot-in { width: min(1120px, 92vw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.ml-foot b { font-family: var(--serif); font-size: 20px; color: #fff; display: block; margin-bottom: 8px; }
.ml-foot p { margin: 0; font-size: 14px; line-height: 1.65; color: #b7cfc8; }
.ml-foot h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 12px; }
.ml-foot a { display: block; color: #e3eeea; font-size: 14.5px; text-decoration: none; margin-bottom: 8px; }
.ml-foot a:hover { color: #fff; text-decoration: underline; }
.ml-foot .ml-tag { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 16px; margin-top: 4px; }
.ml-foot-base { width: min(1120px, 92vw); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #9bb8b0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) { .ml-foot-in { grid-template-columns: 1fr; gap: 24px; } }

.ml-nav .ml-cta.ghost { background: transparent; color: var(--teal-deep); border: 1.5px solid var(--teal); }
.ml-nav .ml-cta.ghost:hover { background: var(--teal); color: #fff; }
.ml-nav { gap: 18px; }

/* Register stays visible on a phone, without opening the menu. */
.ml-mobile-reg { display: none; }
@media (max-width: 880px) {
  .ml-mobile-reg { display: inline-flex; align-items: center; min-height: 40px; background: var(--teal); color: #fff; padding: 0 16px; border-radius: 999px; font: 700 14px/1 var(--sans); text-decoration: none; margin-left: auto; margin-right: 6px; }
  .ml-head-in { gap: 10px; }
  .ml-brand b { font-size: 18px; }
}
@media (max-width: 380px) { .ml-brand span span { display: none; } .ml-brand img { width: 38px; height: 38px; } }
.ml-burger:focus-visible, .ml-nav a:focus-visible, .ml-panel a:focus-visible, .ml-foot a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
html { scroll-padding-top: 96px; }
/* Content is never hidden waiting for a script. Animation only applies once
   a script has marked the page as able to run it. */
html:not(.js) .reveal, html:not(.js) .rise, html:not(.js) .up { opacity: 1 !important; transform: none !important; filter: none !important; }
