/* Maximum Impact Academy — public site
   Palette taken from the school crest: deep navy and badge gold.
   Signature: the ruled exercise book (cahier) — rule lines and a gold
   margin appear behind the hero and mark every section heading. */

:root{
  --ink:#0E1F45;          /* crest navy */
  --ink-2:#16305F;        /* lifted navy for panels */
  --gold:#E0A32E;         /* badge gold */
  --gold-dim:#B9821D;
  --leaf:#1C7A5B;         /* status only */
  --paper:#FFFFFF;
  --mist:#EEF1F6;         /* cool pale grey-blue, not cream */
  --slate:#55617A;
  --line:#D7DDE8;

  --measure:68ch;
  --gutter:clamp(1.25rem,4vw,3rem);
  --maxw:1120px;

  --step--1:clamp(.82rem,.79rem + .12vw,.9rem);
  --step-0:clamp(1rem,.96rem + .2vw,1.09rem);
  --step-1:clamp(1.25rem,1.16rem + .45vw,1.5rem);
  --step-2:clamp(1.6rem,1.42rem + .9vw,2.15rem);
  --step-3:clamp(2.1rem,1.7rem + 2vw,3.4rem);
  --step-4:clamp(2.6rem,1.9rem + 3.4vw,4.6rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:var(--step-0);
  line-height:1.65;
  color:var(--ink);
  background:var(--paper);
}
img{max-width:100%;display:block}
a{color:var(--ink);text-decoration-color:var(--gold);text-underline-offset:3px}
a:hover{color:var(--ink-2)}

h1,h2,h3,.display{
  font-family:Fraunces,Georgia,"Times New Roman",serif;
  font-weight:600;
  line-height:1.1;
  letter-spacing:-.015em;
  margin:0 0 .5em;
  font-variation-settings:"SOFT" 20,"WONK" 1;
}
h1{font-size:var(--step-4)}
h2{font-size:var(--step-3)}
h3{font-size:var(--step-1)}
p{margin:0 0 1.1em;max-width:var(--measure)}

.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:clamp(3.5rem,7vw,6rem)}
.section--mist{background:var(--mist)}
.section--ink{background:var(--ink);color:#E8ECF5}
.section--ink h2,.section--ink h3{color:#fff}
.section--ink p{color:#C2CCE0}

/* Eyebrow sits on a gold rule — the cahier margin line */
.eyebrow{
  font-size:var(--step--1);
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--gold-dim);
  margin:0 0 1rem;
  padding-left:.9rem;
  border-left:3px solid var(--gold);
}
.section--ink .eyebrow{color:var(--gold)}

.lede{font-size:var(--step-1);color:var(--slate);max-width:60ch}
.section--ink .lede{color:#C2CCE0}

/* ── Header ─────────────────────────────────────────────── */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(14,31,69,.97);
  backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid rgba(224,163,46,.35);
}
.site-header .wrap{
  display:flex;align-items:center;gap:1.5rem;
  min-height:72px;
}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none;flex:0 0 auto}
.brand__crest{
  width:40px;height:40px;flex:0 0 auto;
  display:grid;place-items:center;
  border:2px solid var(--gold);border-radius:50%;
  color:var(--gold);font-family:Fraunces,serif;font-weight:700;
  font-size:.95rem;letter-spacing:.02em;
}
.brand__name{color:#fff;font-family:Fraunces,serif;font-weight:600;
  font-size:1.02rem;line-height:1.15;letter-spacing:-.01em}
.brand__sub{display:block;font-family:Inter,sans-serif;font-weight:400;
  font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(224,163,46,.9)}

.nav{margin-left:auto;display:flex;align-items:center;gap:.25rem;flex-wrap:wrap}
.nav a{
  color:#D5DCEA;text-decoration:none;font-size:.92rem;font-weight:500;
  padding:.5rem .7rem;border-radius:6px;
}
.nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.nav a[aria-current="page"]{color:var(--gold)}
.nav .btn{margin-left:.5rem}

.btn{
  display:inline-block;border:0;cursor:pointer;
  font:inherit;font-weight:600;font-size:.94rem;
  padding:.7rem 1.3rem;border-radius:8px;
  background:var(--gold);color:#20160A;text-decoration:none;
  transition:transform .15s ease,background .15s ease;
}
.btn:hover{background:#EFB444;color:#20160A;transform:translateY(-1px)}
.btn--ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4)}
.btn--ghost:hover{background:rgba(255,255,255,.1);color:#fff}
.btn--ink{background:var(--ink);color:#fff}
.btn--ink:hover{background:var(--ink-2);color:#fff}

.nav-toggle{
  display:none;margin-left:auto;background:none;border:0;cursor:pointer;
  color:#fff;padding:.5rem;font-size:1.4rem;line-height:1;
}

/* ── Hero: ruled paper behind navy ──────────────────────── */
.hero{
  position:relative;background:var(--ink);color:#fff;
  padding-block:clamp(4rem,10vw,7.5rem);
  overflow:hidden;
}
.hero::before{ /* the ruled lines of an exercise book */
  content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(
    to bottom,transparent 0 37px,rgba(255,255,255,.055) 37px 38px);
  pointer-events:none;
}
.hero::after{ /* the red margin rule, in gold */
  content:"";position:absolute;top:0;bottom:0;
  left:clamp(1.25rem,4vw,3rem);width:2px;
  background:rgba(224,163,46,.45);pointer-events:none;
}
.hero .wrap{position:relative}
.hero h1{max-width:16ch;color:#fff}
.hero .lede{max-width:52ch;margin-bottom:2rem}
.hero__motto{
  font-family:Fraunces,serif;font-style:italic;
  color:var(--gold);font-size:var(--step-1);margin:0 0 1.25rem;
}
.hero__actions{display:flex;gap:.75rem;flex-wrap:wrap}

.facts{
  display:flex;flex-wrap:wrap;gap:2.5rem;
  margin-top:3rem;padding-top:2rem;
  border-top:1px solid rgba(255,255,255,.16);
}
.fact__num{font-family:Fraunces,serif;font-size:var(--step-2);
  color:var(--gold);line-height:1;display:block}
.fact__label{font-size:var(--step--1);color:#AAB6CE;
  letter-spacing:.06em;text-transform:uppercase}

/* ── Cards ──────────────────────────────────────────────── */
.grid{display:grid;gap:1.5rem}
.grid--3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}

.card{
  background:var(--paper);border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:4px;padding:1.5rem;
}
.card h3{margin-bottom:.4rem}
.card p{margin-bottom:0;font-size:.96rem;color:var(--slate)}
.card__date{font-size:var(--step--1);color:var(--gold-dim);
  font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.card a{font-weight:600;text-decoration:none;border-bottom:2px solid var(--gold)}

.stage{border-top:2px solid var(--ink);padding-top:1.1rem}
.stage__classes{font-size:.9rem;color:var(--slate);margin:0}
.stage__classes span{
  display:inline-block;background:var(--mist);border-radius:3px;
  padding:.15rem .5rem;margin:.15rem .25rem .15rem 0;font-size:.82rem;
}

/* Documents / checklist */
.checklist{list-style:none;padding:0;margin:0;max-width:var(--measure)}
.checklist li{
  padding:.7rem 0 .7rem 1.9rem;position:relative;
  border-bottom:1px solid var(--line);
}
.checklist li::before{
  content:"";position:absolute;left:.35rem;top:1.15rem;
  width:8px;height:8px;background:var(--gold);border-radius:2px;
}

/* Timeline for the calendar */
.timeline{border-left:2px solid var(--line);padding-left:1.5rem;margin:0}
.tl-item{position:relative;padding-bottom:1.75rem}
.tl-item::before{
  content:"";position:absolute;left:calc(-1.5rem - 6px);top:.45rem;
  width:10px;height:10px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 0 3px var(--paper);
}
.tl-item--past::before{background:var(--line)}
.tl-date{font-size:var(--step--1);letter-spacing:.06em;text-transform:uppercase;
  color:var(--gold-dim);font-weight:600}
.tl-item--past .tl-date{color:var(--slate)}
.tl-item h3{margin:.15rem 0 .3rem;font-size:var(--step-0);font-weight:600}
.tl-item p{margin:0;font-size:.94rem;color:var(--slate)}

/* Forms */
.form{max-width:34rem;display:grid;gap:1rem}
.field label{display:block;font-size:.9rem;font-weight:600;margin-bottom:.35rem}
.field input,.field select,.field textarea{
  width:100%;font:inherit;font-size:.98rem;color:var(--ink);
  padding:.7rem .85rem;border:1px solid var(--line);border-radius:6px;
  background:var(--paper);
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid var(--gold);outline-offset:1px;border-color:transparent}
.field textarea{min-height:7rem;resize:vertical}
.notice{
  border-left:3px solid var(--leaf);background:#EAF5F0;
  padding:1rem 1.2rem;border-radius:4px;margin-bottom:1.5rem;
}
.notice p{margin:0;color:#14543E}

.contact-list{list-style:none;padding:0;margin:0}
.contact-list li{padding:.55rem 0;border-bottom:1px solid rgba(255,255,255,.14)}
.contact-list strong{display:block;font-size:var(--step--1);
  letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-weight:600}

/* Footer */
.site-footer{background:var(--ink);color:#AAB6CE;padding-block:3rem 2rem;
  border-top:3px solid var(--gold)}
.site-footer a{color:#D5DCEA;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer h4{color:#fff;font-family:Inter,sans-serif;font-size:.78rem;
  letter-spacing:.12em;text-transform:uppercase;margin:0 0 .8rem}
.footer-grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.footer-grid ul{list-style:none;padding:0;margin:0}
.footer-grid li{padding:.2rem 0;font-size:.94rem}
.footer-bottom{margin-top:2.5rem;padding-top:1.25rem;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  font-size:.86rem}

.empty{color:var(--slate);font-style:italic}

/* Motion, kept to one orchestrated entrance */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(14px);
    transition:opacity .6s ease,transform .6s ease}
  .reveal.is-in{opacity:1;transform:none}
}

@media (max-width:820px){
  .nav-toggle{display:block}
  .nav{
    display:none;width:100%;order:3;flex-direction:column;
    align-items:stretch;gap:0;padding-bottom:1rem;
  }
  .nav.is-open{display:flex}
  .nav a{padding:.75rem .5rem;border-bottom:1px solid rgba(255,255,255,.08)}
  .nav .btn{margin:.75rem 0 0;text-align:center}
  .site-header .wrap{flex-wrap:wrap;padding-block:.75rem}
  .facts{gap:1.5rem}
}

@media print{
  .site-header,.site-footer,.hero__actions{display:none}
  body{color:#000}
}

/* ── Admissions strip ───────────────────────────────────── */
.admissions-strip{background:var(--gold);color:#20160A}
.admissions-strip .wrap{
  display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;
  padding-block:.9rem;
}
.admissions-strip p{margin:0;font-weight:600;font-size:.98rem}
.admissions-strip a{
  margin-left:auto;color:#20160A;font-weight:600;font-size:.94rem;
  text-decoration:none;border-bottom:2px solid rgba(32,22,10,.45);
}
.admissions-strip a:hover{border-bottom-color:#20160A}
.admissions-strip__dot{
  width:9px;height:9px;border-radius:50%;background:#20160A;flex:0 0 auto;
}
@media (prefers-reduced-motion:no-preference){
  .admissions-strip__dot{animation:pulse 2.4s ease-in-out infinite}
  @keyframes pulse{
    0%,100%{opacity:1;transform:scale(1)}
    50%{opacity:.45;transform:scale(.82)}
  }
}

/* ── Leadership, including memorial entries ─────────────── */
.leader{
  display:grid;gap:1.75rem;align-items:start;
  grid-template-columns:200px 1fr;
  padding:2.25rem 0;border-top:1px solid var(--line);
}
.leader:first-of-type{border-top:0}
.leader__portrait img{
  width:200px;height:240px;object-fit:cover;border-radius:3px;
  filter:saturate(.92);
}
.leader__placeholder{
  width:200px;height:240px;border-radius:3px;background:var(--mist);
  display:grid;place-items:center;font-family:Fraunces,serif;
  font-size:3.5rem;color:var(--line);
}
.leader__text h3{margin:0 0 .2rem;font-size:var(--step-2)}
.leader__role{
  color:var(--slate);font-size:.95rem;margin:0 0 1.1rem;
  display:flex;gap:.6rem;flex-wrap:wrap;align-items:baseline;
}
.leader__years{
  font-size:.85rem;letter-spacing:.05em;color:var(--gold-dim);font-weight:600;
}

/* A memorial entry is marked by a gold rule and a quiet line, nothing more */
.leader--memorial .leader__portrait img,
.leader--memorial .leader__placeholder{
  border-bottom:4px solid var(--gold);
}
.leader__memorial-note{
  font-family:Fraunces,serif;font-style:italic;
  color:var(--gold-dim);font-size:1rem;margin:0 0 .35rem;
}

@media (max-width:700px){
  .leader{grid-template-columns:1fr;gap:1.25rem}
  .leader__portrait img,.leader__placeholder{width:100%;max-width:260px;height:300px}
}

/* ── Photos ─────────────────────────────────────────────── */
.card__img{
  width:calc(100% + 3rem);margin:-1.5rem 0 1.1rem -1.5rem;
  height:170px;object-fit:cover;border-radius:3px 3px 0 0;
}
.card--person{text-align:left}
.person__photo{
  width:100%;height:230px;object-fit:cover;object-position:center 22%;
  border-radius:3px;margin-bottom:1rem;
}
.group-photo{margin:0}
.group-photo img{width:100%;height:auto;border-radius:4px}
.group-photo figcaption{
  font-size:var(--step--1);color:var(--slate);
  margin-top:.7rem;letter-spacing:.04em;
}
.tl-img{
  margin-top:.8rem;max-width:340px;width:100%;height:auto;border-radius:3px;
}

/* ── Downloadable documents ─────────────────────────────── */
.filelist{list-style:none;padding:0;margin:1.75rem 0 0;max-width:var(--measure)}
.filelist li{border-bottom:1px solid var(--line)}
.filelist a{
  display:flex;align-items:center;gap:1rem;
  padding:1rem .25rem;text-decoration:none;
}
.filelist a:hover .filelist__name{text-decoration:underline}
.filelist__name{font-weight:600;flex:1}
.filelist__meta{
  font-size:.72rem;letter-spacing:.1em;font-weight:600;
  color:var(--gold-dim);border:1px solid var(--gold);
  padding:.2rem .5rem;border-radius:3px;
}

/* ── School crest ───────────────────────────────────────── */
.brand__logo{
  width:44px;height:44px;flex:0 0 auto;
  object-fit:contain;
  /* A dark crest on a navy bar would disappear; a soft ring lifts it */
  background:rgba(255,255,255,.94);
  border-radius:50%;padding:3px;
  box-shadow:0 0 0 1.5px rgba(224,163,46,.55);
}
.hero__crest{
  width:96px;height:96px;object-fit:contain;
  background:rgba(255,255,255,.95);
  border-radius:50%;padding:8px;
  box-shadow:0 0 0 2px rgba(224,163,46,.5);
  margin-bottom:1.5rem;
}
.footer__logo{
  width:52px;height:52px;object-fit:contain;
  background:rgba(255,255,255,.9);
  border-radius:50%;padding:4px;margin-bottom:.9rem;
}
@media (max-width:820px){
  .hero__crest{width:74px;height:74px}
}
@media print{
  .brand__logo,.hero__crest{background:none;box-shadow:none}
}
