/* src/style.css */
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/InterVariable.woff2?v=4.0") format(woff2);
}

@font-face {
  font-family: InterVariable;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/InterVariable-Italic.woff2?v=4.0") format(woff2);
}

:root {
  color-scheme: dark;
  --font: InterVariable, system-ui;
  --font-features: "liga" 1, "calt" 1, "case" 1, "ss04" 1, "cv10" 1;
  --accent: oklch(69.579% .20426 43.491);
  --bg: oklch(23.503% 0 none);
  --grey: oklch(59.987% 0 none);
  --text: oklch(100% 0 none);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: var(--font-features);
  width: 88dvw;
  max-width: 48rem;
  margin: auto;
}

header {
  text-align: center;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s, visibility 1s, color .25s;
}

@starting-style {
  a {
    opacity: 0;
    visibility: hidden;
  }
}

a:hover {
  color: var(--accent);
}

@media (max-width: 800px) {
  a {
    flex-direction: column;
    align-items: start;
  }
}

.dim {
  color: var(--grey);
  font-size: .8rem;
}

hr {
  opacity: 1;
  visibility: visible;
  transition: all 1s;
  background-color: var(--grey);
  border: none;
  border-radius: 1rem;
  width: 100%;
  height: .1rem;
  margin: 0;
}

@starting-style {
  hr {
    opacity: 0;
    visibility: hidden;
  }
}
