:root {
  --paper: #f7f5ef;
  --paper-warm: #ebe6dd;
  --ink: #0d0c0c;
  --ink-soft: #2e2a28;
  --muted: #6f6962;
  --line: rgba(13, 12, 12, 0.12);
  --gold: #c79a6b;
  --purple: #c700ff;
  --green: #89a400;
  --white: #fffaf2;
  --shadow: 0 24px 70px rgba(13, 12, 12, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(199, 154, 107, 0.12), transparent 24rem),
    linear-gradient(135deg, #fdfbf6 0%, var(--paper) 44%, #ece7df 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.24;
  background-image:
    radial-gradient(rgba(13, 12, 12, 0.26) 0.7px, transparent 0.7px),
    radial-gradient(rgba(13, 12, 12, 0.12) 0.6px, transparent 0.6px);
  background-position:
    0 0,
    11px 9px;
  background-size:
    22px 22px,
    28px 28px;
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.page-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 0;
}

.bio-card {
  position: relative;
  width: min(100%, 460px);
  min-height: 100dvh;
  overflow: hidden;
  background: rgba(247, 245, 239, 0.94);
  border-inline: 1px solid rgba(13, 12, 12, 0.06);
}

.top-bar {
  height: 142px;
  background: var(--ink);
}

.profile {
  position: relative;
  padding: 0 28px 8px;
  text-align: center;
}

.avatar-ring {
  position: relative;
  width: 152px;
  height: 152px;
  margin: -76px auto 18px;
  padding: 8px;
  border: 1px solid rgba(13, 12, 12, 0.95);
  border-radius: 50%;
  background: var(--paper);
}

.avatar-ring::after {
  position: absolute;
  inset: -12px;
  content: "";
  border: 1px solid rgba(13, 12, 12, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.identity {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: Didot, "Bodoni 72", "Times New Roman", Georgia, serif;
  font-size: 3.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.tagline {
  max-width: 320px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.38;
}

.tagline strong {
  color: var(--ink);
  font-weight: 800;
  font-style: italic;
}

.links-list {
  display: grid;
  gap: 14px;
  padding: 26px 28px 18px;
}

.link-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 108px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--ink);
  border: 1px solid rgba(255, 250, 242, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(13, 12, 12, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(255, 250, 242, 0.22);
  box-shadow: 0 18px 42px rgba(13, 12, 12, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.link-card::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  content: "";
  background: var(--accent, var(--gold));
  border-radius: 0 8px 8px 0;
}

.link-content {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 16px;
  align-items: center;
  padding: 20px 18px 20px 24px;
}

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

.link-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--accent, var(--gold));
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.link-title {
  display: block;
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.link-description {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.86rem;
  line-height: 1.32;
}

.link-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 50%;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.banner-card {
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
}

.banner-card::before {
  display: none;
}

.banner-media {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.banner-card .link-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, transparent 56%, rgba(0, 0, 0, 0.28));
}

.banner-card .link-arrow {
  width: 38px;
  height: 38px;
  background: rgba(13, 12, 12, 0.66);
  border-color: rgba(255, 250, 242, 0.26);
  backdrop-filter: blur(10px);
}

.banner-card:hover .link-arrow,
.banner-card:focus-visible .link-arrow {
  background: rgba(13, 12, 12, 0.86);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 28px 28px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  border-top: 1px solid rgba(13, 12, 12, 0.08);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(320px, calc(100vw - 36px));
  padding: 13px 15px;
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.3;
  background: rgba(13, 12, 12, 0.92);
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (min-width: 720px) {
  .page-shell {
    padding: 34px;
  }

  .bio-card {
    min-height: 880px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 380px) {
  .top-bar {
    height: 132px;
    padding-inline: 22px;
  }

  .profile,
  .links-list,
  .footer {
    padding-inline: 20px;
  }

  .avatar-ring {
    width: 138px;
    height: 138px;
    margin-top: -69px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .link-content {
    grid-template-columns: 1fr 30px;
    gap: 12px;
    padding-inline: 20px 14px;
  }

  .footer {
    display: grid;
  }
}
