/* Typography system — shared by the survey and admin.
   Body: Golos Text (warm humanist sans, very clear on screen, open letterforms).
   Display: Fraunces (soft editorial serif with character; headings, buttons, labels only).
   Both self-hosted, OFL licence. Scale is a strict 1.25 ratio; nothing else is used. */

@font-face {font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-600.woff2) format('woff2');
}
@font-face {font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-700.woff2) format('woff2');
}
@font-face {font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/fraunces-800.woff2) format('woff2');
}
@font-face {font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/golos-text-400.woff2) format('woff2');
}
@font-face {font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/golos-text-500.woff2) format('woff2');
}
@font-face {font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/golos-text-600.woff2) format('woff2');
}
@font-face {font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/golos-text-700.woff2) format('woff2');
}

:root {
    --font-body: 'Golos Text', Verdana, Geneva, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    /* Scale: 1.25 (major third) from the base */
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;

    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-body: 1.55;

    --measure: 90ch;   /* longest line of body text; the page layout usually limits it first */
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, legend, .display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-xl); font-weight: 800; }
h2 { font-size: var(--fs-lg); }
h3, legend { font-size: var(--fs-md); }

/* Small label set above a heading, e.g. the company name above the survey title */
.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: var(--lh-snug);
    margin: 0 0 0.35rem;
}

p, li, dd { max-width: var(--measure); }
small, .hint { font-size: var(--fs-sm); line-height: 1.4; }

/* Numbers that must not be mistaken (codes) get lining, tabular figures */
code, .code, .tabular, input[inputmode="numeric"] { font-variant-numeric: lining-nums tabular-nums; }
