:root {
  color-scheme: dark;
  --bg: #10110f;
  --surface: #171916;
  --text: #f0f0eb;
  --muted: #858980;
  --faint: #555a52;
  --line: #2a2d28;
  --accent: #d5e0b7;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.page-shell {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  text-decoration: none;
}
.wordmark span, .name-period { color: var(--accent); }
.topbar-label, .topbar-index, .eyebrow, .section-count, .footer {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .11em;
}
.topbar-label { color: #b6bab0; }
.topbar-index { color: var(--faint); }

.intro { padding: 76px 0 60px; }
.profile-row { display: flex; align-items: center; gap: 25px; }
.avatar {
  display: block;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #3b4037;
  background: var(--surface);
}
.identity { min-width: 0; }
.eyebrow { color: var(--muted); margin: 0 0 6px; }
h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1.05;
  letter-spacing: -.065em;
  font-weight: 700;
}
.subtitle { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.intro-copy {
  max-width: 490px;
  margin: 31px 0 0;
  color: #c4c8be;
  font-size: 15px;
  line-height: 1.85;
}

.section { padding: 27px 0 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 21px; }
.section-heading h2 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.section-count { color: var(--faint); white-space: nowrap; }
.social-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.social-link {
  min-height: 65px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.social-link:hover { border-color: #62695b; background: #141611; }
.social-link.is-unset { opacity: .56; cursor: default; }
.social-link.is-unset:hover { border-color: var(--line); background: transparent; }
.social-link svg { width: 19px; height: 19px; grid-row: 1 / 3; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social-link:has(svg path[d^="M19.7"] ) svg { fill: currentColor; stroke: none; }
.social-name { align-self: end; font-size: 12px; font-weight: 600; }
.social-handle { align-self: start; margin-top: 2px; color: var(--muted); font-size: 10px; }
.social-arrow { grid-column: 3; grid-row: 1 / 3; color: var(--faint); font-size: 14px; }
.hint { margin: 12px 0 0; color: var(--faint); font-size: 11px; line-height: 1.7; }
.hint code { color: #b9c3a2; font-family: var(--mono); font-size: 10px; }

.type-line {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5d9ce;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}
.prompt-mark { color: var(--accent); }
.caret { width: 7px; height: 17px; background: var(--accent); opacity: .8; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.player {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.play-button, .upload-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #41463c;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
}
.play-button { cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.play-button:not(:disabled):hover { background: #22271d; border-color: var(--accent); }
.play-button:disabled { opacity: .3; cursor: not-allowed; }
.play-button svg { width: 18px; height: 18px; }
.pause-icon { display: none; }
.is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.track-info { min-width: 0; }
.track-title { overflow: hidden; color: #e6e8e0; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.track-subtitle { margin-top: 3px; color: var(--muted); font-size: 10px; }
.progress-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--faint); font-family: var(--mono); font-size: 9px; }
.progress { width: 100%; min-width: 30px; height: 2px; margin: 0; appearance: none; background: #41453d; cursor: pointer; }
.progress:disabled { cursor: default; opacity: .45; }
.progress::-webkit-slider-thumb { width: 8px; height: 8px; appearance: none; border-radius: 50%; background: var(--accent); }
.progress::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent); }
.upload-button { width: 34px; height: 34px; cursor: pointer; color: var(--muted); transition: color .18s ease, border-color .18s ease; }
.upload-button:hover { color: var(--text); border-color: var(--accent); }
.upload-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}
.footer a { color: #a8ada1; text-decoration: none; }
.footer a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 560px) {
  .page-shell { width: min(100% - 36px, 720px); }
  .topbar { height: 65px; }
  .topbar-label { font-size: 9px; }
  .topbar-index { font-size: 8px; }
  .intro { padding: 58px 0 46px; }
  .profile-row { gap: 17px; }
  .avatar { width: 82px; height: 82px; flex-basis: 82px; }
  .subtitle { font-size: 11px; }
  .intro-copy { margin-top: 25px; font-size: 13px; }
  .social-list { grid-template-columns: 1fr; gap: 8px; }
  .social-link { min-height: 58px; }
  .section { padding: 23px 0 25px; }
  .player { grid-template-columns: 38px minmax(0, 1fr) 34px; gap: 10px; padding: 12px; }
  .footer { flex-wrap: wrap; padding: 20px 0; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
