:root {
  color-scheme: light;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  background: #72c9d3;
  color: #101010;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #72c9d3;
}

a {
  color: inherit;
}

.avatar-page {
  min-height: 100vh;
  color: #101010;
}

.avatar-hero,
.avatar-detail-layout,
.avatar-grid,
.avatar-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.avatar-hero {
  padding: 28px 0 52px;
  color: #ffffff;
}

.avatar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.avatar-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.avatar-eyebrow {
  margin: 76px 0 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avatar-hero h1,
.avatar-detail-copy h1 {
  margin: 0;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(48px, 9vw, 92px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: 0;
}

.avatar-lede,
.avatar-detail-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  padding: 0 0 58px;
}

.avatar-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.08);
}

.avatar-card a {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  background: #f9fcfb;
  text-decoration: none;
}

.avatar-card img,
.avatar-card-mark {
  width: min(168px, 68%);
  pointer-events: none;
  user-select: none;
}

.avatar-card img {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(17, 24, 39, 0.14));
}

.avatar-card-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #101010;
  color: #ffffff;
  font-size: 42px;
  font-weight: 850;
}

.avatar-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.avatar-card div {
  padding: 18px;
}

.avatar-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.avatar-card p {
  margin: 10px 0 0;
  color: #3d4547;
  font-size: 15px;
  line-height: 1.5;
}

.avatar-card-meta {
  font-weight: 800;
}

.avatar-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.18);
  padding: 32px 0 56px;
}

.avatar-footer a,
.avatar-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.86);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
}

.avatar-back-link {
  position: absolute;
  top: 26px;
  left: max(24px, calc((100vw - 1120px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 14px 9px 10px;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.avatar-back-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.avatar-detail-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 92px 0 64px;
}

.avatar-detail-preview {
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  background: #f9fcfb;
  padding: clamp(32px, 7vw, 72px);
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.1);
}

.avatar-detail-preview img,
.avatar-detail-mark {
  width: min(280px, 72vw);
  pointer-events: none;
  user-select: none;
}

.avatar-detail-preview img {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(17, 24, 39, 0.18));
}

.avatar-detail-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #101010;
  color: #ffffff;
  font-size: 72px;
  font-weight: 850;
  box-shadow: 0 18px 22px rgba(17, 24, 39, 0.18);
}

.avatar-detail-preview figcaption {
  max-width: 280px;
  margin-top: 18px;
  color: #5f686b;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.avatar-detail-copy {
  color: #ffffff;
}

.avatar-detail-copy .avatar-eyebrow {
  margin-top: 56px;
}

.avatar-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.avatar-meta-list span {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.avatar-share-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.avatar-share-row {
  height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.avatar-share-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.avatar-share-row button {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(17, 24, 39, 0.12);
  background: #101010;
  color: #ffffff;
  cursor: pointer;
}

.avatar-share-row button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-actions .primary {
  background: #101010;
  color: #ffffff;
}

@media (max-width: 760px) {
  .avatar-hero,
  .avatar-detail-layout,
  .avatar-grid,
  .avatar-footer {
    width: min(100% - 32px, 680px);
  }

  .avatar-detail-layout {
    grid-template-columns: 1fr;
    padding-top: 84px;
  }

  .avatar-back-link {
    left: 16px;
  }
}
