:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #0b0d10;
  color: #f4f6f8;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #0b0d10;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0b0d10;
  background-size: 48px 48px;
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 72px 0 48px;
}

.portal {
  width: 100%;
}

.portal-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a9b0b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: 4.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  margin: 16px 0 0;
  color: #a9b0b8;
  font-size: 1rem;
  line-height: 1.7;
}

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

.service-card {
  min-height: 240px;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  color: #f4f6f8;
  text-decoration: none;
  background: #15191e;
  border: 1px solid #30363d;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease,
    background-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: #1a1f25;
  border-color: #66707b;
}

.service-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.service-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f4f6f8;
  overflow: hidden;
}

.service-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-copy {
  display: grid;
  align-content: end;
  gap: 8px;
}

.service-copy strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.service-copy span {
  color: #a9b0b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #30363d;
  color: #f4f6f8;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  padding: 24px 20px;
  color: #737b85;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    padding: 48px 0 32px;
  }

  .portal-header {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 210px;
    padding: 24px;
  }
}

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

  .service-card:hover {
    transform: none;
  }
}
