/* MFPS XLII & SSTT 2026 — single hand-written stylesheet, no preprocessor. */

:root {
  --bg: #fff;
  --bg-soft: #f6f6f5;
  --ink: #1a1a1a;
  --ink-soft: #444;
  --muted: #767676;
  --rule: #e4e4e2;
  --rule-soft: #ededeb;
  --accent: #8b1e1e;

  --max: 48rem; /* ~768px — content width */
  --pad: 1.5rem;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, pre { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #cfcfcd;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease, color 150ms ease;
}
a:hover { text-decoration-color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }
hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* ── Nav strip (sticky, sits below banner) ───────────────────── */
.site-nav {
  --nav-pad-y: 0.65rem;
  background: #dae3ed;
  border-top: 1px solid #c0cad7;
  border-bottom: 1px solid #c0cad7;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--nav-pad-y) var(--pad);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  column-gap: 2.5rem;
}
.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding: 0.2rem 0;
  transition: border-color 200ms ease;
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { border-bottom-color: var(--ink); }

/* Submenu (hover-style dropdown) */
.site-nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  /* Invisible bridge so the hover area extends across the nav strip's
     bottom padding & border into the dropdown — no flicker. */
  padding-top: calc(var(--nav-pad-y) + 1px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  z-index: 60;
}
.site-nav__submenu ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: #dae3ed;
  border: 1px solid #c0cad7;
  border-top: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  min-width: max-content;
}
.site-nav__submenu li { margin: 0; }
.site-nav__submenu a {
  display: block;
  padding: 0.4rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  border-bottom: 0;
  white-space: nowrap;
}
.site-nav__submenu a:hover,
.site-nav__submenu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 0;
}
.site-nav__item--has-children:hover > .site-nav__submenu,
.site-nav__item--has-children:focus-within > .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ── Banner: small, deliberate ───────────────────────────────── */
.banner {
  background-size: cover;
  background-position: center 20%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  padding: 1.25rem var(--pad);
  text-align: center;
}
.banner__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner__tagline {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.55rem;
  color: #fff;
  opacity: 0.96;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Main ────────────────────────────────────────────────────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 4rem;
}

.page-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

/* ── Page content ────────────────────────────────────────────── */
.page-content > * + * { margin-top: 0.9rem; }

.page-content p { font-size: 1rem; line-height: 1.6; }

.page-content h2,
.page-content h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-top: 2.25rem;
}
.page-content h2 {
  font-size: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.page-content h3 { font-size: 1.1rem; }

.page-content h4,
.page-content h5,
.page-content h6 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.page-content ul,
.page-content ol {
  padding-left: 0;
  list-style: none;
}
.page-content li {
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-bottom: 1px dotted var(--rule-soft);
  position: relative;
  line-height: 1.5;
  font-size: 1rem;
}
.page-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.45rem;
  height: 1px;
  background: var(--muted);
}
.page-content li:last-child { border-bottom: none; }

/* Date items: tabular numerals so dates align */
.page-content h4 + ul li,
.page-content li:has(del),
.page-content li:has(s) {
  font-feature-settings: "tnum", "kern";
}

.page-content del,
.page-content s {
  color: var(--muted);
  text-decoration-thickness: 1px;
}

.page-content em { font-style: italic; }
.page-content strong { font-weight: 700; }

.page-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 1rem;
  margin: 1.25rem 0;
  color: var(--ink-soft);
  font-style: italic;
}

.page-content .notice {
  border-left: 3px solid var(--accent);
  background: #fdf4f4;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
}

.page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.page-content img {
  margin-top: 1rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.25rem var(--pad);
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .banner { min-height: 130px; }
  .banner__title { font-size: 1.4rem; }
  .banner__tagline { font-size: 0.7rem; letter-spacing: 0.16em; }
  .site-nav__wrap {
    column-gap: 1.5rem;
    padding: 0.55rem 1rem;
  }
  /* Hover dropdowns don't work on touch — hide submenus; children remain
     reachable via the parent page. */
  .site-nav__submenu { display: none; }
  main { padding: 2rem var(--pad) 3rem; }
}
