:root {
  color-scheme: dark;
  --ink: #f7efe5;
  --muted: #b4a79b;
  --accent: #d8583d;
  --accent-bright: #ed7559;
  --surface: #1c1613;
  --line: rgba(247, 239, 229, 0.14);
  --background: #100d0b;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(216, 88, 61, 0.18), transparent 43%),
    radial-gradient(circle at 95% 80%, rgba(112, 44, 30, 0.08), transparent 30%),
    var(--background);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

.page-shell {
  width: min(100% - 40px, 620px);
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 24px;
}

.brand-mark {
  width: 148px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--accent-bright);
}

.brand-mark__rule { height: 1px; flex: 1; background: currentColor; opacity: 0.55; }
.brand-mark__monogram { font: italic 700 19px/1 "Playfair Display", Georgia, serif; letter-spacing: -1px; }

.hero {
  width: 100%;
  margin-block: auto;
  padding: 30px 0 38px;
  text-align: center;
}

.avatar {
  position: relative;
  width: 124px;
  aspect-ratio: 1;
  margin: 0 auto 21px;
  overflow: hidden;
  background: #1c2029;
  border: 1px solid rgba(237, 117, 89, 0.56);
  border-radius: 30px;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.42),
    0 0 0 6px rgba(216, 88, 61, 0.06);
  transform: rotate(-1.5deg);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 700 clamp(3.3rem, 13vw, 5.4rem)/0.88 "Playfair Display", Georgia, serif;
  letter-spacing: -0.06em;
}

h1 span { display: block; color: var(--accent-bright); font-style: italic; }

.intro {
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.social-links { display: grid; gap: 9px; text-align: left; }

.social-link {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 18px 10px 13px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(28, 22, 19, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(237, 117, 89, 0.52);
  background: #241b17;
}

.social-link:hover::before,
.social-link:focus-visible::before { transform: scaleY(1); }
.social-link:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

.social-link__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent-bright);
  background: rgba(216, 88, 61, 0.1);
  border-radius: 50%;
}

.social-link__icon svg { width: 19px; height: 19px; fill: currentColor; }
.social-link__text { display: flex; flex-direction: column; gap: 2px; }
.social-link__text small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; }
.social-link__text strong { font-size: 1rem; font-weight: 600; }
.social-link__arrow { color: var(--muted); font-size: 1.2rem; transition: color 180ms ease, transform 180ms ease; }
.social-link:hover .social-link__arrow { color: var(--accent-bright); transform: translate(2px, -2px); }

.back-link { grid-template-columns: 1fr auto; max-width: 280px; margin-inline: auto; }

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #776d65;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.footer-dot { width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }

@media (max-width: 420px) {
  .page-shell { width: min(100% - 28px, 620px); padding-top: 24px; }
  .hero { padding-block: 26px 32px; }
  .avatar { width: 112px; margin-bottom: 19px; border-radius: 24px; }
  footer { flex-wrap: wrap; }
}

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