/*
 * base.css — design tokens, resets, typography
 * Warm, human, non-corporate palette: shades of pink (matching the
 * organization's own mark and its focus on women), deep plum-pink for
 * text/headings, soft blush ground. Generous whitespace for calm readability.
 */

:root {
  /* ---- Color: shades of pink, cause-appropriate, not corporate blue ---- */
  --color-bg: #fdf5f8;              /* soft blush white */
  --color-bg-alt: #f8e9f1;          /* deeper blush for section bands */
  --color-surface: #ffffff;
  --color-ink: #3a1729;             /* deep plum-black for text */
  --color-ink-soft: #77475f;        /* secondary text */
  --color-primary: #8f1259;         /* deep magenta-pink */
  --color-primary-dark: #5c1240;
  --color-accent: #c81c72;          /* vivid rose pink accent */
  --color-accent-dark: #9c1359;
  --color-line: #f0d6e3;            /* hairline borders */
  --color-focus: #1f6f5c;           /* distinct, high-contrast focus color (kept off-palette on purpose so focus rings are unmistakable) */
  --color-success-bg: #edf4ee;
  --color-success-text: #2f5d34;
  --color-error-bg: #fbeceb;
  --color-error-text: #8a2c22;

  --font-body: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-max: 72rem;
  --content-narrow: 42rem;

  --radius: 0.5rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --shadow-soft: 0 2px 10px rgba(43, 35, 32, 0.06);
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 var(--space-2);
  max-width: 68ch;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--color-accent-dark); }

/* Strong, visible focus ring everywhere — never removed, only restyled */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  font-family: var(--font-ui);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: var(--space-5);
}

section.section--tight {
  padding-block: var(--space-4);
}

.section--alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin: 0 0 var(--space-1);
}

.lede {
  font-size: 1.2rem;
  color: var(--color-ink-soft);
  max-width: 60ch;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: var(--space-4) 0;
}

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

html {
  scroll-behavior: smooth;
}
