@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/courier-prime-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #0d1117;
  --fg: #ede4d0;
  --dim: #9a9283;
  --red: #d2231b;
  --red-text: #db675e;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #0c0c0b;
    --dim: #6b655a;
    --red: #c41f17;
    --red-text: #c41f17;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.5 "Courier Prime", "Courier New", monospace;
}

@media (min-width: 640px) {
  body { padding: 64px 24px; }
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 4px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 14px 12px;
  background: var(--red);
  color: #fff;
}
.skip:focus { top: 8px; }

.head { margin-bottom: 32px; }

.brand {
  margin: 0 0 8px;
  color: var(--red-text);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  h1 { font-size: 48px; }
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  position: relative;
  padding: 16px 0 24px;
  border-bottom: 2px solid color-mix(in srgb, var(--red) 50%, transparent);
  transition: border-color 600ms var(--ease), transform 600ms var(--ease);
  animation: enter 600ms var(--ease) both;
  animation-delay: calc(var(--i) * 250ms);
}

.item:hover,
.item:focus-within { border-bottom-color: var(--red); }

.item:active { transform: translateY(1px); }

.item h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 400;
}

.item p {
  margin: 0 0 12px;
  color: var(--dim);
}

.item .links {
  display: flex;
  gap: 24px;
  margin: 16px 0 0;
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.links a {
  display: inline-block;
  min-width: 44px;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 600ms var(--ease), border-color 600ms var(--ease);
}

.links a:hover,
.links a:focus-visible {
  color: var(--red-text);
  border-bottom-color: var(--red);
}

.links a:active { transform: translateY(1px); }

.foot a {
  display: inline-block;
  padding: 12px 0;
}

.foot {
  margin-top: 32px;
  color: var(--dim);
  font-size: 14px;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  .item,
  .links a {
    animation: none;
    transition: none;
  }
}
