﻿/* =============================================================================
   BASE STYLES - loaded by every page
   Fonts, colours, and the basic rules everything else builds on.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   HOW SIZES WORK ON THIS SITE  (read this first!)

   The site scales with the width of the browser window, so it looks the same
   on a small laptop and a big monitor. Most sizes therefore use the unit "cqw":

       1cqw = 1% of the page width

   Example: on a 1920px-wide screen the page is about 1905px wide (minus the
   scrollbar), so 5cqw = about 95px. On a 1280px screen, 5cqw = about 63px.

   There are three layouts, switched with @media rules:
       Desktop:  wider than 1000px   (the main values)
       Tablet:   751px - 1000px      (@media (max-width: 1000px))
       Phone:    750px and narrower  (@media (max-width: 750px))
   ----------------------------------------------------------------------------- */


/* ---------- Fonts ---------------------------------------------------------- */

/* Proxima Nova Regular - all normal text. Split into two files: the second one
   only downloads if a page uses accented / special characters. */
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova/proxima-nova-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+000D, U+0020-007E, U+00A0-00FF, U+0110, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E,
    U+0192, U+02C6-02C7, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030,
    U+2039-203A, U+2044, U+20AC, U+2122, U+F656-F659;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova/proxima-nova-regular-extra-characters.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000, U+0100-010F, U+0111-0130, U+0132-0151, U+0154-015F, U+0162-0177, U+0179-017C, U+017F,
    U+018F, U+019D, U+01A0-01A1, U+01AF-01B0, U+01E6-01E7, U+01EA-01EB, U+01FA-01FF, U+0218-021B, U+0232-0233,
    U+0237, U+0259, U+0272, U+02B0, U+02BB-02BC, U+02C9, U+02CB, U+02D8-02D9, U+02DB, U+02DD, U+0374-03CE,
    U+0400-04FF, U+1E00-1EFF, U+2000-200A, U+2015, U+201B, U+2032-2033, U+2070-208E, U+20A0-20BD, U+2113-2126,
    U+2153-215E, U+2190-2193, U+2202-2265, U+25A0-25CF, U+2605-2713, U+FB00-FB04;
}

/* Proxima Nova Bold - headings. (Its own family name so headings always use the
   real bold letters; normal text that is made bold uses "Proxima Nova" + bold.) */
@font-face {
  font-family: "Proxima Nova Bold";
  src: url("/fonts/proxima-nova/proxima-nova-bold.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Wix Madefor - a couple of small details (drop-down menu items, footer bar,
   one heading on the About page). */
@font-face {
  font-family: "Wix Madefor Text";
  src: url("/fonts/wix-madefor/wix-madefor-text.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Display";
  src: url("/fonts/wix-madefor/wix-madefor-display.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
/* Space Grotesk - the footer's "Careers" button on tablets and phones */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Display Bold";
  src: url("/fonts/wix-madefor/wix-madefor-display-bold.woff2") format("woff2");
  font-weight: 700;   /* always drawn bold */
  font-display: swap;
}


/* ---------- Colours & fonts (change them here, they update everywhere) ----- */
:root {
  --yellow: #f5b917;          /* Bengal yellow: buttons, highlights, numbers */
  --black: #000000;
  --white: #ffffff;
  --off-white: #f0f0f0;       /* light text on dark backgrounds */
  --light-grey: #c2c2c2;      /* softer text on dark backgrounds */
  --grey: #6e6e6e;            /* soft text on light backgrounds */
  --dark-grey: #1e1e1e;       /* dark section backgrounds */
  --near-black: #151515;
  --cream: #fefbf1;           /* the very light yellow behind cards / tiles */

  --font-body: "Proxima Nova", sans-serif;
  --font-heading: "Proxima Nova Bold", "Proxima Nova", sans-serif;   /* a few symbols come from the regular file */
  --font-small-details: "Wix Madefor Text", sans-serif;

  /* left/right page margin: content lines up 6.93% from each edge on desktop */
  --page-margin: 6.93cqw;
}
@media (max-width: 750px) {
  :root { --page-margin: 7.4cqw; }
}


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

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

body {
  margin: 0;
  /* makes "cqw" (see top of file) measure the page width */
  container-type: inline-size;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; font-family: var(--font-heading); }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* a box the full width of the page with the standard side margins */
.container {
  width: calc(100% - 2 * var(--page-margin));
  margin-inline: auto;
}

/* hidden but still read out by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* smooth scrolling library (js/vendor/lenis.min.js) needs these */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
