/* =========================================================================
   Editorial design — base layer
   A calm, magazine-style system: serif display headlines (Fraunces) paired
   with a clean sans body (Inter), generous whitespace, and theme colors
   (--primary/--accent/--secondary/... injected per-job in templateHead.ejs)
   used only as thin rules, kickers and small accents — never big color
   blocks. See assets/css/style.css for components and responsive.css for
   breakpoints.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Paper + ink stay neutral regardless of the selected palette — Editorial
     is a whitespace-led design, so hue lives in kickers/rules/links only. */
  --ed-paper: #fbfaf6;
  --ed-paper-alt: #f4f2ec;
  --ed-ink: #1c1a17;
  --ed-ink-soft: #4a463f;
  --ed-ink-faint: #837c70;
  --ed-line: rgba(28, 26, 23, 0.12);
  --ed-line-strong: rgba(28, 26, 23, 0.22);
  --ed-white: #ffffff;
  --ed-serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --ed-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ed-max: 1180px;
  --ed-max-narrow: 760px;
  --ed-radius: 4px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol { margin: 0; padding: 0; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ed-serif);
  font-weight: 500;
  color: var(--ed-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

.container {
  max-width: var(--ed-max);
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow {
  max-width: var(--ed-max-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* Skip link ------------------------------------------------------------- */
.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ed-ink);
  color: var(--ed-white);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--ed-radius) 0;
}
.skipLink:focus {
  left: 0;
}

/* Focus visibility (accessibility) --------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary, #1B2E5C);
  outline-offset: 3px;
}

/* Kicker / eyebrow label -------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ed-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary, #1B2E5C);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent, #0EB77A);
  flex: 0 0 auto;
}

.rule {
  width: 56px;
  height: 2px;
  background: var(--accent, #0EB77A);
  border: none;
  margin: 18px 0 0;
}

.rule--center { margin-left: auto; margin-right: auto; }

.sectionHead {
  max-width: 680px;
  margin: 0 0 44px;
}
.sectionHead--center { margin-left: auto; margin-right: auto; text-align: center; }
.sectionHead__title { margin-top: 14px; }
.sectionHead__deck {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ed-ink-soft);
}

/* Buttons ------------------------------------------------------------------
   Editorial CTAs stay understated: an outlined button or a plain text link
   with an icon, never a loud filled pill (see design brief). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ed-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ed-ink);
  color: var(--ed-ink);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn:hover { background: var(--ed-ink); color: var(--ed-white); }

.btn--accent {
  border-color: var(--primary, #1B2E5C);
  color: var(--primary, #1B2E5C);
}
.btn--accent:hover {
  background: var(--primary, #1B2E5C);
  border-color: var(--primary, #1B2E5C);
  color: var(--ed-white);
}

.btn--solid {
  background: var(--primary, #1B2E5C);
  border-color: var(--primary, #1B2E5C);
  color: var(--ed-white);
}
.btn--solid:hover { background: var(--primary-dark, #0F1D3D); border-color: var(--primary-dark, #0F1D3D); }

.btn--ghost-white {
  border-color: rgba(255,255,255,0.55);
  color: var(--ed-white);
}
.btn--ghost-white:hover { background: rgba(255,255,255,0.14); color: var(--ed-white); }

/* Text link with icon — the "refined" call CTA the brief asks for. */
.linkCall {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary, #1B2E5C);
  border-bottom: 1.5px solid var(--accent, #0EB77A);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.linkCall svg { width: 17px; height: 17px; }
.linkCall:hover { opacity: 0.72; }

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
