:root {
  --bg: #2b3529;
  --bg-soft: #354130;
  --surface: #f8fef8;
  --surface-2: #ecf5ea;
  --ink: #111811;
  --muted: #5d6b5c;
  --accent: #275e29;
  --accent-2: #d9b45f;
  --line: rgba(17, 24, 17, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 180, 95, 0.24), transparent 28rem),
    linear-gradient(145deg, var(--bg), #172016);
}

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

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.profile {
  width: min(100%, 430px);
  max-height: calc(100svh - 24px);
  display: grid;
  gap: clamp(8px, 1.6svh, 14px);
  padding: clamp(14px, 3svh, 22px);
  border: 1px solid rgba(248, 254, 248, 0.18);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: auto;
  scrollbar-width: thin;
}

.profile__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar {
  width: clamp(78px, 22vw, 112px);
  height: clamp(78px, 22vw, 112px);
  border-radius: 50%;
  border: 4px solid var(--accent-2);
  background: var(--surface-2);
  box-shadow: 0 10px 24px rgba(39, 94, 41, 0.2);
}

.identity {
  min-width: 0;
}

.place,
.role,
.bio,
.quick__item small {
  margin: 0;
  color: var(--muted);
}

.place {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 1px 0 2px;
  font-size: clamp(2.15rem, 11vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.role {
  font-size: clamp(0.94rem, 3.8vw, 1.08rem);
  font-weight: 750;
  color: var(--accent);
}

.bio {
  font-size: clamp(0.88rem, 3.6vw, 1rem);
  line-height: 1.28;
}

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

.quick__item {
  min-height: clamp(52px, 10.6svh, 68px);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.quick__item:hover,
.quick__item:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  outline: none;
}

.quick__item:hover small,
.quick__item:focus-visible small {
  color: rgba(255, 255, 255, 0.72);
}

.quick__item span {
  grid-column: 2;
  font-weight: 850;
  font-size: clamp(0.9rem, 3.5vw, 1.02rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.quick__item small {
  grid-column: 2;
  font-size: 0.75rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
}

.brand-icon {
  color: #0a66c2;
}

.imdb-icon {
  color: #1f2420;
}

@media (max-height: 690px) {
  .profile {
    gap: 9px;
    padding: 14px;
    border-radius: 20px;
  }

  .avatar {
    width: 72px;
    height: 72px;
    border-width: 3px;
  }

  .bio {
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .quick__item {
    min-height: 47px;
    border-radius: 12px;
    padding: 7px 9px;
    column-gap: 7px;
  }

  .quick__item span {
    font-size: 0.84rem;
  }

  .quick__item small {
    font-size: 0.68rem;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

}

@media (min-width: 760px) {
  .profile {
    width: min(92vw, 760px);
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }

  .profile__top,
  .bio {
    grid-column: 1;
  }

  .quick {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
