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

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #07110f;
  --foam: #e7f4f0;
  --mist: #b7cbc4;
  --teal: #7ddecb;
  --deep-teal: #123f39;
  --card: #14211e;
  --on-primary: #00332c;
  --on-primary-container: #c8f7ee;
  --secondary: #a9c7c0;
  --outline: #3c524c;
  --space: 1.25rem;
  --max: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--foam);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--on-primary-container);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--teal);
  color: var(--on-primary);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

header {
  border-bottom: 1px solid var(--outline);
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.brand {
  color: var(--foam);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

main {
  padding: 1.75rem 0 3rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
}

p,
li {
  color: var(--foam);
}

.lede,
.note {
  color: var(--mist);
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

.cards {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.35rem;
  color: var(--teal);
  font-size: 1.15rem;
}

.card p {
  margin: 0;
}

.meta {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--teal);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.button:hover {
  color: var(--on-primary);
  background: var(--on-primary-container);
}

.status {
  margin: 1rem 0 0;
  color: var(--mist);
}

footer {
  border-top: 1px solid var(--outline);
  padding: 1.25rem 0 2rem;
  color: var(--mist);
  font-size: 0.95rem;
}

footer a {
  color: var(--mist);
}

@media (min-width: 720px) {
  .bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.75rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
