@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --s1: clamp(1.4rem, 1.25rem + 0.65vw, 1.75rem);
  --s2: clamp(1.75rem, 1.45rem + 0.75vw, 2.2rem);
  --s3: clamp(2.2rem, 1.65rem + 0.9vw, 2.65rem);
  --s4: clamp(3.2rem, 2.4rem + 1.25vw, 3.85rem);
  --s5: clamp(5rem, 3.6rem + 2.2vw, 6.7rem);

  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --font-heading: "Noto Serif", serif;
  --font-body: "Figtree", sans-serif;
}

body {
  font-size: var(--s1);
}

h5 {
  font-size: var(--s2);
}

h4 {
  font-size: var(--s3);
}

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

h2 {
  font-size: var(--s4);
}

h1 {
  font-size: var(--s5);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: var(--s1);
  scroll-behavior: smooth;
  line-height: 1.6;
}

small {
  font-size: calc(0.15vw + 0.75rem);
}

main {
  padding: 0 1rem;
}

strong {
  font-weight: 700;
}

article > p {
  margin-bottom: 0.6rem;
}

.section .span-styled {
  margin-bottom: 0.8rem;
}

.span-styled {
  position: relative;
  display: block;
  width: fit-content;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.span-styled::before {
  content: "";
  width: 100%;
  height: 8%;
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  background: #e53e3e;
  z-index: -1;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

ul {
  list-style: disc;
  padding-inline-start: 40px;
}

ol {
  list-style: lower-roman;
  padding-inline-start: 40px;
}

ol li,
ul li {
  width: fit-content;
}

a {
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:visited:hover,
a:hover {
  color: #4d9aff;
}

/*  */
.logo-main {
  width: 6rem;
  mix-blend-mode: normal;
  aspect-ratio: 5/3;
  object-fit: cover;
}

.bt-top-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  aspect-ratio: 1;
  height: 3rem;
  font-size: 1rem;
  line-height: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fade-scale-in 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.bt-top-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
}

@keyframes fade-scale-in {
  0% {
    transform: scale(0);
    opacity: 0;
    transform: translateY(8px);
  }
}

.section {
  margin-top: clamp(4rem, 8vw, 6rem);
  margin-bottom: clamp(4rem, 8vw, 6rem);
  max-width: 60ch;
}

header.section {
  margin-top: clamp(6rem, 12vw, 8rem);
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

footer {
  margin-top: clamp(5rem, 10vw, 7rem);
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

@media screen and (min-width: 700px) {
  main {
    padding-left: 12.5%;
  }
}

/*  */
.bg-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("/assets/stucco.png");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.25;
  pointer-events: none;
}
