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

:root {
  color-scheme: dark;
  --bg: #09090b;
  --card-bg: #101012;
  --card-hover: #161619;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.18);
  --icon-bg: #17171a;
  --icon-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
}

html,
body {
  background-color: var(--bg);
  color: #f4f4f5;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-shell {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

.top-glow {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background: radial-gradient(
    ellipse 65% 55% at 50% 0%,
    rgba(255, 255, 255, 0.065),
    transparent 72%
  );
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .container {
    padding: 80px 20px 48px;
  }
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  animation: fadeUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-box {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: #f4f4f5;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-monogram {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0a0a0c;
  line-height: 1;
}

.profile-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-top: 20px;
  line-height: 1.15;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .profile-name {
    font-size: 36px;
  }
}

.profile-kicker {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--text-muted);
  margin-top: 6px;
}

.profile-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 448px;
  line-height: 1.6;
}

.links-list {
  width: 100%;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  animation: fadeUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 640px) {
  .link-card {
    padding: 16px 20px;
  }
}

.link-card:hover {
  background: var(--card-hover);
  border-color: var(--card-border-hover);
}

.link-card:active {
  transform: scale(0.995);
}

.link-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.link-icon-tile {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-card:hover .link-icon-tile {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.link-icon-tile svg {
  width: 21px;
  height: 21px;
}

.link-icon-tile img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.link-text {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.link-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: color 0.15s ease, transform 0.15s ease;
}

.link-card:hover .link-arrow {
  color: #f4f4f5;
  transform: translate(2px, -2px);
}

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  text-align: center;
}

.footer-text {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--text-subtle);
}

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

@media (prefers-reduced-motion: reduce) {
  .identity,
  .link-card {
    animation: none !important;
    transition: none !important;
  }
}
