:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --ink: #171717;
  --muted: #5d6670;
  --line: #d8e0e5;
  --card: #ffffff;
  --blue: #0a66c2;
  --green: #087f5b;
  --shadow: 0 24px 70px rgba(28, 22, 14, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(10, 102, 194, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(8, 127, 91, 0.11), transparent 38%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 32px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 0 40px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.profile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 10px;
}

.mark {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 800;
}

p {
  max-width: 26rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: color-mix(in srgb, currentColor 38%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  outline: none;
}

.link-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.linkedin .link-icon {
  background: var(--blue);
}

.motormed .link-icon {
  background: var(--green);
}

.link-card strong,
.link-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.link-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.35;
}

.arrow {
  width: 18px;
  height: 18px;
  justify-self: end;
  opacity: 0.82;
}

.contact {
  min-height: 78px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.58);
}

.contact span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact img {
  display: block;
  width: min(314px, 68%);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 520px);
    padding: 34px 0 28px;
    align-content: start;
  }

  .profile {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }

  .mark {
    width: 84px;
    height: 84px;
  }

  h1 {
    font-size: 3.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .link-card {
    min-height: 78px;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 14px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact img {
    width: min(100%, 314px);
  }
}
