/* ==========================================================================
   Base: design tokens, reset, typography and layout helpers
   ========================================================================== */

:root {
  /* Brand colours (taken from the Canva design) */
  --color-navy: #333794;
  --color-mint: #aae6d5;
  --color-orange: #fa7a26;
  --color-grey: #ecf0f2;
  --color-ink: #3c3e40;
  --color-black: #000;
  --color-white: #fff;
  --color-sand: #d29759;

  /* Typography */
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --header-height: 84px;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 24px rgb(0 0 0 / 0.14);

  /* Decorative "brush" shape used to crop photos (pages 3, 5 and 7 of the design) */
  --brush-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2.5 -2.2 412.1 381' preserveAspectRatio='none'%3E%3Cpath d='M401.6,195.8L231.2,366.2c-7.9,7.9-21.4,7.2-30.2-1.5l0,0c-8.8-8.8-9.5-22.3-1.5-30.2L179.9,354c-7.9,7.9-21.4,7.2-30.2-1.5l0,0c-7.1-7.1-8.9-17.5-5-25.3L101.8,370c-8.8,8.8-23,8.8-31.8,0l0,0c-8.8-8.8-8.8-23,0-31.8l21.6-21.6c-0.2,0.2-0.3,0.3-0.5,0.5c1.4-1.5,2.5-3.1,3.4-4.8l-1.7,1.7c-7.9,7.9-21.4,7.2-30.2-1.5c-7.1-7.1-8.9-17.5-5.1-25.3l-19.4,19.4c-8.8,8.8-23,8.8-31.8,0l0,0c-8.8-8.8-8.8-23,0-31.8L54.2,227c-8.8,8.8-23,8.8-31.8,0c-8.8-8.8-8.8-23,0-31.8L211.2,6.6c8.8-8.8,23-8.8,31.8,0c8.8,8.8,8.8,23,0,31.8L172.3,109c-8.8,8.8-8.8,23,0,31.8l0,0c7.1,7.1,17.9,8.5,26.4,4l32.9-32.9c1.5-1.5,3.1-2.6,4.9-3.5l12.2-12.2c8.8-8.8,23-8.8,31.8,0l0,0c7.1,7.1,8.5,17.9,4,26.4l22-22c7.9-7.9,21.4-7.2,30.2,1.5l0,0c8.8,8.8,9.5,22.3,1.5,30.2l-5.4,5.4c-1,1.9-2.3,3.7-4,5.4c-1.6,1.6-3.4,2.9-5.4,4l-4.8,4.8c0.1-0.1,0.3-0.3,0.5-0.4c-7.5,8-6.6,21.2,2,29.8l0,0c8.6,8.6,21.8,9.4,29.8,2c-0.1,0.2-0.3,0.3-0.4,0.5l19.5-19.5c7.9-7.9,21.4-7.2,30.2,1.5l0,0C408.9,174.3,409.6,187.9,401.6,195.8z'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
  padding: 0;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.1;
}

.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.6vw, 4.375rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-intro {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-intro--center {
  text-align: center;
}

.section-intro__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
}

.section-intro--center .section-intro__lead {
  max-width: 46rem;
  margin-inline: auto;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
}

.section--white { background: var(--color-white); }
.section--grey { background: var(--color-grey); }
.section--mint { background: var(--color-mint); }
.section--navy { background: var(--color-navy); color: var(--color-white); }

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