@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

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

:root {
  --white: #f2f4f7;
  --black: #070912;
  --blue-dark: oklch(0.5215 0.0749 218.53);

  --interactable: var(--blue-dark);

  --background-color: var(--black);
  --background-color-light: var(--white);
  --text-color: var(--white);
  --text-color-light: var(--dark);

  color-scheme: light dark;
}

nav,
h1,
h2,
h3,
h4,
h5,
h6,
p,
b,
a,
ul {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: light-dark(var(--text-color), var(--text-color-light));
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
b,
ul {
  padding: 1.25vh;
}

h1 {
  font-weight: 350;
  font-size: 2.5rem;
  padding-bottom: 2.5rem;
}

h2 {
  font-weight: 400;
  font-size: 2.25rem;
}

h3,
h4,
h5,
h6,
p {
  font-weight: 450;
  font-size: 2rem;
}

a {
  font-weight: 600;
  color: oklch(0.5 0.2956 218.53);
  font-size: 1.25rem;
  text-decoration: none;
}

p {
  hyphens: auto;
  font-size: 1.25rem;
}

body {
  align-content: center;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 100vw;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 2.5rem;
  background-color: light-dark(
    var(--background-color-light),
    var(--background-color)
  );
}

nav {
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 15px;
}

.nav--list {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

button {
  position: relative;
  float: left;
  width: 15rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  cursor: pointer;
  border: 0.2rem solid light-dark(var(--blue-dark), #84b9c9);
  background-color: transparent;
  overflow: hidden;
  border-radius: 5rem;
  margin: 1rem;
}

button a {
  font-size: 1.25rem;
  font-weight: 650;
  text-transform: uppercase;
  color: light-dark(var(--blue-dark), #84b9c9);
  transition: color 200ms ease;
}

button:before {
  width: 180px;
  height: 0%;
  bottom: 0px;
  transition: height 400ms ease;
}

button:hover {
  background-color: light-dark(var(--blue-dark), #84b9c9);
  transition: background-color 400ms;
}

button:hover a {
  color: var(--white);
}

.item {
  position: relative;
  float: left;
  width: 10rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  cursor: pointer;
  margin: 0 1rem;
  border: 2px solid light-dark(var(--blue-dark), #84b9c9);
  overflow: hidden;
  border-radius: 15px;
}

.item a {
  font-size: 1rem;
  text-transform: uppercase;
  color: light-dark(var(--blue-dark), #84b9c9);
  z-index: 10;
  text-decoration: none;
  transition: color 200ms ease;
}

.item:hover a {
  color: var(--white);
}

.item-active {
  position: relative;
  float: left;
  width: 10rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  cursor: pointer;
  margin: 0 1rem;
  border: 2px solid light-dark(var(--blue-dark), #84b9c9);
  background-color: light-dark(var(--blue-dark), #84b9c9);
  overflow: hidden;
  border-radius: 15px;
}

.item-active a {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--white);
}

.item:before {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  background: light-dark(var(--blue-dark), #84b9c9);
  transition: width 400ms ease;
}

.item:before {
  width: 180px;
  height: 0%;
  bottom: 0px;
  transition: height 400ms ease;
}

.item:hover:before {
  height: 100%;
}

.article,
.center {
  align-content: center;
  justify-content: center;
  align-items: center;
}

.article {
  max-width: 33vw;
  display: flex;
  flex-direction: column;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.title {
  align-content: center;
  justify-content: center;
  align-items: center;
  display: flex;
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.desktop-friendly {
  display: initial;
}

.mobile-friendly {
  display: none;
}

.container-centered {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
}

@media only screen and (max-width: 1080px) {
  .article {
    max-width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-top: 0;
    padding-bottom: 0;
  }

  a,
  p {
    font-size: 3rem;
  }

  h1 {
    font-size: 5rem;
    padding-top: 5rem;
  }

  h2 {
    font-size: 4rem;
    padding-top: 2.5rem;
  }

  nav {
    font-size: 2.5rem;
  }

  button {
    width: 35rem;
    height: 10rem;
    margin: 2.5rem;
    border-radius: 5rem;
    border-width: 0.45rem;
  }

  button a {
    font-size: 3rem;
  }

  .desktop-friendly {
    display: none;
  }
  .mobile-friendly {
    display: initial;
  }
}
