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

::view-transition-group(*) {
  animation-duration: 500ms;
  animation-timing-function: linear(
    0,
    0.012 0.9%,
    0.05 2%,
    0.411 9.2%,
    0.517 11.8%,
    0.611 14.6%,
    0.694 17.7%,
    0.765 21.1%,
    0.824 24.8%,
    0.872 28.9%,
    0.91 33.4%,
    0.939 38.4%,
    0.977 50.9%,
    0.994 68.4%,
    1
  );
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  height: 200vh;
}

.site-header {
  view-transition-name: site-header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: hsl(210deg 80% 90%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: black;
  text-decoration: none;
  &.active {
    font-weight: 700;
  }
}

.site-header nav a:hover {
  color: black;
}

.main-content {
  view-transition-name: main-content;
  padding: 2rem 1.5rem;

  p {
    max-width: 60ch;
  }
}
