:root {
  /* Colors */
  --color-black: rgb(21, 21, 21);
  --color-green: rgb(78, 225, 160);
  --color-light-black: rgb(36, 36, 36);
  --color-light-gray: rgb(217, 217, 217);
  --color-white: rgb(255, 255, 255);

  /* Typography */
  --font-family: "Space Grotesk";

  /* Base text */
  --fs-base: 1rem; /* 16px */
  --lh-base: 1.5;

  /* Small text */
  --fs-sm: 0.875rem; /* 14px */
  --lh-sm: 1.4;

  /* Medium heading */
  --fs-md: 1.5rem; /* 24px */
  --lh-md: 1.3;

  /* Large heading */
  --fs-lg: 2rem; /* 32px */
  --lh-lg: 1.2;

  /* Extra-large heading */
  --fs-xl: 3rem; /* 48px */
  --lh-xl: 1.1;

  /* Jumbo (hero) */
  --fs-xxl: 5.5rem; /* 88px */
  --lh-xxl: 1;

  /* Layout */
  --mobile-container-max: 23.4rem; /* ~375px */
  --tablet-container-max: 44.2rem; /* ~707px */
  --desktop-container-max: 69.3rem; /* ~1,110px */
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* ===== Global Styles ===== */
@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/SpaceGrotesk-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/static/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/static/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

html,
body {
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-black);
  color: var(--color-white);
}

.container {
  box-sizing: content-box;
  max-width: var(--mobile-container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  overflow: hidden;
}

/****************************************************
 ******************* MOBILE STYLES *****************
 ****************************************************/

/* ===== Header ===== */
header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.social-media {
  width: 100%;
  max-width: 12.5rem;
  margin-block-end: 0.6rem;
}

.social-media svg {
  fill: #ffffff;
}

.icon {
  height: 1.4rem;
  width: 100%;
  max-width: 2.5rem;
  padding-inline: 0.6rem;
  margin-inline-start: 0.3rem;
}

img[alt="Picture of Todd"] {
  width: 100%;
  max-width: 13.8rem;
  height: 17rem;
  opacity: 0.9;
}

img[alt="circle"] {
  width: 8rem;
  height: 7rem;
  position: absolute;
  top: 35%;
  right: -5.3rem;
  z-index: 0;
}

img[alt="rings"] {
  position: absolute;
  width: clamp(20rem, 30vw, 33.1rem);
  min-height: 129px;
  inset-block-start: 8rem;
  left: clamp(-12rem, -20vw, -16rem);
  z-index: -1;
  pointer-events: none;
}

.image-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== MAIN ===== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-block-end: 5.3rem;
}

.top-section h1 {
  font-size: 2.2rem;
  line-height: var(--lh-xl);
  padding-inline: 0.2rem;
}

#name {
  text-decoration: underline;
  text-decoration-color: var(--color-green);
}

.top-section p {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-light-gray);
  max-width: 21.4rem;
}

.br-mobile {
  display: inline;
}

.contact-link {
  font-size: var(--fs-base);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--color-green);
  text-underline-offset: 0.9rem;
}

a {
  color: inherit;
  text-decoration: none;
}
a:visited {
  color: inherit;
}

.br-mobile {
  display: inline;
}
.br-tablet {
  display: none;
}

.im-guard {
  display: inline;
}

.skills-section,
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-block-end: 3.7rem;
}

.skills-section {
  width: 100%;
  border-block: var(--color-light-gray) 0.1rem solid;
  position: relative;
  padding-block-end: 1.5rem;
}

.skills {
  font-size: var(--fs-md);
  margin-block-start: 2.5rem;
  margin-block-end: 0.6rem;
}

.skills-section span {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-light-gray);
}

#rings-2 {
  position: absolute;
  top: 24.5rem;
  right: -200px;
  width: clamp(20rem, 30vw, 33.1rem);
  min-height: 8rem;
  z-index: -2;
}

/* ===== Projects ===== */
.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: 500;
}

.projects-heading__title {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  letter-spacing: -0.07rem;
  color: var(--color-white);
  margin-block-start: 1.2rem;
}

.projects-heading__link {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  text-decoration: underline;
  text-decoration-color: var(--color-green);
  text-underline-offset: 0.9rem;
  text-transform: uppercase;
  color: var(--color-white);
}

.projects-group {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-block: 2rem;
  width: 100%;
  align-items: center;
}

/* Individual Project Card */
.project {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  width: 100%;
  max-width: 21.4rem;
  min-height: 24.8rem;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.salon-image {
  height: 15rem;
}

.project-title {
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-white);
  text-align: left;
  margin-block-end: 0.6rem;
}

#disclaimer {
  font-size: var(--fs-sm);
}

.project-languages {
  display: flex;
  gap: 1.5rem;
  margin-block-end: 1.2rem;
}

.project-languages span {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 500;
  color: var(--color-light-gray);
}

.project-links {
  display: flex;
  gap: 1.25rem;
}

.project-links span {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--color-green);
  text-underline-offset: 0.9rem;
  letter-spacing: 0.14rem;
}

.contact {
  background-color: var(--color-light-black);
  width: 100%;
  padding-block-end: 0;
}

.contact h2 {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.071rem;
  color: #ffffff;
}

.contact form {
  display: flex;
  flex-direction: column;
  width: 21.4375rem;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-block-end: 6.25rem;
}

.contact input {
  width: 100%;
  height: 2.6875rem;
}

.contact textarea {
  width: 100%;
  height: 6.6875rem;
}

.contact button {
  align-self: flex-end;
  width: 9rem;
  height: 2.375rem;
  margin-block-start: 1.25rem;
}

.contact-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact p {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: 500;
  text-align: center;
  color: #d9d9d9;
  max-width: 21.4375rem;
}

#bottom-rings {
  position: absolute;
  width: 33.125rem;
  height: 7.5rem;
  top: 19.5rem;
  left: -400px;
  mix-blend-mode: normal;
  opacity: 1;
  z-index: 2;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding-block-end: 2rem;
}

.footer h2 {
  font-size: var(--fs-md);
}

.social-media-2 {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 12.5rem;
  margin-block-end: 0.6rem;
}

/****************************************************
 ******************* TABLET STYLES *****************
 ****************************************************/
@media (min-width: 768px) {
  .container {
    max-width: var(--tablet-container-max);
  }

  header {
    align-items: center;
  }

  .br-mobile {
    display: none;
  }

  .hero-title .l1,
  .hero-title .l2,
  .hero-title .l3 {
    display: block;
  }

  /* Keep "meet you I’m" on one line, no orphaning */
  .hero-title .l2 {
    white-space: nowrap;
  }

  .only-mobile {
    display: none;
  }

  #name {
    white-space: nowrap;
  }

  nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-inline: 1.8rem;
  }

  .image-bio {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    min-width: 95%;
    max-width: 100%;
    overflow: hidden;
    gap: 2rem;
  }

  img[alt="Picture of Todd"] {
    width: 100%;
    max-width: 50%;
    height: auto;
    order: 1;
    z-index: 1;
    margin-inline-end: -4rem;
  }

  .top-section {
    z-index: 2;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    max-width: 58ch;
    padding-left: 1rem;
  }

  .top-section h1,
  .top-section p,
  .top-section span {
    text-align: left;
  }

  .top-section h1 {
    width: 100%;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-block-start: 3.125rem;
    line-height: 1.1;
    font-weight: 700;
    text-wrap: balance;
  }

  .top-section p + span {
    align-self: flex-start;
    margin-block-start: 3.4375rem;
    font-size: 1rem;
  }

  .top-section p {
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    font-weight: 500;
    color: var(--color-light-gray);
    max-width: 45ch;
    white-space: normal;
    text-align: left;
  }

  .br-mobile {
    display: none;
  }
  .br-tablet {
    display: inline;
  }

  img[alt="circle"] {
    display: none;
  }

  img[alt="rings"] {
    top: 4rem;
    right: 38.4375rem;
    mix-blend-mode: normal;
    opacity: 1.25;
    z-index: -1;
  }

  .skills-section {
    align-items: flex-start;
    width: 95%;
    margin-block-start: 2.8125rem;
    margin-block-end: 4.6875rem;
    border-block-end: none;
  }

  .skills-section h2 {
    font-size: var(--fs-lg);
  }

  .skills-group-1 {
    width: 690px;
    max-width: 85%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  }

  .skills-group-2 {
    width: 715px;
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    text-align: left;
    margin-block-start: 1.5625rem;
  }

  #rings-2 {
    top: 16.5rem;
  }

  .projects {
    width: 100%;
    margin-block-start: 2.5rem;
  }

  .projects-heading__title {
    font-size: 3.75rem;
  }

  .projects-group {
    width: 98%;
    display: flex;
    flex-direction: row;
  }

  .project {
    max-width: 95%;
  }

  .project-title {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
  }

  .project:nth-child(1),
  .project:nth-child(3) {
    margin-inline-end: 1.25rem;
  }

  .project:nth-child(2),
  .project:nth-child(4) {
    margin-inline-start: 1.25rem;
  }

  .salon-image {
    height: 14rem;
  }

  .contact-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block-end: 1.5625rem;
  }

  .contact-bio h2 {
    font-size: 3.75rem;
    width: 27.81rem;
  }

  .contact p {
    font-size: 1.12rem;
    width: 27.81rem;
  }

  .contact form {
    width: 27.81rem;
  }

  .footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 95%;
    margin-inline-start: 0.625rem;
  }

  .footer h2 {
    font-size: 2rem;
  }
}

/****************************************************
 ******************* DESKTOP STYLES *****************
 ****************************************************/
@media only screen and (min-width: 1200px) {
  .container {
    box-sizing: border-box;
    max-width: var(--desktop-container-max);
  }

  header {
    align-items: center;
    justify-content: space-between;
  }

  img[alt="rings"] {
    top: 8rem;
    right: 45rem;
    opacity: 0.8;
  }

  nav {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
  }

  img[alt="Picture of Todd"] {
    width: 100%;
    max-width: 50%;
    height: auto;
    order: 1;
    z-index: 1;
    margin-inline-start: 0;
    margin-inline-end: 25px;
  }

  .top-section p {
    max-width: 45ch;
    white-space: normal;
    text-align: left;
  }

  main {
    width: 100%;
  }

  .projects {
    height: 81.25rem;
    margin-block-end: 3.125rem;
  }

  #project-1,
  #project-2,
  #project-3,
  #project-4 {
    max-width: 100%;
  }

  .project-grouping-2 {
    margin-block-start: 7.5rem;
  }

  .salon-image {
    height: 19.5rem;
  }

  #rings-2 {
    top: 15.375rem;
    right: 0;
    left: 50.5rem;
    opacity: 0.8;
  }

  .contact-top-section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-block-start: 2.1875rem;
  }

  #bottom-rings {
    top: 17.5rem;
    right: 41.5rem;
  }

  .form {
    margin-block-start: 1.875rem;
  }

  .footer {
    width: 90%;
    margin-inline-start: 4.6875rem;
    border-block-start: var(--color-light-gray) solid 0.125rem;
  }

  #bottom-rings {
    left: -55rem;
  }
}
