/* 
  RESET via https://piccalil.li/blog/a-more-modern-css-reset  
*/ 

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 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 body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

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

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

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

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* 
  VARIABLES
*/ 

:root {
  --heading-font-family: "Teko", sans-serif;
  --base-font-family: "SF Pro", "Helvetica Neue", sans-serif;
  
  --size-0: clamp(1.0625rem, 0.9954rem + 0.3356vi, 1.3125rem);
  --size-1: clamp(1.1875rem, 1.1036rem + 0.4195vi, 1.5rem);
  --size-2: clamp(1.3125rem, 1.1951rem + 0.5872vi, 1.75rem);
  --size-3: clamp(1.4375rem, 1.2865rem + 0.755vi, 2rem);
  --size-4: clamp(1.5625rem, 1.2773rem + 1.4262vi, 2.625rem);
  --size-5: clamp(1.6875rem, 1.2177rem + 2.349vi, 3.4375rem);
  --size-6: clamp(1.8125rem, 1.0742rem + 3.6913vi, 4.5625rem);  
  --size-7: clamp(2.0625rem, 0.7706rem + 6.4597vi, 6.875rem);
  
  --heading-kerning: -0.015em;
  --leading: 1.4;
  
  --colour-light:      #EDF4F2; /* Blue Haze */
  --colour-dark:       #31473A; /* Lunar Green */
  --colour-dark-2:     #223228; /* Lunar Green */
  --colour-text:       #161817; /* Green Black */
  --colour-text-muted: #737474; /* Green Black */

  --space-s: clamp(0.75rem, 0.6829rem + 0.3356vi, 1rem);
  --space-m: clamp(1.125rem, 1.0243rem + 0.5034vi, 1.5rem);
  --space-l: clamp(1.5rem, 1.3658rem + 0.6711vi, 2rem);
  --space-xl: clamp(1.875rem, 1.7072rem + 0.8389vi, 2.5rem);
  --space-2xl: clamp(3rem, 2.7315rem + 1.3423vi, 4rem);
  --space-3xl: clamp(3.75rem, 3.4144rem + 1.6779vi, 5rem);
  --space-4xl: clamp(5.625rem, 5.1216rem + 2.5168vi, 7.5rem);

  --wrapper-max-width: 1680px;

  --gutter: var(--space-m);
  --gutter-column: var(--gutter);
  --gutter-row: var(--gutter);

  --button-padding: 0.7em 1.2em;
  --button-gap: 0.5em;
  --button-radius: 10% / 50%;
  --button-bg: var(--colour-dark);
  --button-colour: var(--colour-light);
  --button-hover-bg: var(--colour-dark-2);
  --button-hover-colour: var(--colour-light);
  --button-icon-size: 1.2cap;
  --button-outline-width: 1px;
  --button-outline-style: dashed;
  --button-outline-colour: yellow;
}

@media (min-width: 700px) {
  :root {
    --gutter: var(--space-xl);
  }
}

/* 
  STYLES 
 */ 

body {
  background: var(--colour-light);
  color: var(--colour-text);
  font-family: var(--base-font-family);
  font-size: var(--size-0);
  font-size-adjust: from-font;
  line-height: var(--leading);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  background-image: url("illustration.webp");
  background-size: 90%;
  background-position: 400% -40px;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

header {
  padding-block-start: var(--space-m);
}

header > nav {
  margin: var(--space-m) 0 var(--space-xl);
}


@media (min-width: 700px) {
  body {
    background-size: 80%;
    background-position: 200% -40px;
  }

  .header-blurb,
  .content-half {
    width: 70%;
  }
}

@media (min-width: 960px) {
  body {
    background-size: 70%;
    background-position: 160% -40px;
  }
}

@media (min-width: 1300px) {
  body {
    background-size: 60%;
    background-position: 140% -20px;
  }

  .header-blurb,
  .content-half {
    width: 50%;
  }
}

.wrap {
  margin-inline: auto;
  max-width: var(--wrapper-max-width);
  padding-inline: var(--gutter);
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wght" 400, "wdth" 100;
  font-feature-settings: normal;
  letter-spacing: var(--heading-kerning);
  overflow-wrap: anywhere;
  text-wrap: balance;
  color: var(--colour-dark);
  margin-block-end: 0;
  margin-block: 0;
}

h1 { font-size: var(--size-7); }
h2 { font-size: var(--size-6); }
h3 { font-size: var(--size-5); }

.pageTitle {
  margin: var(--space-l) auto var(--space-l);
  line-height: 1;
}

.pageTitle > span {
  display: inline-block;
  background-color: var(--colour-light);
}

.pageTitleSub {
  font-size: var(--size-6);
  letter-spacing: 0.1ch;
  text-transform: uppercase;
  font-variation-settings: "wght" 300;
}

a:not([class]) {
  color: var(--colour-dark);
}

dt { font-weight: bold; margin-top: var(--space-s);}
dt:first-of-type { margin-top: 0; }
dd { margin: 0; }
dt + dd { color: var(--colour-text-muted); }

.ms { margin: var(--space-s); }
.mm { margin: var(--space-m); }
.ml { margin: var(--space-l); }

.mtl { margin-top: var(--space-l); }
.mtxl { margin-top: var(--space-xl); }
.mt2xl { margin-top: var(--space-2xl); }
.mt4xl { margin-top: var(--space-4xl); }

.mrl { margin-right: var(--space-l); }

.mb4xl { margin-bottom: var(--space-4xl); }

.block { display: block; }

.Button {
  line-height: 1.1;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  letter-spacing: 0.05ch;

  display: inline-flex;
  align-items: center;
  gap: var(--button-gap);
  padding: var(--button-padding);

  background: var(--button-bg);
  color: var(--button-colour);

  border-radius: var(--button-radius);

  cursor: pointer;
}

.Button svg {
  height: var(--button-icon-size);
  width: auto;
  flex: none;
}


.Button:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-colour);
}

.Button:focus {
  outline-width: var(--button-outline-width);
  outline-style: var(--button-outline-style);
  outline-color: var(--button-outline-colour);
}

.Button:active {
  transform: scale(99%);
}

.Button[data-button-variant="linkedin"] {
  --button-bg: #0A66C2;
  --button-hover-bg: #004182;
}

/* 
  ANIMATIONS 
 */ 

@keyframes custom-pulse {
  0%, to {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInAndUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-breathe {
  animation: custom-pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fadeIn {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.4, 1, 0.6, 1);
  animation-fill-mode: forwards;
}

.animate-fadeInAndUp {
  opacity: 0;
  animation: fadeInAndUp 0.8s cubic-bezier(0.4, 1, 0.6, 1);
  animation-fill-mode: forwards;
}

.animate-delay200 { animation-delay: 0.2s; }
.animate-delay300 { animation-delay: 0.3s; }
.animate-delay400 { animation-delay: 0.4s; }
.animate-delay500 { animation-delay: 0.5s; }
.animate-delay600 { animation-delay: 0.6s; }

