/* ============================================================
   MSF design system — shared by index / recurring / brochure
   Type:   Fraunces (headings) + Inter (UI & body)
   Colour: brand navy + crimson on a warm off-white. Crimson is
           reserved for the primary action so it always stands out.
============================================================ */
:root {
  --navy:        #01354a;
  --navy-900:    #022636;
  --ink:         #10222c;
  --muted:       #56676f;
  --crimson:     #c8001a;
  --crimson-600: #a80016;
  --bg:          #faf8f4;
  --surface:     #ffffff;
  --line:        #e8e3da;
  --tint:        #f3efe8;
  --blue:        #1565c0;
  --blue-600:    #0f4f9c;
  --blue-tint:   #e8f0fb;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(1,53,74,.06), 0 4px 14px rgba(1,53,74,.06);
  --shadow-m: 0 2px 6px rgba(1,53,74,.06), 0 18px 48px rgba(1,53,74,.12);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid rgba(200,0,26,.45); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1200px; margin: 0 auto;
  padding: 10px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header .brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 9px 18px; border-radius: 999px;
  transition: color .2s, background .2s, box-shadow .2s, transform .2s;
}
.nav a:hover { color: var(--blue); background: var(--blue-tint); }
.nav a:active { transform: scale(.96); }
/* current / selected page turns blue */
.nav a.active, .nav a[aria-current="page"] {
  color: #fff; font-weight: 600; background: var(--blue);
  box-shadow: 0 6px 16px rgba(21,101,192,.30);
}
.nav a.active:hover { color: #fff; background: var(--blue-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600; letter-spacing: .005em; line-height: 1;
  text-decoration: none;
  padding: 17px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary {
  background: var(--crimson); color: #fff;
  box-shadow: 0 8px 22px rgba(200,0,26,.28);
}
.btn-primary:hover { background: var(--crimson-600); box-shadow: 0 12px 28px rgba(200,0,26,.34); }
.btn-secondary {
  background: var(--surface); color: var(--navy);
  border-color: rgba(1,53,74,.25);
  box-shadow: var(--shadow-s);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 12px 28px rgba(1,53,74,.30); }
.btn-secondary.btn-hover-red:hover {
  background: var(--crimson); border-color: var(--crimson); color: #fff;
  box-shadow: 0 12px 28px rgba(200,0,26,.34);
}
.btn-ghost { background: transparent; color: var(--navy); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { color: var(--crimson); transform: none; }
.btn .arrow { display: inline-block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(15px, 2.2vh, 19px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson);
}

.display {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--navy);
  font-variation-settings: 'opsz' 144;
}
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.7; color: var(--muted); }
.lede strong { color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer .bar {
  max-width: 1200px; margin: 0 auto; padding: 12px 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.35); }
.site-footer a:hover { border-color: #fff; }

/* ---------- Entrance motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise .7s cubic-bezier(.22,1,.36,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .btn, .btn .arrow { transition: none; }
}

@media (max-width: 720px) {
  .site-header .bar { padding: 10px 16px; }
  .site-header .brand img { height: 38px; }
  .nav a { padding: 8px 10px; font-size: 13.5px; }
  .nav a.nav-link-hide { display: none; }
  .site-footer .bar { padding: 18px 16px; }
}

/* ---------- Laptop / desktop: every page fits one screen, no page scroll ---------- */
@media (min-width: 961px) and (min-height: 560px) {
  html, body { height: 100%; }
  body { height: 100dvh; }
  main { min-height: 0; display: flex; flex-direction: column; }
}
