*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0f0b0a;
  --card: #1a1514;
  --text: #ffffff;
  --muted: #cfc9c6;
  --primary: #e6a15b;
  --ring-start: #f7b267;
  --ring-end: #d94f70;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --maxw: 560px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: system-ui, -apple-system, "Inter", "SF Pro Text", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(230, 161, 91, .12), transparent 55%), var(--bg);
  display: flex;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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

.page {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 6vw, 32px);
  min-height: 100vh;
}

.profile {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 4vw, 18px);
}

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

.avatar {
  --size: 144px;
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: block;
  margin-inline: auto;
  isolation: isolate;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--ring-start), var(--ring-end), var(--ring-start));
  z-index: -1;
  filter: saturate(1.1);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2321;
}

h1 {
  font-size: clamp(1.4rem, 3.8vw, 2rem);
  line-height: 1.2;
  margin: .75rem 0 .25rem;
}

.subtitle {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 .5rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.bio {
  color: var(--muted);
  font-size: clamp(.95rem, 2.8vw, 1.05rem);
  margin: 0;
  max-width: 38ch;
}

.links-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.links {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.link-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  outline-offset: 3px;
  min-width: 0;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.link-card:focus-visible {
  outline: 2px solid var(--primary);
}

.link-card:hover {
  transform: translateY(-1px);
}

.link-card:active {
  transform: translateY(0);
}

.icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a2321, #1b1615);
  color: #fff;
}

.icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor !important;
}

.link-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.link-trailing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: flex-end;
}

.link-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
}

.link-sub {
  color: var(--muted);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  background: #3a2b29;
  color: #fff;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.chev {
  color: #fff;
  opacity: .9;
}

.chev svg {
  width: 18px;
  height: 18px;
  display: block;
}

.page-footer {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.page-footer a {
  color: var(--primary);
}

.loading,
.error,
.empty {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .container {
    padding: 24px;
  }
}

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