/* utils.css — reset, design tokens, fonts, base typography (loaded first) */

@font-face {
  font-display: swap;
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 300 700;
  src: url('../fonts/unbounded.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded Fallback';
  src: local('Arial');
  line-gap-override: 0%;
  size-adjust: 134.1%;
  ascent-override: 74.6%;
  descent-override: 18.6%;
}
@font-face {
  font-display: swap;
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  src: url('../fonts/manrope.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  line-gap-override: 0%;
  size-adjust: 101.9%;
  ascent-override: 105.0%;
  descent-override: 29.4%;
}

:root {
  /* colour tokens — concrete + blueprint blue + signal orange (hex) */
  --c-base: #f4f6f9;
  --c-surface: #ffffff;
  --c-grid-line: #d3d8e1;
  --c-text: #141820;
  --c-text-muted: #4d5666;
  --c-dark: #1a1f2a;
  --c-text-on-dark: #aab2c0;
  --c-accent: #3e5683;
  --c-accent-deep: #33466b;
  --c-accent-tint: #e3e8f2;
  --c-cta: #b4400e;
  --c-cta-deep: #8f3309;

  /* spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* type families */
  --font-display: 'Unbounded', 'Unbounded Fallback', Arial, sans-serif;
  --font-body: 'Manrope', 'Manrope Fallback', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;

  --radius-card: 18px;
  --radius-button: 8px;
  --shadow-soft: 0 18px 40px -24px rgba(20, 24, 32, 0.45);
  --shadow-raised: 0 28px 60px -30px rgba(20, 24, 32, 0.55);
}

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

* {
  margin: 0;
}

html {
  scroll-padding-top: 128px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

p {
  max-width: 68ch;
}

a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 2px;
}

/* utility: small spaced uppercase label (eyebrow) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* decor: thick marker underline sitting below the glyphs, never over them */
.mark-underline {
  text-decoration-line: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.08em; /* stays above the next line's ascenders; skip-ink clears descenders */
  text-decoration-skip-ink: auto;
  text-decoration-color: var(--c-accent);
}

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