body,
section {
  position: relative;
}
main,
section {
  scroll-snap-type: y mandatory;
}
.score,
.score-container,
aside,
nav,
section {
  display: flex;
}
.btn,
.score {
  background: var(--color-accent);
}
@font-face {
  font-family: "Shadows Into Light";
  src: url("static/fonts/ShadowsIntoLight-Regular.ttf") format("truetype");
}
main,
section {
  height: 100svh;
}
body,
h2 {
  font-weight: 300;
}
h1,
h3 {
  font-weight: 400;
}
.navlink,
h2,
h4,
p {
  color: var(--color-text-secondary);
}
body,
h3,
h5 {
  color: var(--color-text);
  font-style: normal;
}
.btn,
nav {
  padding: 1rem 1.5rem;
}
:root {
  --color-bg: rgb(25, 34, 48);
  --color-text: rgb(212, 217, 223);
  --color-text-secondary: rgb(157, 163, 173);
  --color-text-dark: rgb(20, 28, 41);
  --color-accent: rgb(0, 187, 167);
  --color-accent-hover: rgb(0, 134, 119);
  --color-flag-red: rgb(255, 69, 69);
  --color-flag-white: rgb(255, 255, 255);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--color-bg);
  font-family: "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 1.15rem;
}
h1 {
  font-size: 2.5rem;
}
.score,
nav {
  font-size: 1rem;
}
h3,
h5 {
  font-family: "Shadows Into Light", cursive;
}
header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
}
nav {
  gap: 0.5rem;
}
.navlink {
  text-decoration: none;
}
.link,
strong {
  color: var(--color-accent);
}
main {
  padding: 0 1rem;
  scroll-behavior: smooth;
  overflow-y: scroll;
}
section {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  max-width: 48rem;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
}
section.visible {
  opacity: 1;
}
section.start {
  scroll-snap-align: start;
  padding: 6rem 0;
  height: auto !important;
}
article,
section.center {
  scroll-snap-align: center;
}
.first-article {
  margin-top: 4rem;
}
hgroup {
  line-height: 1;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 3.5rem;
}
h4 {
  font-size: 1.5rem;
  font-weight: 300;
}
h5 {
  font-weight: 400;
  font-size: 2.5rem;
}
.act,
.score,
span,
strong {
  font-weight: 600;
}
p {
  margin-top: 0.5rem;
  line-height: 1.5;
}
.first-text {
  margin-top: 1.5rem;
}
.last-text {
  margin-bottom: 4rem;
}
.link {
  text-decoration: underline;
}
span {
  background: linear-gradient(
    to bottom,
    var(--color-flag-red),
    var(--color-flag-red) 55%,
    var(--color-flag-white) 55%,
    var(--color-flag-white)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
aside {
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.act {
  text-decoration: none;
  transition-duration: 0.2s;
}
.btn {
  color: var(--color-text-dark);
  border-radius: 10px;
}
.icon {
  color: var(--color-text);
}
.lighthouse-scores {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  padding: 1rem 0;
  text-decoration: none;
}
.score-container {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score {
  margin-top: 0;
  width: 32px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-dark);
}
.score-label {
  margin-top: 0;
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-text-secondary);
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: oklch(27.8% 0.033 256.848);
}
::-webkit-scrollbar-thumb {
  background: oklch(70.4% 0.14 182.503);
}
::-webkit-scrollbar-thumb:hover {
  background: oklch(52.651% 0.09368 183.219);
}
@media (min-width: 640px) {
  ::-webkit-scrollbar {
    width: 12px;
  }
  h2 {
    font-size: 3rem;
  }
  h3 {
    font-size: 5rem;
  }
  h4 {
    font-size: 2rem;
  }
  h5 {
    font-size: 3.5rem;
  }
}
.floating {
  animation: 2s ease-in-out infinite floating;
}
@keyframes floating {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(0);
  }
}
