:root {
  color-scheme: dark;
  --black: #050505;
  --surface: #111111;
  --surface-hover: #191919;
  --white: #f7f4ed;
  --muted: #a7a39b;
  --gold: #f2b84b;
  --gold-soft: #c89032;
  --line: rgba(242, 184, 75, 0.26);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 184, 75, 0.13), transparent 34rem),
    var(--black);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.08;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.profile {
  width: min(100% - 32px, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 84px) 0 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.identity {
  text-align: center;
}

.brand-mark {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  line-height: 1;
}

.identity p {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.handle {
  display: inline-block;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.11em;
}

.links {
  display: grid;
  gap: 12px;
  margin: 36px 0 20px;
}

.link-button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.92);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-button.featured {
  color: #090909;
  border-color: var(--gold);
  background: linear-gradient(135deg, #ffd578, var(--gold));
}

.link-button:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 184, 75, 0.7);
  background: var(--surface-hover);
}

.link-button.featured:hover {
  background: linear-gradient(135deg, #ffe09a, #ffc14d);
}

.link-button:focus-visible,
.favorite-button:focus-visible,
.toast-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.icon,
.icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.icon svg {
  fill: currentColor;
}

.arrow {
  justify-self: end;
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.72;
}

.favorite-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.favorite-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.favorite-button svg {
  width: 20px;
  height: 20px;
}

footer {
  margin-top: auto;
  padding-top: 40px;
  color: #6f6c66;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(calc(100% - 32px), 440px);
  padding: 18px 50px 18px 20px;
  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 18px;
  color: var(--white);
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
}

.toast p {
  margin: 0;
  color: #c6c2ba;
  font-size: 0.9rem;
  line-height: 1.5;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 420px) {
  .profile {
    width: min(100% - 24px, 560px);
    padding-top: 32px;
  }

  .brand-mark {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 21px;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .identity p {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  .links {
    margin-top: 28px;
  }
}

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