:root { color-scheme: light; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 80px);
  background: var(--brand-paper);
  color: var(--brand-pitch);
  font-family: var(--type-editorial);
}

:focus-visible { outline-color: var(--brand-pitch); }

main {
  width: min(100%, 980px);
}

h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--brand-pitch);
  font-family: var(--type-display);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: var(--weight-display);
  letter-spacing: -0.085em;
  line-height: 0.84;
}

p.sub {
  margin: 30px 0 54px;
  color: var(--brand-silver);
  font-family: var(--type-utility);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

a.card {
  display: flex;
  min-height: 190px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--brand-pitch);
  color: var(--brand-paper);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

a.card:nth-child(2) {
  background: var(--brand-charcoal);
}

a.card.demo-card {
  background: var(--brand-silver);
  color: var(--brand-paper);
}

a.card.mobile-card {
  background: var(--brand-concrete);
  color: var(--brand-pitch);
}

a.card:hover {
  background: var(--brand-concrete);
  color: var(--brand-pitch);
  transform: translateY(-5px);
}

a.card h2 {
  margin: 0;
  font-family: var(--type-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

a.card span {
  max-width: 26ch;
  color: var(--brand-concrete);
  font-family: var(--type-utility);
  font-size: 0.7rem;
  line-height: 1.6;
}

a.card:hover span { color: var(--brand-pitch); }

a.card.demo-card span { color: var(--brand-paper); }

a.card.demo-card:hover span { color: var(--brand-pitch); }

a.card.mobile-card span { color: var(--brand-charcoal); }

a.card.mobile-card:hover { background: var(--brand-paper); }

footer {
  margin-top: 34px;
  color: var(--brand-silver);
  font-family: var(--type-utility);
  font-size: 0.85rem;
  line-height: 1.5;
}

footer a {
  color: var(--brand-pitch);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { align-items: flex-start; padding-top: 18vh; }
  p.sub { margin: 24px 0 36px; }
  .cards { grid-template-columns: 1fr; }
  a.card { min-height: 150px; }
}

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