* {
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: #f7f6f3;
  color: #393939;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

body:has(.info-box-modal.show) {
  overflow: hidden;
}

body:has(.info-box-modal.show) .info-box {
  visibility: hidden;
}

h1,
h2 {
  font-weight: 700;
}

strong {
  font-weight: 700;
}

.delicious,
.delicious span {
  font-family: 'Delicious Handrawn', cursive;
  font-weight: 400;
  font-style: normal;
}

.main-content {
  width: 100%;
  display: grid;
  grid-template-columns: 474px 1fr 250px 120px;
  min-height: 100vh;
}

.profile {
  position: relative;
  background-image: url('images/photo.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.section-content {
  padding: 50px 50px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-wrapper,
.content-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-box-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-box-symbol {
  position: absolute;
  bottom: -10px;
  right: -20px;
  font-size: 6rem;
  line-height: 1em;
  font-weight: bold;
  color: #393939;
  z-index: 2;
  transform: translateX(100%);
}

.info-box-modal {
  background-color: rgba(255, 255, 255, 0.25);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.5rem;
  color: #f7f6f3;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-box-modal.show {
  opacity: 1;
  visibility: visible;
}

.info-box-modal > * {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-box-modal.show > * {
  transform: scale(1);
}

.info-box-modal-content {
  background-color: #393939fa;
  width: min(90%, 1375px);
  max-height: min(90vh, 946px);
  height: auto;
  max-width: 1375px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: calc(clamp(1.5rem, 4vw, 2.5rem) + 4rem);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #666 #555;
}

.info-box-modal-content::-webkit-scrollbar {
  width: 6px;
}

.info-box-modal-content::-webkit-scrollbar-track {
  background: #555;
  border-radius: 3px;
}

.info-box-modal-content::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.info-box-modal-content::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.info-box-modal-close-btn {
  background-color: transparent;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #f7f6f3;
  font-size: 2.625rem;
  cursor: pointer;
  z-index: 11;
}

.info-box-modal-title {
  font-size: 2.25rem;
}

.info-box-modal p {
  font-size: 1.2rem;
  line-height: 1.5em;
}

.info-box {
  position: relative;
  background-color: #393939;
  padding: 1rem;
  color: #f7f6f3;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.125rem;
  cursor: pointer;
}

.info-box-title {
  font-size: 1.5rem;
  text-align: center;
  text-decoration: underline;
}

.info-box p {
  font-size: 0.9rem;
  line-height: 1.5em;
}

.info-box-tool {
  position: absolute;
  bottom: 0.3rem;
  right: 0.5rem;
  font-size: 12px;
  font-weight: 100;
}

.custom-section-text span {
  font-weight: 800;
  font-size: 3rem;
  word-break: break-word;
}

.custom-section-wrapper {
  font-weight: 400;
  font-size: 1.5rem;
  text-align: center;
}

.custom-section-text .small {
  font-size: 1rem;
  font-weight: 300;
}

.custom-section-text .underline {
  font-size: 1.5rem;
  font-weight: 300;
  text-decoration: underline;
}

.contact-info {
  padding: 50px 0;
  text-align: right;
}

.contact-info .contact-info-wrapper {
  padding: 0 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-left: 1px solid currentColor;
}

.contact-info-title {
  font-size: 1.25rem;
}

.contact-info .tel {
  font-size: 2.25rem;
  rotate: 3deg;
  appearance: none;
  -webkit-appearance: none;
}

.contact-info .name {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-info .email {
  font-size: 1rem;
  text-decoration: underline;
  rotate: 1.5deg;
}

.contact-info-description {
  font-weight: 700;
}

.show-desktop {
  display: inherit;
}

.show-mobile {
  display: none;
}

@media screen and (min-width: 1500px) {
  .section-content {
    padding-right: 300px;
  }
}

@media screen and (max-width: 1300px) {
  .show-desktop {
    display: none;
  }

  .show-mobile {
    display: inherit;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('images/photo.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    z-index: 0;
  }

  .profile {
    display: none;
  }

  .main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .content-title {
    background-color: #d9d9d980;
    margin: 0 auto;
    margin-bottom: 456px;
    padding: 15px;
    width: 100%;
    max-width: 344px;
    text-align: center;
  }

  .content-description {
    background-color: #d9d9d980;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
  }

  .content-description p {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .content-description strong,
  .content-description u {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
  }

  .section-content {
    padding: 1.25rem;
    padding-bottom: 630px;
    gap: 4rem;
  }

  .info-box-wrapper {
    gap: 4rem;
  }

  .info-box {
    padding: 1.5rem;
    pointer-events: none;
    gap: 1.5rem;
  }

  .info-box:has(.info-box-symbol) {
    padding-bottom: 150px;
  }

  .info-box-symbol {
    left: 50%;
    right: initial;
    bottom: 7px;
    margin: auto;
    color: #f7f6f3;
    font-size: 192px;
    transform: translate(-50%, 50%);
  }

  .info-box p {
    font-size: 1.125rem;
  }

  .custom-section-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .custom-section-wrapper {
    background-color: #d9d9d9;
    padding: 1.125rem;
  }

  .custom-section-wrapper + span {
    background-color: #d9d9d9;
    padding: 0rem;
    display: block;
    text-align: center;
  }

  .contact-info {
    background-color: #f7f6f3;
    text-align: center;
  }

  .contact-info-description {
    margin: 0 auto;
    max-width: 213px;
  }
}
