:root {
  --green: #286849;
  --green-soft: #dcece2;
  --ink: #19261f;
  --muted: #708078;
  --line: #e2e9e4;
  --cream: #f6f9f5;
  --white: #fff;
  --amber-soft: #f6ead6;
  --blue-soft: #e5f0ff;
  --shadow: 0 18px 55px rgba(23, 53, 39, .12);
  --portal-title-size: 62px;
  --portal-mobile-scale: .86;
  --portal-mobile-title-size: 39px;
  --portal-mobile-description-size: 22px;
  --portal-mobile-card-title-size: 38px;
  --portal-mobile-card-text-size: 17px;
  --portal-mobile-kicker-size: 12px;
  --portal-mobile-button-size: 15px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(40, 104, 73, .14), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(166, 107, 22, .14), transparent 32%),
    var(--cream);
}

.portal-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 22px;
  display: grid;
  align-content: center;
  gap: 34px;
}

.portal-hero {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.portal-hero.compact {
  max-width: 720px;
  margin: auto;
  padding: clamp(32px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.portal-logo {
  width: min(1120px, 96vw);
  max-height: 260px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, var(--portal-title-size));
  line-height: .98;
}

.portal-hero p:not(.eyebrow) {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  align-content: end;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(40, 104, 73, .35);
  box-shadow: 0 24px 70px rgba(23, 53, 39, .18);
  outline: none;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(40, 104, 73, .14), transparent 56%);
  pointer-events: none;
}

.service-card-worship::before {
  background: linear-gradient(135deg, rgba(166, 107, 22, .18), transparent 56%);
}

.service-icon {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
  overflow: hidden;
}

.service-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.service-icon.has-image img {
  width: 100%;
  height: 100%;
}

.service-card-worship .service-icon {
  background: var(--amber-soft);
  color: #8a570f;
}

.service-kicker {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
}

.service-card strong {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.service-card small {
  position: relative;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.service-card em,
.back-link {
  position: relative;
  width: fit-content;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-style: normal;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  text-decoration: none;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .portal-shell {
    width: 100%;
    max-width: 100vw;
    align-content: start;
    padding: 22px 18px 28px;
    gap: 24px;
    overflow-x: hidden;
  }

  .portal-logo {
    width: 100%;
    max-width: min(520px, calc(100vw - 36px));
    max-height: 177px;
    object-fit: contain;
  }

  .portal-hero {
    width: 100%;
    gap: 9px;
  }

  h1 {
    max-width: 100%;
    font-size: var(--portal-mobile-title-size);
    overflow-wrap: break-word;
  }

  .portal-hero p:not(.eyebrow) {
    font-size: var(--portal-mobile-description-size);
  }

  .service-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    width: 100%;
    min-height: 205px;
    padding: 24px 88px 24px 24px;
    align-content: center;
    gap: 9px;
  }

  .service-icon {
    top: 22px;
    bottom: auto;
    right: 22px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 25px;
  }

  .service-card strong {
    max-width: calc(100% - 8px);
    font-size: var(--portal-mobile-card-title-size);
  }

  .service-card small {
    font-size: var(--portal-mobile-card-text-size);
  }

  .service-kicker {
    font-size: var(--portal-mobile-kicker-size);
  }

  .service-card em {
    padding: 10px 16px;
    font-size: var(--portal-mobile-button-size);
  }
}
