/* ==========================================================================
   base.css — reset, design tokens, typography, accessibility base
   BrandDigi static rebuild (plain HTML/CSS, no build step)
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------ */
:root {
  --color-bg: #ffffff;
  --color-text: #1b1f27;
  --color-muted: #5b6470;
  --color-border: #e2e6ec;
  --color-accent: #0b5cd6;
  --color-accent-hover: #094bb1;
  --color-accent-text: #ffffff;
  --color-callout-bg: #f4f7fb;

  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius: 8px;
  --tap-min: 44px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

/* ---- Base typography (mobile-first) ------------------------------- */
body {
  font-family: var(--font-system);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  margin-top: var(--space-7);
}

h3 {
  font-size: 1.125rem;
  margin-top: var(--space-5);
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.4rem;
}

li {
  margin-bottom: var(--space-2);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  /* allow long URLs / unbroken tokens to wrap instead of causing overflow */
  overflow-wrap: anywhere;
}

strong {
  font-weight: 700;
}

/* ---- Accessibility: visible focus states -------------------------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Utility: visually hidden (still in a11y tree) ----------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
