/* ==========================================================================
   MAJECT — static archive styles
   Palette derives from the original site (#007BFF buttons, #f0e6ff nav band),
   with link/text blue darkened to #0056b3 for WCAG AA contrast.
   ========================================================================== */

@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/mulish-var.woff2') format('woff2-variations');
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --brand: #0056b3;          /* links, buttons — 5.9:1 on white */
  --brand-bright: #007bff;   /* original accent, hover */
  --brand-deep: #08315f;     /* headings */
  --lavender: #f0e6ff;       /* section band, from the original nav */
  --lavender-line: #d9c7f2;

  --ink: #1d2733;
  --ink-soft: #4a5663;
  --rule: #d9dee5;
  --paper: #ffffff;
  --wash: #f7f9fb;

  --display: 'Jost', 'Century Gothic', sans-serif;
  --body: 'Mulish', 'Segoe UI', system-ui, sans-serif;

  --measure: 760px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-deep); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Layout --------------------------------------------------------------- */

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section:first-child { padding-top: 40px; }

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--brand-deep); margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
}
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); line-height: 1.3; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 500; margin-bottom: 0.4em; }

.subtitle {
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  font-weight: 400;
  color: var(--ink-soft);
  text-align: center;
  margin: 14px auto 0;
  max-width: 620px;
}

p { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); }
.prose a, .faq a, .notice a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .faq a:hover, .notice a:hover { color: var(--brand-bright); }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 2px;
}

.prose ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.7em; }

/* --- Header --------------------------------------------------------------- */

.site-header { background: var(--brand-deep); color: #fff; }
.site-header__inner {
  max-width: 1040px; margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.site-header__brand {
  font-family: var(--display); font-size: 19px; font-weight: 500;
  color: #fff; text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
}
.site-header__brand:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; color: rgb(255 255 255 / 0.9);
  text-decoration: none; font-size: 15.5px; border-radius: 3px;
}
.site-nav a:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.site-nav [aria-current='page'] { color: #fff; background: rgb(255 255 255 / 0.16); font-weight: 700; }

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav a { padding: 8px 10px; font-size: 15px; }
}

/* --- Archive banner ------------------------------------------------------- */

.archive-banner { background: var(--lavender); border-bottom: 1px solid var(--lavender-line); color: #2f2545; }
.archive-banner__inner { max-width: 1040px; margin-inline: auto; padding: 14px var(--gutter); }
.archive-banner p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.archive-banner strong { font-weight: 800; }
.archive-banner a { color: #4a2f86; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.archive-banner a:hover { color: #6b46b8; }

/* --- Jump bar (in-page anchors) ------------------------------------------- */

.jumpbar {
  background: var(--lavender);
  border: 1px solid var(--lavender-line);
  border-radius: 8px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 4px;
  text-align: center;
}
.jumpbar a {
  padding: 6px 12px; color: var(--brand); font-size: 15px; font-weight: 700;
  text-decoration: none; border-radius: 4px;
}
.jumpbar a:hover { background: #fff; text-decoration: underline; text-underline-offset: 3px; }
.jumpbar .sep { color: var(--lavender-line); user-select: none; }
.jumpbar .alt { color: var(--brand-deep); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block; padding: 13px 24px;
  background: var(--brand); color: #fff;
  font-family: var(--body); font-size: 16px; font-weight: 700;
  text-decoration: none; border-radius: 5px;
  transition: background 0.14s ease;
}
.btn:hover { background: var(--brand-bright); color: #fff; }
.btn-row { text-align: center; margin-top: 36px; }

/* --- Service list --------------------------------------------------------- */

.services { list-style: none; margin: 0; padding: 0; }
.services li {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 18px;
  font-size: 16.5px;
  line-height: 1.7;
}
.services .name {
  display: block;
  font-family: var(--body); font-weight: 800; font-size: 17.5px;
  color: var(--brand-deep); margin-bottom: 6px;
}
.services .name a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.services .name a:hover { color: var(--brand); }

/* --- FAQs ----------------------------------------------------------------- */

.faq { font-size: 16.5px; }
.faq dt {
  font-weight: 800; color: var(--brand-deep);
  margin-top: 1.5em; margin-bottom: 0.3em;
}
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0 0 0.2em; }

/* --- Notice / card -------------------------------------------------------- */

.notice {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 30px 32px;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
}
.notice img { margin: 0 auto 22px; max-width: 320px; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--wash);
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding-block: 40px 32px;
  color: var(--ink-soft);
}
.site-footer__inner { max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.site-footer img { margin: 0 auto 22px; max-width: 260px; }
.site-footer .contact { font-size: 16px; margin-bottom: 22px; color: var(--ink); }
.site-footer .contact a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer {
  font-size: 12.5px; font-style: italic; line-height: 1.6;
  max-width: 640px; margin: 0 auto; color: #667382;
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header, .jumpbar, .btn { display: none !important; }
  body { font-size: 11pt; }
}
