/* Base: fonts, design tokens, reset, typography, shared components */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Montserrat-VariableFont_wght-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Montserrat-VariableFont_wght-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Montserrat-VariableFont_wght-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Raleway-VariableFont_wght-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Raleway-VariableFont_wght-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-body: "Montserrat", Arial, sans-serif;
  --font-heading: "Raleway", Arial, sans-serif;

  --color-text: #2a2d35;
  --color-dark: #393f48;
  --color-darker: #151619;
  --color-light: #eeeeee;
  --color-white: #ffffff;
  --color-blue: #1e73be;
  --color-blue-light: #57bef2;
  --color-link: #0074db;
  --color-grey: #aaaaaa;
  --color-border: #cfd3d7;

  --container: 1120px;
  --gutter: 20px;
  --section-space: 75px;
  --header-h: 90px;
  --radius: 3px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

img {
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  color: var(--color-blue-light);
}

:focus-visible {
  outline: 2px solid var(--color-blue-light);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 1001;
  padding: 10px 16px;
  background: var(--color-blue);
  color: var(--color-white);
}
.skip-link:focus {
  top: 10px;
  color: var(--color-white);
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

/* Page title with the grey divider line underneath */

.page-title {
  margin-bottom: 0;
  font-weight: 200;
  text-align: center;
}

.divider {
  width: 200px;
  height: 2px;
  margin: 20px auto 40px;
  border: 0;
  background: var(--color-light);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--color-blue-light);
  border-radius: var(--radius);
  background: var(--color-blue-light);
  color: var(--color-white);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn:hover,
.btn:focus-visible {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: var(--color-white);
}

.btn--arrow::after {
  content: "\27F6";
  margin-left: 5px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.page-title--light {
  font-weight: 300;
}
