:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #68746f;
  --paper: #f6f0e6;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #fffaf2;
  --line: rgba(22, 32, 29, 0.12);
  --sage: #75846e;
  --teal: #166d70;
  --coral: #d96f52;
  --gold: #d59b45;
  --shadow: 0 24px 70px rgba(27, 37, 32, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(217, 111, 82, 0.22), transparent 28rem),
    linear-gradient(145deg, rgba(22, 109, 112, 0.16), transparent 42%),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(22, 32, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 29, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.profile {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 24px 18px 22px;
  text-align: center;
}

.profile-media {
  width: clamp(110px, 28vw, 156px);
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    linear-gradient(135deg, var(--coral), var(--gold), var(--teal)) border-box;
  box-shadow: 0 18px 40px rgba(22, 32, 29, 0.16);
}

.profile-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 11vw, 2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.bio {
  max-width: 39rem;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.socials {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.socials a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.68);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.socials svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials svg path[d="m10 9 5 3-5 3Z"] {
  fill: currentColor;
}

.socials a:hover,
.socials a:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.accordion summary:hover {
  border-color: rgba(22, 109, 112, 0.38);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.link-stack {
  display: grid;
  gap: 12px;
}

.accordion-group,
.quick-links {
  display: grid;
  gap: 12px;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(27, 37, 32, 0.08);
  overflow: clip;
}

.accordion summary {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.accordion[open] summary::after {
  transform: translateY(4px) rotate(225deg);
}

.accordion strong,
.link-main {
  display: block;
  font-weight: 800;
}

.accordion small,
.link-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.accordion-panel {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.link-card {
  position: relative;
  display: block;
  min-height: 68px;
  padding: 15px 48px 15px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 10px 24px rgba(27, 37, 32, 0.06);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.link-card::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--coral);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.link-card:hover,
.link-card:focus-visible {
  box-shadow: 0 18px 34px rgba(27, 37, 32, 0.11);
  outline: none;
}

.featured {
  background:
    linear-gradient(90deg, rgba(22, 109, 112, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

@media (max-width: 520px) {
  .page-shell {
    padding-inline: 12px;
  }

  .profile {
    padding-inline: 8px;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .socials a:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 220px);
  }

  .accordion summary,
  .link-card {
    padding-left: 14px;
  }
}
