:root {
  --paper: #eef7fc;
  --ink: #132235;
  --muted: #5d7189;
  --line: rgba(35, 78, 122, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --teal: #0d8aa4;
  --blue: #2368b8;
  --indigo: #4357c8;
  --shadow: 0 24px 70px rgba(38, 92, 150, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(145deg, rgba(63, 133, 202, 0.18), transparent 30rem),
    linear-gradient(300deg, rgba(14, 165, 180, 0.16), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 247, 252, 0.72) 46%, #e7f2fa),
    var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 250px;
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
}

.profile-media {
  position: relative;
  width: 160px;
  height: 160px;
}

.profile-media::before {
  position: absolute;
  inset: -10px;
  content: "";
  border: 1px solid rgba(35, 104, 184, 0.32);
  transform: rotate(-5deg);
}

.profile-photo {
  position: relative;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid rgba(35, 78, 122, 0.18);
  box-shadow: var(--shadow);
}

.domain {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.bio {
  max-width: 700px;
  margin-bottom: 16px;
  color: #344b63;
  font-size: 1.12rem;
  line-height: 1.65;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  color: #12263d;
  font-weight: 750;
  text-decoration: none;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.social-links .social-icon-link {
  width: 42px;
  height: 42px;
  padding: 0;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links a:hover {
  border-color: rgba(35, 104, 184, 0.44);
  box-shadow: 0 14px 34px rgba(38, 92, 150, 0.14);
  transform: translateY(-1px);
}

.social-links a:focus-visible {
  outline: 3px solid rgba(13, 138, 164, 0.24);
  outline-offset: 3px;
}

.directory {
  padding-top: 30px;
}

.groups {
  display: grid;
  gap: 34px;
}

.group-section {
  display: grid;
  gap: 16px;
}

h3 {
  margin-bottom: 5px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.group-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  display: grid;
  min-height: 166px;
  padding: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(38, 92, 150, 0.1);
  backdrop-filter: blur(16px);
}

.app-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
}

.app-card-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.app-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
}

h4 {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
  font-size: 1.22rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.app-title {
  text-decoration: none;
}

.app-title:hover {
  color: var(--blue);
}

.app-description {
  display: -webkit-box;
  min-height: 3.9em;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 920px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile {
    gap: 22px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .profile {
    min-height: auto;
    padding-bottom: 28px;
  }

  .profile-media,
  .profile-photo {
    width: 118px;
    height: 118px;
  }

  .bio {
    font-size: 1rem;
  }

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

  .app-card {
    min-height: 154px;
  }
}
