/* --------------------------------------- */
/* ----- Basic Setup ----- */
/* --------------------------------------- */

@font-face {
  font-family: 'SpaceGrotesk';
  font-style: normal;
  font-weight: 500;
  src: url('/../fonts/SpaceGrotesk-Medium.ttf') format('ttf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

:root {
  --font-size-small: 1.8rem;
  --font-size-normal: 2.2rem;
  --font-size-medium: 2.8rem;
  --font-size-medium-1: 3.6rem;
  --font-size-large: 5.5rem;
  --font-size-huge: 7.5rem;
  --font-stack: 'Inter', 'Arial', sans-serif;

  --line-height-normal: 1.7;
  --line-height-small: 1.2;

  --black: #1a1a1a;
  --pink: #ff3258;
  --muted: #6b7280;
  --white: #f0e9f2;
  --white-1: #e5e5e6da;


  --container-max-width: 1180px;
  --container-normal-width: 800px;
  --container-medium-width: 700px; 
  --container-small-width: 500px;

  --gutter-huge: 12rem;
  --gutter-medium: 6rem;
  --gutter-normal: 3rem;
  --gutter-small-1: 2.5rem;
  --gutter-small: 2rem;

  --border-light: 1px solid rgb(221, 218, 218);
}

html {
  font-size: 62.5%; /* (16/10)*100 = 62.5% => 1rem = 10px */
  box-sizing: border-box;
  scroll-behavior: smooth;
}

@media(max-width: 1000px) {
  html {
      font-size: 52%;
  }
}

body {
  font-size: var(--font-size-small);
  font-family: var(--font-stack);
  font-weight: 400;
  color: var(--black);
  line-height: var(--line-height-normal);
  background: var(--white-1);
  overflow-x: hidden;
}

.row {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

@media(max-width: 1340px) {
  .row {
      max-width: 1100px;
  }
}

@media(max-width: 1240px) {
  .row {
      padding: 0 var(--gutter-medium);
  }
}

@media(max-width: 600px) {
  .row {
      padding: 0 var(--gutter-normal);
  }
}

@media(max-width: 600px) {
  .row {
      padding: 0 var(--gutter-small);
  }
}

section {
  padding: var(--gutter-huge) 1rem;
  border-bottom: 1px solid var(--muted);
}

img {
  object-fit: contain;
  max-width: 100%;
}

/* --------------------------------------- */
/* ----- Headlines and Paragraphs ----- */
/* --------------------------------------- */

h1,
h2,
h3 {
  font-family: 'SpaceGrotesk', sans-serif;
  font-weight: 500;
  line-height: var(--line-height-small);
  /* color: var(--white); */
}

.h1 {
  line-height: 1;
  font-size: var(--font-size-huge);
  font-weight: 500;
}

@media(max-width: 900px) {
  .h1 {
    font-size: 6.5rem;
  }
}

h2 {
  font-size: var(--font-size-medium-1);
  margin-bottom: var(--gutter-small);
  font-weight: 700;
}
/* 
h2::after {
  content: '';
  display: block;
  height: 2px;
  width: 10rem;
  background: var(--pink);
  margin: var(--gutter-small) 0;
} */

h3 {
  font-size: var(--font-size-medium-1);
  margin-bottom: var(--gutter-small);
}

@media(max-width: 500px) {
  .heading-primary {
    font-size: var(--font-size-large);
  }

  h2 {
    font-size: var(--font-size-medium-1);
  }

  h3 {
  font-size: var(--font-size-medium);
  }
}

p {
  margin: var(--gutter-small-1) 0;
}

@media(max-width: 900px) {
  p { 
      max-width: var(--container-small-width);
  }
}

/* --------------------------------------- */
/* ----- Buttons and Links ----- */
/* --------------------------------------- */

a {
  color: var(--black);
  font-weight: 400;
  font-family: 'Jost', sans-serif;
  transition: all .2s;
  outline: 2px solid transparent;
}

::-moz-focus-inner {
  border: 0;
}

button:focus,
a:focus {
  outline: 2px solid var(--pink);
}

body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) a:focus {
  outline: none;
}

.link:hover {
  color: var(--pink);
}

.btn {
  position: relative;
  display: inline-block;
  padding: 1rem 4.2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid  var(--pink);
  font-weight: 400;
}

.btn:focus {
  outline: none;
}

.btn::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  background: var(--white);
  height: 100%;
  z-index: -1;
  transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.btn:hover::after,
.btn:focus::after {
  right: 0;
  background: var(--pink);
}

.btn--pink {
  background: var(--pink);
  transition: all 0.2s;
}

.btn--pink::after {
  display: none;
}

.btn--pink:hover,
.btn--pink:focus {
  background: transparent;
}

.link__text {
  position: relative;
  display: inline-block;
  padding: .6rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--pink);
}

.link__text::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  background: var(--black);
  height: 100%;
  z-index: -1;
  transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.link__text:focus {
  outline: none;
}

.link__text:hover::after,
.link__text:focus:after {
  right: 0;
  background: var(--pink);
}

.link__text span {
  padding-left: 1rem;
  font-family: sans-serif;
}

/* ----- Back to Top ----- */

.back-to-top {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5.5rem;
  width: 5.5rem;
  background-color: var(--pink);
  border-radius: 50%;
  z-index: 10;
  visibility: hidden;
  transition: all .4s;
}

.back-to-top__image {
  height: 70%;
}

@media(max-width: 900px) {
  .back-to-top {
      right: 2rem;
  }
}

@media(max-width: 500px) {
  .back-to-top {
      right: 1rem;
  }
}

/* --------------------------------------- */
/* ----- Navigation ----- */
/* --------------------------------------- */;

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

body {
  margin: 0;
  background: var(--white-1);
  color: var(--black);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 720px;
  /* padding: 3rem 1.25rem 5rem; */
  padding: var(--gutter-medium) var(--gutter-normal);
  margin: 0 auto;
}

.intro {
  margin-bottom: 3rem;

  .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 1rem;
  }

  /* h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
  } */

  &__bio {
    color: var(--muted);;
  }

  &__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
}

/* .btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;

  &--primary {
    background: var(--black);
    color: white;
    border: none;
  }

  &--secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--black);
  }
} */

/* .section {
  margin-top: 3rem;

  h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  &__intro {
    color: var(--muted);;
  }
} */

/* .flex {
  display: flex;
  flex-direction: column;
} */

.card__item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  column-gap: 1rem;
  text-decoration: none;
  border-radius: 1.5rem;
  padding: 1rem;

  .chevron-right {
    height: 100%;
    width: 2.5rem;
  }

  &:hover {
    background-color: var(--muted);
  }
}

.card__item-content {
  display: flex;
  flex-direction: row;  
  column-gap: 2rem;
}

.card__item-img {
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  object-position: center;
  border-radius: 8px;
}

.card__item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: .4rem;

  .title {
    font-size: var(--font-size-normal);
    font-weight: 700;
  }
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;

  &__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);

    img {
      width: 36px;
      height: 36px;
      border-radius: 8px;
    }

    span {
      display: block;
      color: var(--muted);;
    }
  }

  &--cards {
    display: grid;
    gap: 0.75rem;
  }
}

.card {
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;

  span {
    display: block;
    color: var(--muted);;
  }
}

.footer {
  margin-top: 4rem;
  color: var(--muted);;
}
