:root {
  color-scheme: dark;
  --ink: #171016;
  --ink-soft: #241820;
  --card: #2a1b25;
  --card-raised: #34222e;
  --cream: #fff9f2;
  --muted: #c9b8c3;
  --berry: #e4548b;
  --berry-light: #ff81ad;
  --line: rgba(255, 249, 242, 0.18);
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ink); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 13% 4%, rgba(228, 84, 139, 0.16), transparent 25rem),
    radial-gradient(circle at 87% 100%, rgba(139, 69, 103, 0.17), transparent 22rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 18px 48px;
  place-items: center;
}

.link-page {
  width: min(100%, 440px);
  animation: settle 560ms cubic-bezier(.2, .7, .2, 1) both;
}

.profile-header {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
}

.portrait-frame {
  position: relative;
  width: 112px;
  height: 112px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 242, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 249, 242, .88), rgba(228, 84, 139, .38));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 36%;
}

h1 {
  margin: 17px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.22rem, 8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

.destination-list {
  display: grid;
  gap: 14px;
}

.feature-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.feature-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(10, 5, 9, 0) 47%, rgba(10, 5, 9, .86) 100%);
  transition: opacity 180ms ease;
}

.feature-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
}

.feature-overlay {
  position: absolute;
  right: 19px;
  bottom: 17px;
  left: 19px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: .01em;
}

.arrow,
.action-arrow { font-size: 1.25rem; line-height: 1; }

.action-link,
.share-button {
  display: flex;
  width: 100%;
  min-height: 63px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.x-link {
  padding: 0 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.x-link svg,
.share-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.x-link span:nth-child(2) { flex: 1; text-align: center; margin-right: 20px; }

.share-area { margin-top: 16px; text-align: center; }

.share-button {
  justify-content: center;
  padding: 0 22px;
  cursor: pointer;
  background: transparent;
}

.share-status {
  min-height: 1.3em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .79rem;
}

.feature-link:hover .feature-photo,
.feature-link:focus-visible .feature-photo { transform: scale(1.035); }

.feature-link:hover::after,
.feature-link:focus-visible::after { opacity: .78; }

.action-link:hover,
.share-button:hover { border-color: rgba(255, 129, 173, .88); background: var(--card-raised); transform: translateY(-2px); }

.feature-link:focus-visible,
.action-link:focus-visible,
.share-button:focus-visible {
  outline: 3px solid var(--berry-light);
  outline-offset: 4px;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .page-shell { padding-block: 48px 64px; }
  .portrait-frame { width: 126px; height: 126px; }
  .feature-link,
  .feature-photo { min-height: 485px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
