:root {
  --font-mono: "IBM Plex Mono", monospace;
  --font-emphasis: "Questrial", sans-serif;
  --font-serif: "Cormorant", sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  --_colours---grey-v-dark: #212121;
  --_colours---grey-v-dark-rgb: 33, 33, 33;
  --_colours---grey-dark: #3f3f3f;
  --_colours--grey-medium-dark: #5c5c5c;
  --_colours---grey-medium: #e2e2e2;
  --_colours---grey-light: #f2f2f2;
  --_colours---grey-v-light: #f5f5f5;
  --_colours---grey-vv-light: #fafafa;

  --_colours---green-subtle-bg: #d4ffd4;
  --_colours---green-dark-text: #7d0000;
  --_colours---red-subtle-bg: #ffcaca;
  --_colours---red-dark-text: #1b4b1e;
  --_colours---yellow-subtle-bg: lemonchiffon;
  --_colours---yellow-dark-text: #1a237e;
  --_colours---blue-subtle-bg: #a2fdff;
  --_colours---blue-dark-text: #ff2d6d;
}

@font-face {
  font-family: "Fontello";
  src: url("../fonts/fontello.eot?90990909") format("embedded-opentype"), url("../fonts/fontello.woff2?90990909") format("woff2"), url("../fonts/fontello.woff?90990909") format("woff"), url("../fonts/fontello.ttf?90990909") format("truetype"), url("../fonts/fontello.svg?90990909#fontello") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 13px;
}

/* Vertical spacing between siblings */
p + p,
h1 + *,
h2 + *,
h3 + *,
ul + *,
ol + *,
pre + *,
blockquote + * {
  margin-top: 1rem;
}

/* Remove top margin from first child in containers */
h1 + h2,
h1 + h3,
h1 + h4,
h1 + h5,
h2 + h3,
h2 + h4,
h2 + h5,
h3 + h4,
h3 + h5,
.parent > :first-child,
div > :not(section):first-child {
  margin-top: 0;
}

body {
  font-family: var(--font-mono);
  font-weight: var(--weight-regular);
  font-size: 1rem;
  background-color: #fff;
  color: #222;
  /* no max-width or margin here */
}

main {
  width: calc(100% - 2rem); /* full width minus 1rem margin on each side */
  margin-left: 1rem;
  margin-right: 1rem;
  padding: clamp(0.324rem, 0.21px + 1.253vw, 1.25rem); /*PROPORTIONS: p-sm */
  padding-top: 0px;
  border-left: 1px dashed var(--_colours---grey-v-dark);
  border-right: 1px dashed var(--_colours---grey-v-dark);
  box-sizing: border-box; /* include padding and borders in width */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.centred {
  max-width: 1280px;
  width: calc(100% - 2rem); /* keep the margin */
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  html {
    font-size: 12px;
  }

  main {
    width: 100%; /* full width minus 1rem margin on each side */
    margin-left: auto;
    margin-right: auto;
    border: none;
  }

  main.centred {
    width: 100%;
  }
}


section {
  background-color: var(--_colours---grey-vv-light);
  overflow: hidden;
  padding: clamp(0.324rem, 0.21px + 1.253vw, 1.25rem); /*PROPORTIONS: p-sm */
  margin: clamp(0.524rem, 0.38px + 2.002vw, 2rem); /*PROPORTIONS: m-md */
}

p {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  background-color: var(--_colours---grey-v-light);
}

p span {
  background-color: white;
}

blockquote {
  border-left: 4px solid var(--_colours---grey-medium);
  background-color: white;
  font-style: italic;
  font-weight: var(--weight-semibold);
  font-size: 1.06rem;
  color: var(--_colours---grey-medium-dark);
  padding: clamp(0.2rem, 0.22px + 0.74vw, 0.75rem); /* PROPORTIONS: p-xs */
  margin: clamp(0.848rem, -0.46px + 3.59vw, 3.5rem); /* PROPORTIONS: m-lg */
}

h1 {
  font-family: var(--font-emphasis);
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
  font-family: var(--font-emphasis);
  font-weight: var(--weight-light);
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
  font-family: var(--font-emphasis);
  font-weight: var(--weight-regular);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h1 span,
h2 span,
h3 span {
  background-color: white;
}

b {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variation-settings: "wght" 950;
}

a {
  color: var(--_colours---grey-v-dark);
  cursor: pointer;
}

a.linkbtn {
  padding: 0 10px;
  border-left: 1px dashed var(--_colours---grey-v-dark);
  border-right: 1px dashed var(--_colours---grey-v-dark);
  background-color: var(--_colours---grey-vv-light);
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icons {
  font-family: "Fontello", sans-serif;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}




