@font-face {
  font-family: "Anakumar Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Anakumar Mono";
  src: url("fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #111213;
  --text: #d7d7d2;
  --muted: #8b8d88;
  --highlight: #c8ff3d;
  --highlight-text: #10110f;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 660px;
  margin: 0 auto;
  padding: 112px 16px 48px;
  background: var(--background);
  color: var(--text);
  font-family: "Anakumar Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 42em;
}

h1 {
  margin: 0 0 1.7rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 600;
}

.about {
  margin: 0;
  padding-left: 1.25rem;
}

.about li {
  margin: 0.85rem 0;
  padding-left: 0.2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 3rem;
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 90ms ease,
    background-color 90ms ease,
    box-shadow 90ms ease;
}

a:hover,
a:focus-visible {
  color: var(--highlight-text);
  background: var(--highlight);
  box-shadow:
    0.18em 0 0 var(--highlight),
    -0.18em 0 0 var(--highlight);
  outline: none;
  text-decoration: none;
}

.footer {
  margin: 1.1rem 0 0;
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    padding-top: 68px;
  }

  h1 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
