@font-face {
  font-family: "Fraunces Variable";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #e9ecf2;
  --surface: #ffffff;
  --surface2: #f2f4f9;
  --ink: #111a4a;
  --slate: #3f4a63;
  --steel: #5b6577;
  --muted: #79808f;
  --sky: #0e7490;
  --good: #0f9d6e;
  --hair: rgba(17, 26, 74, 0.1);
  --edge: rgba(17, 26, 74, 0.2);
  --serif: "Fraunces Variable", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1;
}

.mast {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--hair);
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mast nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
}

.mast nav a:hover {
  color: var(--ink);
}

.hero {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px 24px;
}

.kicker {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

h1 {
  margin: 0;
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.deck {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
}

.grid {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 24px 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  background: var(--surface2);
  border-color: var(--edge);
}

.card:focus-within {
  border-color: var(--sky);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-link:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}

.card-body {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.mark img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.category {
  margin: 14px 0 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  max-width: 44ch;
  margin: 8px 0 0;
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.55;
}

.status {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(15, 157, 110, 0.14);
}

.card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  pointer-events: none;
}

.action {
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.secondary {
  pointer-events: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secondary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.note {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 24px 48px;
  color: var(--steel);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.footer {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  border-top: 1px solid var(--hair);
  color: var(--steel);
  font-size: 12px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer a {
  color: var(--slate);
}

.footer a:hover {
  color: var(--ink);
}

@media (min-width: 820px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .card.featured {
    grid-column: 1 / -1;
    padding: 22px 24px;
  }

  .card.featured .tagline {
    max-width: 68ch;
  }

}

@media (min-width: 620px) {
  .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    min-height: 160px;
  }

  .card .card-foot {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
  }

  .card-body {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }

  .card .mark {
    grid-row: 1 / span 4;
  }

  .card .category {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .mast,
  .hero,
  .grid,
  .note,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 40px;
  }

  .card {
    padding: 18px;
  }
}

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