/*********************/
/******* Reset *******/
/*********************/

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*********************/
/*** Custom Styles ***/
/*********************/
html {
  scroll-behavior: smooth;
}
body {

   /* Global custom properties */

  /* Font sizes: */
  --size-h0: 8.75rem; /*140px*/
  --size-h1: 4.375rem; /*70px*/
  --size-h2: 3.125rem; /*50px*/
  --size-h3: 2rem; /*32px*/
  --size-h4: 1.5rem; /*24px*/
  --size-base: 1.125rem; /*18px*/
  --size-border: 1.875rem; /*30px*/

  /* Colours */
  --grey: #F9F7F7;
  --primary: #201C39;
  --highlight: #00FFD1;
  --feature: #EE1771;

  --git-yellow: #F7B917;
  --camp-red: #cf3339;
  --tracker-green: #1fa56f;
  --htc-blue: #3068e8;
  --ncc-purple: #283489;
  --envirofone-blue: #00b9f0;
  --gpe-blue: #00dce0;
  --gov-blue: #1d70b8;



  color: var(--primary);
  line-height: 1.5;
  font-family: 'Rubik', sans-serif;
  font-size: var(--size-base);
  padding: 6.25rem var(--size-border) var(--size-border);
  
}

::-moz-selection {
  color: var(--primary);
  background: var(--highlight);
}

::selection {
  color: var(--primary);
  background: var(--highlight);
}

.block--feature *::-moz-selection {
  color: var(--primary);
  background: var(--highlight);
}

.block--feature *::selection {
  color: var(--primary);
  background: var(--highlight);
}

h1::-moz-selection,
h2::-moz-selection,
h3::-moz-selection {
  color: var(--primary);
  background: var(--feature);
}

h1::selection,
h2::selection,
h3::selection {
  color: var(--primary);
  background: var(--feature);
}

/* Typography */

h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
span {
  font-size: clamp(
    var(--fluid-type-min, 1rem),
    calc(1rem + var(--fluid-type-target, 3vw)),
    var(--fluid-type-max, 1.3rem)
  );
}

h2 {
  --fluid-type-min: var(--size-h4);
  --fluid-type-max: var(--size-h2);
  --fluid-type-target: 4.375vw;
  margin-bottom: var(--size-h4);
}

p {
  margin-bottom: var(--size-base);
}

p:last-child {
  margin-bottom: 0;
}

p a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

p a:after {
  content: "";
  width: 100%;
  display: block;
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  background-color: #00F1D3;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  z-index: -1;
}

p a:hover:after {
  height: calc(100% + 6px);
}

ul {
  padding-left: 19px;
  font-size: var(--size-base);
}

li::marker {
  color: var(--highlight);
}

.block--git li::marker {
    color: white;
}

.block--envirofone li::marker {
  color: white;
}

/* Links / buttons */
.button {
  display: inline-block;
  color: var(--primary);
  background-color: var(--highlight);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--size-h4);
  padding: var(--size-h4) var(--size-h3);
  box-shadow: 10px 10px 0 var(--primary);
  position: relative;
  transition: all 0.2s ease;
  top: 0;
  left: 0;
}
.button:hover {
  top: 10px;
  left: 10px;
  box-shadow: none;
}

.button--white {
  background-color: white;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--size-border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6.25rem;
  background-color: white;
  z-index: 100;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    justify-content: center;
  }  
}

.site-header:after {
  content: "";
  display: block;
  background: white;
  width: 100%;
  height: 30px;
  position: fixed;
  bottom: 0;
  left: 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
}

.site-header__logo span {
  display: block;
  margin-left: 0.5rem;
  font-weight: 900;
  font-size: var(--size-h4);
}

@media (max-width: 600px) {
  .site-header__nav {
    width: 100%;
  } 
}

.site-header__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.813rem;
}

@media (max-width: 600px) {
  .site-header__nav ul {
    gap: initial;
    justify-content: space-between;
  }  
}

.site-header__nav ul a {
  display: block;
  font-weight: 900;
  text-decoration: none;
  color: var(--primary);
  position: relative;
}

.site-header__nav ul a:after {
  content: "";
  display: block;
  width: 0%;
  height: 100%;
  background-color: var(--highlight);
  top: 4px;
  left: 4px;
  position: absolute;
  z-index: -1;
  transform: rotate(-4deg);
  transition: all 0.2s ease;
}

.site-header__nav ul a:hover:after {
  width: 100%;
}



/* Blocks */

.block {
  display: flex;
  background-color: var(--grey);
  padding: var(--size-h2) var(--size-border);
  margin-bottom: var(--size-border);
  flex-direction: column-reverse;
  gap: var(--size-border);
}

@media (min-width: 600px) {
  .block {
    flex-direction: row;
    align-items: center;
  }
  .block--full {
    height: calc(100vh - 6.25rem - var(--size-border));
  }
  .block__portion:nth-child(1) {
    width: 40%;
  }
  
  .block__portion:nth-child(2) {
    width: 60%;
  }
}

.block--blank {
  background-color: transparent;
}

.block--hero {
  background-color: var(--highlight);
  align-items: stretch;
  position: relative;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(100vh - 6.25rem - var(--size-border));
}

.block--hero svg {
  position: absolute;
  top: 30px;
  right: 15px;
  height: auto;
  max-width: calc(100% - 30px);

  /* Animation */
  animation-name: wave-animation;  /* Refers to the name of your @keyframes element below */
  animation-duration: 10s;        /* Change to speed up or slow down */
  animation-iteration-count: infinite;  /* Never stop waving :) */
  transform-origin: 70% 70%;       /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% { transform: rotate( 0.0deg) }
 2% { transform: rotate(14.0deg) }  /* The following five values can be played with to make the waving more or less extreme */
 4% { transform: rotate(-8.0deg) }
 6% { transform: rotate(14.0deg) }
 8% { transform: rotate(-4.0deg) }
 10% { transform: rotate(10.0deg) }
 12% { transform: rotate( 0.0deg) }  /* Reset for the last half to pause */
100% { transform: rotate( 0.0deg) }
}

.block__pretitle {
    --fluid-type-min: var(--size-base);
    --fluid-type-max: var(--size-h3);
    --fluid-type-target: 1vw;
    display: block;
    font-weight: 900;
}

.block__title {
    --fluid-type-min: 2.5rem;
    --fluid-type-max: 8.75rem;
    --fluid-type-target: 4.375vw;
    margin-bottom: var(--size-h4);
}

.block__title--small {
    --fluid-type-min: var(--size-h4);
    --fluid-type-max: var(--size-h2);
    --fluid-type-target: var(--size-3);
    margin-bottom: var(--size-h4);
}

  --size-h0: 8.75rem; /*140px*/
  --size-h1: 4.375rem; /*70px*/
  --size-h2: 3.125rem; /*50px*/
  --size-h3: 2rem; /*32px*/
  --size-h4: 1.5rem; /*24px*/
  --size-base: 1.125rem; /*18px*/
  --size-border: 1.875rem; /*30px*/

.block__title:last-child { 
  margin-bottom: 0;
}

.block__subtitle {
  --fluid-type-min: var(--size-base);
  --fluid-type-max: var(--size-h4);
  --fluid-type-target: 1vw;
  display: block;
  margin-bottom: var(--size-h4);
  font-weight: 400;
}

.block__content {
  max-width: 84ch;
  margin: 0 auto;
}

.block .block__content-img {
  margin: 50px auto 50px;
}

.block__content-img__wrapper {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.block .block__content-img img {
  width: auto;
  max-width: 100%;
  margin: 0px auto 24px;
}

.block .block__content-img img.screenshot {
    border: 1px solid #8f8c9b;
    min-height: 100px;
    max-width: 60%;
}

span.block__caption {
  display: block;
  text-align: center;
}

.block--hero .block__title {
  --fluid-type-min: 2.5rem;
  --fluid-type-max: 8.75rem;
  --fluid-type-target: 11vw;
  max-width: 8ch;
  line-height: 0.9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  text-shadow: 10px 10px 0px var(--highlight),10px -10px 0px var(--highlight),-10px 10px 0px var(--highlight),-10px -10px 0px var(--highlight),10px 0px 0px var(--highlight),-10px 0px 0px var(--highlight),0px 10px 0px var(--highlight),0px -10px 0px var(--highlight)
}

.block--hero .block__subtitle {
  --fluid-type-min: var(--size-base);
  --fluid-type-max: var(--size-h2);
  --fluid-type-target: 2.4vw;
  margin-bottom: 0;
  line-height: 1.1;
}

.block img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.block--primary {
  background-color: var(--highlight);
}

.block--feature {
  background-color: var(--feature);
}

.block--git {
  background-color: var(--git-yellow);
}

.block--gov {
  background-color: var(--gov-blue);
  color: white;
}



.block--gpe {
  background-color: var(--gpe-blue);
}

.block--envirofone {
  background-color: var(--envirofone-blue);
}

.block--tracker {
  background-color: var(--tracker-green);
  color: white;
}

.block--htc {
  background-color: var(--htc-blue);
  color: white;
}

.block--ncc {
  background-color: var(--ncc-purple);
}

.block--camp {
  background-color: var(--camp-red);
  color: white;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: var(--size-border);
  text-align: center;
}
@media (min-width: 600px) {
  .site-footer {
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: var(--size-border);
  }
}

.site-footer__logo {
  display: flex;
  align-items: center;
}

.site-footer__logo span {
  display: block;
  margin-left: 0.5rem;
  font-weight: 900;
  font-size: var(--size-h4);
}

/* Quotes */

figure {
  /* padding-left: 7rem; */
  /* background-image: url(../img/quote-mark.svg);
  background-repeat: no-repeat; */
  font-size: var(--size-h4);
  position: relative;
}

figure::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../img/quote-mark.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  width: 12vmax;
  height: 12vmax;
}

figure::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  background-image: url(../img/quote-mark.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  width: 12vmax;
  height: 12vmax;
  transform: rotate(180deg);
}

figcaption {
  font-weight: 900;
}

blockquote {
  margin-bottom: var(--size-base);
  position: relative;
  z-index: 2;
}

/* Contact */

.block--contact { 
  background-color: var(--highlight);
  justify-content: space-between;
  flex-direction: column;
}

@media (min-width: 600px) {
  .block--contact { 
    flex-direction: row;
    text-align: left;
  }
}

.block--contact .block__title { 
  margin-bottom: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--size-border);
}

@media (min-width: 600px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-links a {
  display: block;
  position: relative;
}

.social-links img {
  position: relative;
  z-index: 1;
}

.social-links span {
  display: block;
  text-indent: -10000px;
  height: 0;
}

.social-links a:after {
  content: "";
  display: block;
  width: 0%;
  height: 100%;
  background-color: var(--feature);
  top: 4px;
  left: 4px;
  position: absolute;
  z-index: 0;
  transform: rotate(-4deg);
  transition: all 0.2s ease;
}

.social-links a:hover:after {
  width: 100%;
}

