:root {
  color-scheme: dark;
  --bg: #17060b;
  --bg-2: #2a0a14;
  --paper: #f6efe3;
  --paper-soft: #eadcc7;
  --ink: #18120d;
  --muted: #7a5d64;
  --line: rgba(246, 239, 227, 0.16);
  --brass: #d2a35a;
  --brass-dark: #9d6c31;
  --red: #8f1831;
  --red-bright: #c52d4e;
  --green: #3aa987;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% -20%, rgba(197, 45, 78, 0.22), transparent 34rem),
    linear-gradient(145deg, #100408 0%, var(--bg) 46%, #320b17 100%);
}

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

.page-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(26px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.profile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 12px 0 18px;
  text-align: center;
}

.portrait-wrap {
  position: relative;
  width: min(62vw, 238px);
  aspect-ratio: 1 / 1;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 227, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--paper), var(--brass), var(--red-bright)) border-box;
  box-shadow: var(--shadow);
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 17%;
  border-radius: inherit;
  filter: saturate(1.04) contrast(1.03);
}

.intro {
  display: grid;
  gap: 7px;
  width: 100%;
  max-width: 356px;
}

h1 {
  margin: 0;
  color: #fff8ef;
  font-family: Alegreya, serif;
  font-size: clamp(2.6rem, 10.8vw, 4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.bio {
  margin: 0;
  color: rgba(246, 239, 227, 0.82);
  font-size: clamp(0.8rem, 3.7vw, 0.9rem);
  font-weight: 520;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 2px;
}

.social-link {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  transition: transform 180ms ease, filter 180ms ease;
}

.social-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.06);
  outline: none;
}

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

.feature-card,
.link-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 227, 0.14);
  background: rgba(246, 239, 227, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.feature-card:focus-visible,
.link-row:hover,
.link-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(246, 239, 227, 0.34);
  background: rgba(246, 239, 227, 0.12);
  outline: none;
}

.feature-card {
  display: grid;
  min-height: 224px;
  align-items: end;
  border-radius: var(--radius);
}

.feature-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(23, 18, 13, 0.02) 30%, rgba(23, 18, 13, 0.86) 100%),
    linear-gradient(90deg, rgba(233, 71, 63, 0.18), rgba(44, 159, 128, 0.14));
}

.feature-copy {
  display: grid;
  gap: 2px;
  padding: 18px 58px 18px 18px;
  text-align: left;
}

.feature-copy strong,
.link-row strong {
  display: block;
  color: #fffaf2;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
}

.feature-copy small,
.link-row small {
  display: block;
  color: rgba(246, 239, 227, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.link-row {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 12px;
  border-radius: 18px;
}

.link-row.primary {
  border-color: rgba(210, 163, 90, 0.36);
  background:
    linear-gradient(135deg, rgba(143, 24, 49, 0.36), rgba(246, 239, 227, 0.08)),
    rgba(246, 239, 227, 0.07);
}

.thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 227, 0.18);
  border-radius: 14px;
  color: #fff8ef;
  background:
    linear-gradient(145deg, rgba(197, 45, 78, 0.34), rgba(210, 163, 90, 0.14)),
    rgba(246, 239, 227, 0.08);
}

.thumb svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.thumb-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 950;
}

.footer {
  padding: 24px 4px 0;
  color: rgba(246, 239, 227, 0.52);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (min-width: 720px) {
  body {
    display: grid;
    min-height: 100vh;
    place-items: start center;
    padding: 36px 24px;
  }

  .page-shell {
    min-height: auto;
    border: 1px solid rgba(246, 239, 227, 0.12);
    border-radius: 32px;
    background:
      linear-gradient(180deg, rgba(246, 239, 227, 0.075), rgba(246, 239, 227, 0.035)),
      rgba(23, 6, 11, 0.86);
    box-shadow: var(--shadow);
  }

  .portrait-wrap {
    width: 236px;
  }
}

@media (max-width: 370px) {
  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .portrait-wrap {
    width: 60vw;
  }

  .link-row {
    grid-template-columns: 48px 1fr 30px;
    gap: 10px;
    padding: 9px 10px;
  }

  .thumb {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .arrow {
    width: 30px;
    height: 30px;
  }
}

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