:root {
  --irish-green: #168000;
  --footer-green: #257500;
  --page-max: 1180px;
  --card-width: 500px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #146d12;
  font-family: Georgia, "Times New Roman", serif;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.77), rgba(255,255,255,.77)),
                    url('../images/shamrock-background.jpg');
  background-repeat: repeat;
  background-position: top center;
  background-size: 1000px 1000px;
}

.site-wrap {
  width: min(var(--page-max), calc(100% - 44px));
  margin: 0 auto;
  padding: 22px 0 46px;
}

.hero {
  text-align: center;
}

.logo {
  display: block;
  width: clamp(220px, 26vw, 305px);
  height: auto;
  margin: 0 auto 12px;
}

h1 {
  max-width: 980px;
  margin: 0 auto 20px;
  color: #137411;
  font-size: clamp(22px, 2.15vw, 30px);
  line-height: 1.03;
  font-weight: 700;
  text-transform: uppercase;
}

.hub-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hub-card {
  display: block;
  width: min(var(--card-width), 100%);
  border: 3px solid #168000;
  background: #fff;
  text-decoration: none;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset;
  transition: transform .16s ease, box-shadow .16s ease;
}

.hub-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  outline: none;
}

.site-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--footer-green);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 700px) {
  .background {
    background-size: 650px 650px;
  }

  .site-wrap {
    width: min(100% - 24px, 600px);
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .logo {
    width: min(250px, 68vw);
    margin-bottom: 14px;
  }

  h1 {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: clamp(18px, 5.4vw, 24px);
    line-height: 1.12;
  }

  .hub-list { gap: 13px; }
  .hub-card { border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-card { transition: none; }
}
