@font-face {
  font-family: Cantarell;
  src: url('/new-assets/fonts/Cantarell/Cantarell-Bold.ttf');
  font-weight: 100 900;
}

@font-face {
  font-family: Manrope;
  src: url('/new-assets/fonts/Manrope/Manrope-VariableFont_wght.ttf');
  font-weight: 100 900;
}

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

:root {
  --color-fg: rgb(10, 10, 10);
  --color-bg: rgb(252, 252, 252);
  --color-fg-a: rgb(10, 10, 10, .9);
  --color-gray-light: rgb(200, 200, 200);
  --color-gray-dark: rgb(100, 100, 100);

  --color-link: rgb(50, 50, 50);
  --color-link-hover: rgb(150, 30, 30);
  --color-link-visited: rgb(120, 120, 120);

  --font-site-title: Cantarell, sans-serif;
  --font-primary-400: Manrope, sans-serif;
}

.font-1 {
  font-size: clamp(.8rem, .5rem + 1.5vw, 1rem);
}

.font-2 {
  font-size: clamp(.8rem, .5rem + 1.3vw, .9rem);
}

.font-3 {
  font-size: clamp(.8rem, .5rem + 1.2vw, .8rem);
}
  
li {
  list-style-type: none;
}

img {
  display: block;
  width: 100%;
  max-width: 768px;
  /* width: unset; */
  height: unset;
  min-width: 150px;
}

figure {
  margin-block: 2rem;
  max-width: 800px;
}

figcaption {
  margin-top: .5rem;
}

a {
  color: var(--color-link);
}

.site-name:hover {
  color: var(--color-bg) !important;
}

a:visited {
  color: unset;
}

a:hover {
  color: var(--color-link-hover) !important;
}

body {
  font-family: var(--font-primary-400) !important;
  color: var(--color-fg);
  background-color: var(--color-bg) !important;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#wrapper {
  flex-grow: 1;
  margin-left: min(max(0rem, 100vw - 80rem), 10%);
  max-width: 768px;
  padding: 1.25rem;
  margin-top: 6rem;
}

#wrapper * {
  font-family: var(--font-primary-400) !important;
  background-color: var(--color-bg) !important;
  /* color: var(--color-fg) !important; */
}

h1 {
  font-size: clamp(1.5rem, 1rem + 6vw, 3rem);
}

h2 {
  font-weight: 300;
  font-size: clamp(1rem, 1rem + 2vw, 1.75rem);
  margin-bottom: 4rem;
}

h3 {
  font-size: clamp(1.25rem, .85rem + 3vw, 1.85rem);
  margin-bottom: 0;
}

h4 {
  font-size: clamp(.85rem, .5rem + 2vw, 1.25rem);
  margin-bottom: .5em;
  font-weight: 400;
}

p {
  margin: 1em 0;
  font-size: clamp(.85rem, .5rem + 2vw, 1.125rem);
  
}

p, span, div {
  line-height: 1.4;
}

.text p {
  font-size: clamp(.85rem, .5rem + 2vw, 1.15rem);
}

hr {
  margin: 2em 0;
  height: 1.25rem;
  border: 0;
  border-bottom: .0625rem solid var(--color-gray-light)
}

footer {
  background: var(--color-fg);
  color: var(--color-bg);
  width: 100%;
  text-align: center;
  letter-spacing: .0625rem;
  padding: .5em;
  margin-top: 3em;
  font-size: .75rem;
}



/* HEADER */


/* MOBILE STYLING (screen width < 48rem) */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-fg);

  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  z-index: 100;
  padding: 0 .5em;
}

.site-name {
  font-family: Cantarell, sans-serif !important;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-bg) !important;
  align-self: center;
  font-size: 2rem;
}

.k {
  letter-spacing: .1875rem;
}

/* HAMBURGER TOGGLE MENU BUTTON */

.hamburger {
  display: block;
  padding: .5em 0;
}

.patty {
  width: 2rem;
  height: .125rem;
  background: var(--color-bg);
  transition: all .125s;
  transform-origin: center;
}

.hamburger:hover .patty {
  background: var(--color-gray-light);
}

.patty:nth-child(1) {
  transform: translate(0, -300%) rotateZ(0);
}

.patty:nth-child(2) {
  opacity: 1;
}

.patty:nth-child(3) {
  transform: translate(0, 300%) rotateZ(0);
}

.rotate-left {
  transform: translate(0, 100%) rotateZ(45deg) !important;
}

.rotate-right {
  transform: translate(0, -100%) rotateZ(-45deg) !important;
}

.disappear {
  opacity: 0 !important;
}

/* MAIN MENU */

.main-menu-container {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 100vw;
  transition: left .25s;
  overflow-y: scroll;
  background: var(--color-fg);
}

.slide-in {
  left: 0;
}

i {
  margin-right: 1px;
}

.main-menu {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
}

.dropdown-menu {
  max-height: 0;
  overflow-y: hidden;
  transition: max-height .5s ease-out;
  background: var(--color-fg);
}

.dropdown-header:hover .dropdown-menu {
  max-height: 100vh;
  transition: max-height .5s ease-in;
}

.menu-item>a {
  display: grid;
  font-size: 1.25rem;
  color: var(--color-bg);
  border-bottom: .0625rem solid var(--color-gray-dark);
  padding: 1em;
  text-decoration: none;
}

.menu-item > a:hover {
  color: var(--color-fg) !important;
  background: var(--color-bg);
}

/* DROPDOWN MENUS */

.dropdown-menu a {
  padding-left: 2em;
}

.dropdown-header:hover {
  cursor: pointer;
}

.menu-item img {
  width: 1.25rem;
  min-width: unset;
}

.menu-item:hover img {
  filter: invert();
  min-width: unset;
}

.menu-item img {
  width: 1.25rem;
  min-width: unset;
}

.menu-item:hover img {
  filter: invert();
  min-width: unset;
}


/* DESKTOP STYLING (screen size over 61.25rem) */

@media (min-width: 54.5rem) {
  .hamburger {
    display: none;
  }

  .main-menu-container {
    position: unset;
    width: unset;
    height: unset;
    transform: unset;
    overflow-y: unset;
  }

  .main-menu {
    position: unset;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dropdown-menu {
    position: absolute;
    transition: max-height .25s;
  }

  .menu-item>a {
    font-size: 1rem;
    border-bottom: unset;
    padding: .725em;
  }
}

#backToTop {
  position: fixed;
  right: 0;
  bottom: 0;
  margin: .5em;
  width: 2em;
  height: 2em;
  display: grid;
  place-items: center;
  background-color: #ccc3;
  color: #333;
  text-decoration: none;
  font-size: 1.25rem;
  border-radius: 10px;
  transition: color .125s, background-color .125s, opacity .5s;
  opacity: 0;
}

#backToTop:hover {
  background-color: #ccc7;
  color: #222;
  cursor: pointer;
}

.is-visible {
  opacity: 1 !important;
}