:root {
  --clr-prmry: #f5f5f5;

  --clr-scndry-blue: #4438f4;
  --clr-scndry-green-0: #d4fc00;
  --clr-scndry-green-1: #46780d;

  --clr-accnt-pink-0: #ffa5ce;
  --clr-accnt-pink-1: #f46ab6;
  --clr-accnt-pink-2: #cd0e77;

  --clr-txt-black: #09123c;
  --clr-txt-dark-grey: #64656d;
  --clr-txt-light-grey: #c9c9cf;
  --clr-txt-white: #fff;

  --clr-white: #fff;
  --clr-black: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  color: inherit;
  scroll-behavior: smooth;
}

body {
  color: var(--clr-txt-black);
  background-color: var(--clr-prmry);
  position: relative;
}

p {
  text-wrap: pretty;
}

/* Text */

.h-xl {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.04em;
  font-size: clamp(12.25rem, 6.75rem + 6.875vw, 15rem);
}

.h-l {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 400;
  line-height: 90%;
  letter-spacing: -0.04em;
  font-size: clamp(8rem, 3.5rem + 5.625vw, 10.25rem);
}

.h-m {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 400;
  line-height: 90%;
  letter-spacing: -0.04em;
  font-size: 4rem;
}

.h-s {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 400;
  line-height: 90%;
  letter-spacing: -0.04em;
  font-size: 2rem;
}

.p-l {
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.25rem;
}

.p-s-sans {
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1rem;
}

.p-s-serif {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1rem;
}

.p-xs {
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.nav-l {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 400;
  line-height: 85%;
  letter-spacing: 0;
  font-size: 1.25rem;
}

.nav-s {
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 400;
  line-height: 85%;
  letter-spacing: 0;
  font-size: 1rem;
}

.underline {
  text-decoration: underline;
}

@media (max-width: 1280px) {
  .h-xl {
    font-size: 6.5rem;
  }
  .h-l {
    font-size: 5rem;
  }
  .h-m {
    font-size: 3.5rem;
  }
}

@media (max-width: 800px) {
  .h-xl {
    font-size: 5.5rem;
    line-height: 90%;
  }
  .h-l {
    font-size: 4.5rem;
  }
  .h-m {
    font-size: 3rem;
  }
}

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

.bttn-links,
.bttn-links-light,
.bttn-links-back,
.bttn-links-inline-external {
  display: flex;
  padding: 0.375rem 0;

  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.35, 1);

  &:hover {
    color: var(--clr-txt-dark-grey);
  }
}

.bttn-links-light:hover {
  color: var(--clr-txt-light-grey);
}

.bttn-links-back {
  align-items: end;
  gap: 0.5rem;

  & svg {
    height: 0.5rem;
    width: auto;
    rotate: 180deg;
  }
}

.bttn-links-inline-external {
  align-items: end;
  gap: 0.5rem;

  & svg {
    height: 0.5rem;
    width: auto;
  }
}

.bttn-links-external,
.bttn-primary,
.bttn-primary-external {
  display: flex;
  position: relative;
  align-items: end;
  gap: 0.5rem;
  margin: 0.375rem 0;
  isolation: isolate;

  &::after {
    content: "";
    position: absolute;
    inset: -0.375rem;
    z-index: -1;
  }

  &:hover {
    color: var(--clr-scndry-blue);
  }

  &:hover::after {
    background-color: var(--clr-accnt-pink-0);
  }
}

.bttn-links-external svg {
  height: 0.5rem;
  width: auto;
}

.bttn-primary svg {
  height: 0.75rem;
  width: auto;
}

.bttn-primary-external svg {
  height: 0.625rem;
  width: auto;
}

.bttn-home img {
  height: 1.5rem;
  filter: grayscale(100%);

  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.35, 1);

  &:hover {
    filter: grayscale(0%);
  }
}

/* Sections */
/* Nav */

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-content: center;
  gap: 2rem;
}

.nav-home {
  display: flex;
  position: absolute;
  inset: 0 1rem;
  place-self: center;
}

@media (max-width: 800px) {
  .nav-links {
    gap: 1.5rem;
  }
  .nav-resume {
    display: none;
  }
  .nav-home {
    position: relative;
    inset: auto;
  }
}

/* Footer */

footer {
  display: grid;
  position: relative;
  grid-template: repeat(2, auto) / repeat(12, 1fr);
  gap: 1rem 1rem;
  padding: 4rem 2rem 2.5rem;
  background-color: var(--clr-txt-black);
  color: var(--clr-txt-white);
  overflow: hidden;
}

.footer-email {
  grid-area: 1 / 4 / 2 / 7;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.5rem;

  & h3 {
    color: var(--clr-scndry-green-0);
  }
}

.footer-explore {
  grid-area: 1 / 9 / 2 / 11;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  & h4 {
    text-transform: uppercase;
    color: var(--clr-txt-light-grey);
  }

  & ul {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
}

.footer-resume {
  grid-area: 1 / 11 / 2 / 13;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;

  & h4 {
    text-transform: uppercase;
    color: var(--clr-txt-light-grey);
  }
}

.footer-overthinking {
  grid-area: 2 / 9 / 3 / 13;
  text-align: end;
  margin-top: 14rem;
  color: var(--clr-txt-light-grey);
}
footer img {
  position: absolute;
  width: auto;
  height: 575px;
  left: -2rem;
  bottom: -9rem;
  rotate: 15deg;
}

@media (max-width: 1280px) {
  .footer-email {
    grid-area: 1 / 1 / 2 / 6;
  }

  .footer-explore {
    grid-area: 1 / 7 / 2 / 10;
  }

  .footer-resume {
    grid-area: 1 / 10 / 2 / 13;
  }

  footer img {
    height: 450px;
    bottom: -9rem;
  }
}

@media (max-width: 800px) {
  footer {
    grid-template: repeat(4, auto) / 1fr;
  }

  .footer-email,
  .footer-explore,
  .footer-resume,
  .footer-overthinking {
    grid-area: span 1 / span 1;
  }

  .footer-email {
    margin-bottom: 2.5rem;
  }

  .footer-overthinking {
    position: relative;
    text-align: start;
    margin-top: 8rem;
    z-index: 1;
  }

  footer img {
    width: clamp(150px, -50px + 66.667vw, 200px);
    left: auto;
    bottom: -10rem;
    right: clamp(-4rem, -34rem + 128vw, -2rem);
    rotate: -15deg;
  }
}

.cs_grid:hover,
.cs_list-1:hover,
.cs_list-2:hover,
.cs_list-3:hover,
.cs_list-4:hover,
.cs_list-5:hover {
  outline: 0.5rem dashed var(--clr-accnt-pink-0);
  outline-offset: -0.5rem;
}

.section-title,
.page-title {
  overflow: hidden;
  position: relative;
  padding: 4rem 4rem 2.5rem;
  background-color: var(--clr-scndry-green-0);
  overflow-wrap: anywhere;

  & svg {
    position: absolute;
    place-self: center;
    inset: 4rem 0 2.5rem;
    stroke-width: 0.5rem;
    height: 1.75rem;
    color: var(--clr-scndry-green-1);

    animation: section-marquee 15s linear infinite;
  }

  & h1,
  h2 {
    position: relative;
    display: inline-block;
    z-index: 1;
    color: var(--clr-txt-black);

    &::first-line {
      background-color: var(--clr-scndry-green-0);
    }
  }
}

.page-title {
  padding-top: 0;

  & svg {
    inset: 0 0 2.5rem;
  }
}

@keyframes section-marquee {
  0% {
    transform: translateX(-6.25%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1280px) {
  .section-title svg,
  .page-title svg {
    top: calc(4rem + 1.5rem);
    height: 1.5rem;
    bottom: auto;
  }

  .page-title svg {
    top: 2.75rem;
  }
}

@media (max-width: 800px) {
  .section-title,
  .page-title {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title svg,
  .page-title svg {
    height: 1rem;
  }
  .page-title svg {
    top: 2rem;
  }
}
