@font-face {
  font-display: swap;
  font-family: 'Cookie';
  src: url('../assets/fonts/Cookie.woff2') format('woff2');
}

:root {
  --font: 'Cookie', serif;
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --paper: oklch(0.846 0.0534 78.26);
  --black: oklch(0.147 0.004 49.25);
  --chocolate: oklch(0.634 0.155 50.27);
  --tap: oklch(0.634 0.155 50.27 / 50%);
  --snow: snow;

  scrollbar-width: thin;
  scroll-behavior: smooth;
}

::selection {
  color: var(--snow);
  background: var(--chocolate);
}

body {
  gap: 1rem;
  display: flex;
  padding: 2rem 0;
  min-width: 100%;
  min-height: 100dvh;
  text-align: center;
  align-items: center;
  color: var(--black);
  flex-direction: column;
  font-family: var(--font);
  background: var(--paper);
  justify-content: space-between;
}

header {
  user-select: none;

  & img {
    width: 4rem;
    height: 4rem;
    background: var(--chocolate);
    border: 2px solid var(--snow);
    border-radius: calc(infinity * 1px);
  }

  & h1, & h2 {
    margin: 0.5rem 0;
    margin-bottom: 0;
  }
}

nav {
  gap: 3rem;
  display: inherit;
  font-weight: bold;
  font-size: 1.375rem;
  flex-direction: column;
}

a {
  line-height: 1rem;
  user-select: none;
  color: currentColor;
  font-size: 1.625rem;
  text-decoration: none;
  transition: color var(--transition);
  -webkit-tap-highlight-color: var(--tap);

  @media (hover: hover) {
    &:hover {
      color: var(--chocolate);
    }
  }
}

main {
  margin: 0 1rem;
  text-align: start;
  max-width: 37.5rem;
  font-size: 1.125rem;

  & img {
    max-width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 0.5rem;
    border: 1px solid var(--black);
  }

  & h1 {
    font-size: 1.75rem;
  }

  & summary {
    list-style: none;
    font-size: 1.25rem;
  }

  & ul {
    padding-left: 1.5rem;
  }

  & ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
  }

  & li {
    margin: 0.375rem 0;
    
    &::marker {
      font-weight: bold;
    }
  }

  & a {
    font-weight: bold;
    margin-left: 0.5rem;
  }
}

footer {
  gap: 0.5rem;
  display: inherit;
  user-select: none;
  font-weight: bold;
  font-size: 1.25rem;
  margin-top: 0.5rem;
  flex-direction: column;

  & a {
    font-size: inherit;
  }
}
