:root {
  --brand: #3E7698;
  --heading: #1A414D;
  --banner-bg: #DEE2E1;
  --card-bg: #EEF0F0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Red Hat Display', sans-serif;
}

.site-header {
  padding: 16px 24px;
}

.logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
}

.banner {
  display: flex;
  justify-content: center;
  background: var(--banner-bg);
  color: var(--heading);
  padding: 30px 16px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  text-align: center;
}

/* Mobile first: two cards per row */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background-color: var(--card-bg);
  color: var(--brand);
  text-align: center;
  text-decoration: none;
  font-size: clamp(1rem, 4vw, 1.5rem);
  border-radius: 8px;
  transition: box-shadow 0.5s;
  box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.card svg {
  width: 48%;
  height: auto;
  max-height: 96px;
}

.card:hover,
.card:focus-visible {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Tablet and up: three cards per row */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 56px 24px;
  }

  .card svg {
    width: 96px;
  }
}

.nowrap {
  white-space: nowrap;
}
