:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111318;
  color: #f4f7fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 0 0, rgb(70 118 158 / 16%), transparent 34rem),
    radial-gradient(circle at 100% 17%, rgb(83 67 151 / 13%), transparent 30rem),
    #111318;
}

.dashboard-shell {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0 4rem;
}

.masthead {
  max-width: 42rem;
  margin-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.55rem;
  color: #9aabc4;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.3rem;
  font-size: clamp(2.45rem, 7vw, 5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.lede {
  margin-bottom: 0;
  color: #c5cfdb;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.service-groups {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.035em;
}

.section-kicker {
  margin: 0;
  color: #778aa5;
  text-align: right;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.85rem;
}

.service-card {
  --accent: #83b4ff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  min-height: 9.25rem;
  padding: 1.05rem;
  border: 1px solid #2b323e;
  border-radius: 1rem;
  background: linear-gradient(145deg, #1d222b 0%, #171b22 100%);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, #2b323e);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 20%);
  transform: translateY(-0.18rem);
}

.service-card:focus-visible {
  outline: 0.2rem solid #f4f7fb;
  outline-offset: 0.2rem;
  border-color: var(--accent);
}

.service-card--media {
  --accent: #76b6ff;
}

.service-card--storage {
  --accent: #66d3a0;
}

.service-card--admin {
  --accent: #d8a1ff;
}
.service-card--trip {
  --accent: #ffb066;
}

.icon-frame {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.service-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.service-card__name {
  font-size: 1.02rem;
  font-weight: 720;
  line-height: 1.35;
}

.service-card__description {
  width: 100%;
  margin-top: 0.34rem;
  overflow: hidden;
  color: #bdc7d4;
  font-size: 0.88rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-badge {
  margin-top: auto;
  padding: 0.26rem 0.48rem;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.access-badge--public {
  color: #91c8ff;
}

.access-badge--private {
  color: #d8b0f7;
}

.system-overview {
  margin-top: clamp(4.5rem, 10vw, 8rem);
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border: 1px solid #2b323e;
  border-radius: 1rem;
  background: rgb(23 27 34 / 72%);
}

.section-heading--overview {
  margin-bottom: 0.65rem;
}

.system-overview p:last-child {
  max-width: 40rem;
  margin-bottom: 0;
  color: #bdc7d4;
  line-height: 1.65;
}

noscript {
  display: block;
  width: min(100% - 2rem, 76rem);
  margin: 0 auto 2rem;
  color: #f9c785;
}

@media (max-width: 32rem) {
  .dashboard-shell {
    width: min(100% - 1.25rem, 76rem);
    padding-top: 2.5rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .section-kicker {
    text-align: left;
  }

  .service-card {
    min-height: 8.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
