:root {
  --wine-950: #3a0613;
  --wine-900: #4a0818;
  --wine-800: #5c0a1f;
  --wine-700: #741230;
  --wine-500: #a32246;
  --rose: #f4e4e7;
  --rose-dim: #d9b9c0;
  --line: rgba(244, 228, 231, 0.18);
}

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

html { color-scheme: dark; }

body {
  min-height: 100vh;
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--rose);
  background:
    radial-gradient(900px 500px at 50% -10%, var(--wine-700), transparent 70%),
    var(--wine-800);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 20px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Hero ---------- */
.hero { text-align: center; }

.avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
}
.avatar .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--wine-800);
  font-weight: 800;
  font-size: 46px;
  z-index: 2;
}
.avatar .ear {
  position: absolute;
  top: -10px;
  width: 38px;
  height: 38px;
  background: var(--rose);
  z-index: 1;
}
.avatar .ear-l { left: 6px;  clip-path: polygon(0 100%, 12% 0, 100% 70%); }
.avatar .ear-r { right: 6px; clip-path: polygon(100% 100%, 88% 0, 0 70%); }

h1 {
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.handle {
  margin-top: 8px;
  color: var(--rose-dim);
  font-size: 1rem;
}

/* ---------- Timeline (the one memorable thing) ---------- */
.timeline {
  position: relative;
  height: 28px;
  margin: 36px 0 12px;
}
.ruler {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 12px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(to right, var(--rose-dim) 0 1px, transparent 1px 60px) bottom / 100% 16px no-repeat;
  border-bottom: 1px solid var(--line);
}
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--rose);
  transition: transform 0.25s ease;
  will-change: transform;
}
.playhead::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -5px;
  width: 12px;
  height: 10px;
  background: var(--rose);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--wine-900);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.clip:hover { background: var(--wine-950); border-color: var(--rose-dim); }
.clip:focus-visible,
.fav:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.clip-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--rose);
  color: var(--wine-800);
}
.clip-icon svg { width: 22px; height: 22px; fill: currentColor; }

.clip-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.clip-label { font-weight: 600; font-size: 1.05rem; }
.clip-detail {
  color: var(--rose-dim);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip-go { flex: none; width: 20px; height: 20px; color: var(--rose-dim); }
.clip-go svg { width: 100%; height: 100%; }

/* ---------- Blocks ---------- */
.block { margin-top: 36px; }
.block h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose-dim);
  margin-bottom: 12px;
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rose-dim);
  font-weight: 600;
}

.fav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--rose);
  color: var(--wine-800);
  text-decoration: none;
  transition: background 0.18s ease;
}
.fav:hover { background: #fff; }
.fav-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.fav-detail { font-size: 0.88rem; opacity: 0.75; }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--rose-dim);
  opacity: 0.7;
}
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .playhead { transition: none; }
}
