/* Home fits in one screen: hero fills the space above a slim footer. */
.home {
  min-height: 100vh;
  min-height: 100svh;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vh, 32px);
  padding-top: clamp(16px, 4vh, 48px);
  padding-bottom: clamp(16px, 4vh, 48px);
  text-align: center;
}

/* Full roundel: 120px minimum on screen. */
.crest {
  display: block;
  width: clamp(120px, 22vh, 240px);
  height: auto;
}

.content {
  width: 100%;
  min-width: 0;
}

.content .label {
  color: var(--muted);
  margin-bottom: 8px;
}

.content .display {
  font-size: clamp(1.75rem, min(6vw, 7vh), 3rem);
}

.content .rule {
  margin: clamp(12px, 2vh, 20px) auto;
}

.intro {
  max-width: 34em;
  margin: 0 auto clamp(16px, 3vh, 28px);
}

/* Link tiles: crisp corners, white on green for the primary action. */
.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--green);
  border-radius: 2px;
  background: var(--white);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover {
  background: var(--whites);
}

.link-list a.primary {
  background: var(--green);
  color: var(--white);
}

.link-list a.primary:hover {
  background: #0d4a26;
  border-color: #0d4a26;
}

/* Slim footer on this page. */
.home .site-footer {
  padding: 16px 0;
  border-top-width: 6px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.home .site-footer p,
.home .site-footer .diamonds {
  margin: 0;
}

.home .site-footer .label {
  display: none;
}

/* Phones: the crest already spells out the club name, so drop the label and keep it to one screen. */
@media (max-width: 719px) {
  .crest {
    width: clamp(120px, 18vh, 200px);
  }

  .content .label {
    display: none;
  }

  .link-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .link-list a {
    min-height: 44px;
    padding: 6px 4px;
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .footer-inner {
    justify-content: center;
    font-size: 0.875rem;
  }
}

@media (min-width: 720px) {
  .hero {
    flex-direction: row;
    gap: 56px;
    text-align: left;
  }

  .crest {
    width: clamp(160px, 30vh, 260px);
    flex: none;
  }

  .content .rule {
    margin-left: 0;
  }

  .intro {
    margin-left: 0;
  }

  .link-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home .site-footer .label {
    display: block;
  }
}
