/* North MS PTSA: shared styles for every page. Page-specific CSS lives in each page's head block.
   Look: North blue bands with a gold varsity stripe, the North paw as the hero mark, white cards on a
   cool page. Headings use Archivo (self-hosted, no third-party requests); body text uses system fonts. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/assets/fonts/archivo-var.woff2) format("woff2");
}
:root {
  --brand: #0032a0;        /* North's school blue */
  --brand-ink: #001d5e;
  --brand-deep: #00123d;
  --brand-soft: #e3eafb;
  --brand-tint: #f2f5fd;
  --gold: #ffc72c;         /* varsity stripe and highlights on blue */
  --gold-hover: #ffd75e;
  --accent: #b45309;       /* amber text: next meeting, open roles */
  --accent-tint: #fff7ea;
  --accent-rule: #f3d3a3;
  --ink: #18202e;
  --muted: #556070;
  --rule: #dde3ee;
  --card: #ffffff;
  --page: #f7f8fc;
  --good: #067647;
  --bad: #b42318;
  --display: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 29, 94, .05), 0 6px 20px rgba(0, 29, 94, .07);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: .7rem; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: .4rem .8rem; z-index: 100; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .9rem; color: var(--muted); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.paw-i { display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor;
         -webkit-mask: url(/assets/paw-print.svg) center / contain no-repeat; mask: url(/assets/paw-print.svg) center / contain no-repeat; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand-ink); color: #fff; border-bottom: 3px solid var(--gold); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; color: #fff; text-decoration: none;
         font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; border-radius: 9px; background: #fff; }
.brand small { display: block; font-family: var(--body); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.brand span { line-height: 1.1; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .2rem; }
.site-nav a { color: #d9e3fa; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem .7rem; border-radius: 8px; }
.site-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav a[aria-current=page] { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav-join { background: var(--gold); color: var(--brand-deep); text-decoration: none; font-family: var(--display); font-weight: 750;
            font-size: .95rem; padding: .45rem 1.05rem; border-radius: 999px; }
.nav-join:hover { background: var(--gold-hover); color: var(--brand-deep); }
.nav-join[aria-current=page] { box-shadow: 0 0 0 2px var(--brand-ink), 0 0 0 4px var(--gold); }
.menu-btn { display: none; align-items: center; gap: .4rem; background: none; border: 1px solid rgba(255, 255, 255, .35); color: #fff;
            font: inherit; font-size: .9rem; font-weight: 600; padding: .38rem .7rem; border-radius: 8px; cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- blue bands: home hero and page heads ---------- */
.hero, .page-head, .cta { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, var(--brand-ink) 0%, var(--brand) 60%, #1b4dbd 100%); }
.hero::before, .page-head::before, .cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 28px); }
.page-head::after, .cta::after { content: ""; position: absolute; z-index: -1; right: max(-30px, calc(50% - 560px)); top: 50%;
  width: 250px; aspect-ratio: 957 / 1024; transform: translateY(-46%) rotate(-12deg);
  background: url(/assets/paw-white.png) center / contain no-repeat; opacity: .1; }
.page-head .wrap { padding-block: 2.2rem 2.4rem; }
.page-head h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: #e0e9fc; margin-top: .55rem; max-width: 38em; font-size: 1.1rem; }
.kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
          color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .28rem .8rem; }
.kicker .paw-i { color: var(--gold); font-size: 1.05rem; }

main section { margin-top: 3.2rem; }
main > section:first-child { margin-top: 2.2rem; }
h2 { font-size: clamp(1.5rem, 3.6vw, 1.85rem); font-weight: 800; letter-spacing: -.015em; color: var(--brand-ink); }
main h2::before { content: ""; display: block; width: 2.6rem; height: 4px; border-radius: 2px; background: var(--gold); margin-bottom: .65rem; }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand-ink); }
.lede { color: var(--muted); margin-top: .45rem; max-width: 44em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font: inherit; font-family: var(--display); font-weight: 700; cursor: pointer;
       padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; background: var(--brand); color: #fff;
       transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 29, 94, .22); }
.btn-gold { background: var(--gold); color: var(--brand-deep); }
.btn-gold:hover { background: var(--gold-hover); color: var(--brand-deep); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.btn-quiet { background: var(--card); color: var(--brand); border-color: var(--rule); }
.btn-quiet:hover { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; }
.more { display: inline-block; margin-top: 1rem; font-weight: 650; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- cards, callouts ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow); }
.card p { font-size: .95rem; color: var(--muted); margin-top: .3rem; }
.card h3 { font-size: 1.05rem; }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
            background: var(--brand-soft); color: var(--brand); margin-bottom: .7rem; font-size: 1.1rem; }
.callout { background: var(--accent-tint); border: 1px solid var(--accent-rule); border-left: 5px solid var(--accent);
           border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.1rem; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
       background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: .1rem .55rem; vertical-align: 2px; }
.tag.Fundraiser { background: #fdf0dc; color: #8a4a06; }
.tag.Volunteer { background: #e3f4ea; color: #0b6b3a; }
.tag.Event { background: #efe7fb; color: #5b2aa6; }
.trail { height: 36px; background: #b9c8ee; -webkit-mask: url(/assets/paw-trail.svg) left center / 96px 36px repeat-x; mask: url(/assets/paw-trail.svg) left center / 96px 36px repeat-x; }

/* ---------- events: date tile + list item (home, events, meetings) ---------- */
.tile { flex: none; width: 3.6rem; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--rule);
        font-family: var(--display); line-height: 1; }
.tile b { display: block; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem 0; }
.tile span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--brand-ink); padding: .38rem 0 .42rem; font-variant-numeric: tabular-nums; }
.tile.tba span { font-size: .95rem; padding-block: .62rem; }
.events-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.ev { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
      padding: .85rem 1rem; box-shadow: var(--shadow); }
.ev.Fundraiser .tile b { background: #b45309; }
.ev.Volunteer .tile b { background: #0b6b3a; }
.ev.Event .tile b { background: #5b2aa6; }
.ev-body { min-width: 0; }
.ev-when { font-size: .88rem; font-weight: 650; color: var(--accent); }
.ev-title { font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--brand-ink); margin-top: .05rem; }
.ev-where, .ev-details, .ev .add { font-size: .92rem; color: var(--muted); }
.ev-details { margin-top: .2rem; }
.ev .add { display: block; margin-top: .3rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 4rem; background: var(--brand-deep); color: #c5d2f1; font-size: .95rem; border-top: 3px solid var(--gold); }
.site-footer .wrap { padding-block: 2.2rem 2.4rem; display: grid; gap: 1.6rem 2.4rem; grid-template-columns: 1.1fr 1.5fr auto; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: .78rem; font-family: var(--body); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.site-footer p + p { margin-top: .45rem; }
.foot-brand { display: flex; gap: .9rem; align-items: flex-start; }
.foot-brand img { width: 58px; height: auto; flex: none; }
.foot-brand strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.2; }
.foot-brand .cheer { color: var(--gold); font-family: var(--display); font-weight: 700; margin-top: .25rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .3rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .foot-legal .wrap { display: block; padding-block: 1rem 1.3rem; font-size: .85rem; color: #9fb0d9; }

@media (max-width: 800px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { order: 5; width: 100%; }
  .js .open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .3rem 0 .4rem; }
  .js .open .site-nav a { padding: .65rem .4rem; font-size: 1.02rem; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0; }
  .js .open .site-nav a[aria-current=page] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .8rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .page-head::after, .cta::after { width: 170px; right: -40px; }
  .page-head .wrap { padding-block: 1.7rem 1.9rem; }
  main section { margin-top: 2.6rem; }
}
@media (max-width: 480px) {
  .menu-btn span { display: none; }
  .menu-btn { padding: .45rem .55rem; }
  .site-header .wrap { gap: .4rem .6rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
