:root {
  --background: #f5f7f8;
  --surface: #ffffff;
  --panel: #111827;
  --text: #172026;
  --muted: #5b6570;
  --accent: #007a78;
  --accent-strong: #0f766e;
  --highlight: #d7a046;
  --button-text: #ffffff;
  --line: rgba(23, 32, 38, 0.12);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(110deg, rgba(0, 122, 120, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(215, 160, 70, 0.12), transparent 30%),
    var(--background);
}

a {
  color: inherit;
}

.bio-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.profile {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 24px;
  align-items: stretch;
}

.identity {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(17, 24, 39, 0.98), rgba(16, 35, 40, 0.94)),
    var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-mark {
  position: absolute;
  top: 32px;
  left: 36px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--highlight);
  border-radius: 50%;
  display: inline-flex;
  box-shadow: 0 0 0 5px rgba(215, 160, 70, 0.12);
}

.identity::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
}

.identity > * {
  position: relative;
  z-index: 1;
}

.identity > .status-mark {
  position: absolute;
  z-index: 2;
}

.portrait-wrap {
  width: min(54vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity-main {
  display: grid;
  gap: 24px;
}

.identity h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.headline {
  margin: 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.55;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.summary {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.scroll-cue {
  display: none;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.scroll-cue svg {
  width: 32px;
  height: 32px;
}

.links-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-head {
  padding: 8px 8px 0;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.link-list {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
  outline: none;
}

.link-icon {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--button-text);
  background:
    linear-gradient(145deg, var(--accent), var(--accent-strong));
}

.link-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.link-text {
  min-width: 0;
}

.link-title {
  display: block;
  margin-bottom: 3px;
  font-weight: 750;
  letter-spacing: 0;
}

.link-description {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow-icon {
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.state-message {
  width: min(100%, 520px);
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}

@media (max-width: 860px) {
  .bio-shell {
    place-items: start center;
    padding: 18px 12px;
  }

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

  .identity {
    min-height: calc(100svh - 36px);
    padding: 28px 22px;
    justify-content: space-between;
  }

  .status-mark {
    top: 26px;
    left: 28px;
  }

  .portrait-wrap {
    width: min(48vw, 176px);
  }

  .identity h1 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  .scroll-cue {
    display: grid;
    place-items: center;
    align-self: center;
    margin-bottom: -6px;
  }

  .links-panel {
    padding: 12px;
  }
}

@media (max-width: 430px) {
  .contact-link {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    min-height: 72px;
    padding: 12px;
  }

  .link-icon {
    width: 44px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
