/* ==========================================================================
   Page Layout & Grid
   ========================================================================== */
body {
  overflow: scroll;
}

.content {
  display: block;
  width: 70%;
  margin: 4rem 17% 0;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
}

/* ==========================================================================
   Typeface Card
   ========================================================================== */
.typeface-card {
  border-top: 1px solid var(--fg);
  /* background-color: blue;s */
}

.typeface-meta {
  margin: 1rem 0 2rem 0;
  font-family: sans-serif;
  font-size: 0.8rem;
}

.typeface-name {
  text-align: center;
  font-size: clamp(1rem, 3rem + 4vw, 4rem);
  line-height: 1;
  font-family: var(--typeface-font, inherit);
  transition: opacity 3s ease;
  padding: 0.5rem 0 3rem 0rem;
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */
body.dark .typeface-card {
  border-color: var(--secondary-grey);
}

body.dark .typeface-name a {
  color: var(--fg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 850px) {
  .type-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .content {
    transform: none;
    width: 100%;
    margin: 12rem 0 0;
  }
}

/* ==========================================================================
   Footer Override (page-specific: static instead of fixed)
   ========================================================================== */
footer {
  position: static;
  margin: 10rem 0 0 0;
}
