.fonts-page {
  cursor: default;
  overflow: auto;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.fonts-page #sky {
  position: fixed;
}

.fonts-header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
  pointer-events: none;
}

.fonts-header .back {
  pointer-events: auto;
  position: absolute;
  left: 1.5rem;
  top: 2.5rem;
  color: rgba(180, 200, 240, 0.45);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 300;
  transition: color 0.2s ease;
}

.fonts-header .back:hover {
  color: rgba(220, 230, 255, 0.85);
}

.fonts-title {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(200, 215, 255, 0.55);
  margin-bottom: 0.6rem;
}

.fonts-sub {
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(160, 180, 220, 0.35);
  letter-spacing: 0.04em;
}

.fonts-sub kbd {
  font-family: inherit;
  font-size: 0.75rem;
  border: 1px solid rgba(140, 160, 200, 0.2);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  color: rgba(180, 200, 240, 0.5);
}

.font-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 1.75rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.font-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(140, 170, 230, 0.12);
  background: rgba(8, 10, 24, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.35rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.font-card:hover,
.font-card:focus-visible {
  border-color: rgba(160, 190, 255, 0.35);
  background: rgba(14, 18, 40, 0.72);
  transform: translateY(-2px);
  outline: none;
}

.font-card .num {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(150, 175, 220, 0.4);
  margin-bottom: 1rem;
}

.font-card .sample {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(236, 242, 255, 0.9);
  text-shadow: 0 0 40px rgba(140, 170, 255, 0.12);
  margin-bottom: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.font-card .sample .sep {
  opacity: 0.4;
}

.font-card .meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.font-card .name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(210, 225, 255, 0.75);
  letter-spacing: 0.04em;
}

.font-card .desc {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(150, 170, 210, 0.4);
  line-height: 1.4;
}

/* Per-card type samples */
.font-card[data-font="1"] .sample {
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.font-card[data-font="2"] .sample {
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 200;
  letter-spacing: 0.08em;
}

.font-card[data-font="3"] .sample {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.font-card[data-font="4"] .sample {
  font-family: "Oxanium", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.font-card[data-font="5"] .sample {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.06em;
}
