:root {
  --amber: #f0bd68;
  --rose: #d46c69;
  --mint: #79c6a3;
  --blue: #7aa2d8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #111314;
  --page-soft: #191d1f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --ink: #f7f3eb;
  --muted: #b7b1a6;
  --faint: #817b72;
  --line: rgba(255, 255, 255, 0.14);
  --grid-line: rgba(255, 255, 255, 0.035);
  --body-bg:
    linear-gradient(132deg, rgba(121, 198, 163, 0.24) 0%, transparent 34%),
    linear-gradient(28deg, rgba(212, 108, 105, 0.22) 0%, transparent 32%),
    linear-gradient(112deg, transparent 24%, rgba(240, 189, 104, 0.12) 46%, transparent 68%),
    conic-gradient(
      from 218deg at 50% 10%,
      rgba(122, 162, 216, 0.18),
      rgba(121, 198, 163, 0.18),
      rgba(240, 189, 104, 0.12),
      rgba(212, 108, 105, 0.18),
      rgba(122, 162, 216, 0.18)
    ),
    linear-gradient(180deg, #0c0f0f 0%, #15191a 46%, #201719 100%);
  --profile-overlay: linear-gradient(
    180deg,
    transparent 0%,
    rgba(17, 19, 20, 0.26) 54%,
    rgba(17, 19, 20, 0.92) 100%
  );
  --icon-bg: rgba(255, 255, 255, 0.14);
  --icon-bg-hover: rgba(255, 255, 255, 0.24);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--body-bg);
  position: relative;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 76%);
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  pointer-events: none;
}

a,
button {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bio-shell {
  width: min(440px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0 24px;
  display: grid;
  align-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.profile,
.spotlight,
.bio-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.profile {
  min-height: 330px;
  padding: 24px;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  position: relative;
}

.profile::before {
  position: absolute;
  inset: 0;
  background:
    var(--profile-overlay),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='720' viewBox='0 0 900 720'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%2379c6a3'/%3E%3Cstop offset='.5' stop-color='%23f0bd68'/%3E%3Cstop offset='1' stop-color='%23d46c69'/%3E%3C/linearGradient%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .28'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/defs%3E%3Crect width='900' height='720' fill='%231a1d1f'/%3E%3Cpath d='M94 553C203 315 279 175 452 154c151-18 266 78 355 12L900 132V720H0V604c30-10 61-26 94-51Z' fill='url(%23g)' opacity='.82'/%3E%3Ccircle cx='674' cy='172' r='118' fill='%23f7f3eb' opacity='.15'/%3E%3Ccircle cx='190' cy='242' r='80' fill='%237aa2d8' opacity='.24'/%3E%3Crect width='900' height='720' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  content: "";
}

.portrait-wrap,
.profile-copy,
.quick-actions {
  position: relative;
  z-index: 1;
}

.portrait-wrap {
  align-self: start;
}

.portrait {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.profile-copy {
  display: grid;
  gap: 8px;
}

.eyebrow,
.spotlight div > span {
  margin: 0;
  color: rgba(247, 243, 235, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(2.85rem, 14vw, 4.75rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.intro {
  max-width: 30rem;
  color: rgba(247, 243, 235, 0.84);
  font-size: 1rem;
  line-height: 1.48;
}

.quick-actions {
  display: flex;
  gap: 10px;
}

.icon-link {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #f7f3eb;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    var(--icon-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.24);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: #111314;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(240, 189, 104, 0.92)),
    var(--amber);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 16px 34px rgba(0, 0, 0, 0.32);
  outline: 0;
  transform: translateY(-2px);
}

.spotlight {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.spotlight div {
  display: grid;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.spotlight h2 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.spotlight p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.spotlight a {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #101112;
  background: var(--amber);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 12px 24px rgba(0, 0, 0, 0.18);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.spotlight a:hover,
.spotlight a:focus-visible {
  background: #ffd27d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 16px 30px rgba(0, 0, 0, 0.26);
  outline: 0;
  transform: translateY(-2px);
}

.spotlight a svg,
.bio-link > svg {
  transition: transform 0.2s ease;
}

.spotlight a:hover svg,
.spotlight a:focus-visible svg {
  transform: translate(2px, -2px);
}

.link-list {
  display: grid;
  gap: 10px;
  position: relative;
}

.link-list::before {
  position: absolute;
  inset: -30px -24px -38px;
  z-index: -1;
  background:
    linear-gradient(150deg, rgba(121, 198, 163, 0.18), transparent 44%),
    linear-gradient(24deg, rgba(240, 189, 104, 0.2), rgba(212, 108, 105, 0.13) 48%, transparent 74%);
  filter: blur(22px);
  opacity: 0.88;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
  pointer-events: none;
}

.bio-link {
  min-height: 78px;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.bio-link:hover,
.bio-link:focus-visible {
  border-color: rgba(240, 189, 104, 0.58);
  background: var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.3);
  outline: 0;
  transform: translateY(-2px);
}

.bio-link:hover > svg,
.bio-link:focus-visible > svg {
  transform: translateX(3px);
}

.bio-link.primary {
  background: rgba(240, 189, 104, 0.12);
}

.mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #111314;
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.bio-link:nth-child(2) .mark {
  background: var(--amber);
}

.bio-link:nth-child(3) .mark {
  background: var(--rose);
}

.bio-link:nth-child(4) .mark {
  background: var(--blue);
}

.bio-link span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bio-link strong {
  font-size: 1rem;
  line-height: 1.1;
}

.bio-link small {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.3;
}

.bio-link > svg {
  color: var(--faint);
}

.bio-footer {
  min-height: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--faint);
  font-size: 0.78rem;
}

#copy-feedback:not(:empty) {
  color: var(--mint);
}

@media (max-width: 390px) {
  .bio-shell {
    width: min(100% - 24px, 440px);
    padding-block: 18px;
  }

  .profile {
    min-height: 300px;
    padding: 20px;
  }

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

  .spotlight a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
