:root,
.theme-light.palette-blue-note,
.theme-system.palette-blue-note {
  --page: #eef2ff;
  --surface: #ffffff;
  --surface-alt: #e2e8ff;
  --text: #171a2b;
  --text-soft: #596078;
  --border: #c8d0ee;
  --accent: #3457d5;
  --accent-contrast: #ffffff;
  --shadow: 0 24px 70px rgba(36, 55, 116, 0.13);
}

.theme-dark.palette-blue-note {
  --page: #121526;
  --surface: #1b2036;
  --surface-alt: #252c49;
  --text: #f7f8ff;
  --text-soft: #bbc3df;
  --border: #3d476c;
  --accent: #91a7ff;
  --accent-contrast: #11172d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
  .theme-system.palette-blue-note {
    --page: #121526;
    --surface: #1b2036;
    --surface-alt: #252c49;
    --text: #f7f8ff;
    --text-soft: #bbc3df;
    --border: #3d476c;
    --accent: #91a7ff;
    --accent-contrast: #11172d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 32rem),
    var(--page);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.profile-shell {
  width: min(100% - 2rem, 42rem);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  display: grid;
  align-content: center;
  gap: 2rem;
}

.profile {
  text-align: center;
}

.portrait {
  display: block;
  width: clamp(7rem, 24vw, 10rem);
  height: clamp(7rem, 24vw, 10rem);
  margin: 0 auto 1.5rem;
  border: 0.38rem solid var(--surface);
  border-radius: 50%;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
  object-fit: cover;
}

h1 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.bio {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.link-list {
  display: grid;
  gap: 0.75rem;
}

.profile-link {
  min-height: 4.75rem;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.profile-link:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 15%, transparent);
  transform: translateY(-2px);
}

.profile-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.icon-frame {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--surface-alt);
  color: var(--accent);
}

.link-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.arrow {
  justify-self: end;
  color: var(--text-soft);
  font-size: 1.25rem;
}

@media (max-width: 420px) {
  .profile-shell {
    width: min(100% - 1.25rem, 42rem);
    padding-block: 2.25rem;
  }

  .profile-link {
    min-height: 4.25rem;
    padding: 0.65rem 0.75rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
    gap: 0.7rem;
    border-radius: 0.85rem;
  }

  .icon-frame {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-link {
    transition: none;
  }
}