/* Terminal Noir (dark): https://github.com/nandomoreirame/terminalnoir */
:root {
  --background: #0b0b0c;
  --surface: #121214;
  --elevated: #18181b;
  --hairline: #222226;
  --border: #6b6b74;
  --foreground: #f4f4f5;
  --muted: #a1a1aa;
  --primary: #f5a623;
  --success: #34d399;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@property --gx { syntax: "<length>"; inherits: true; initial-value: -9999px; }
@property --gy { syntax: "<length>"; inherits: true; initial-value: -9999px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--mono);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Decorative dot grid. The amber copy shows only near the cursor, through a
   mask the script positions; the neutral copy is always there. */
[data-pointer-field] { position: relative; isolation: isolate; }

[data-pointer-field]::before,
[data-pointer-field]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in oklch, var(--hairline) 50%, transparent) 1px, transparent 1.5px);
  background-size: 1rem 1rem;
}

[data-pointer-field]::after {
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1.5px);
  mask-image: radial-gradient(circle 7rem at var(--gx) var(--gy), black, transparent);
  opacity: 0;
}

[data-pointer-field][data-active]::after { opacity: 1; }

main {
  width: min(100% - 32px, 480px);
  margin-inline: auto;
  padding-block: 48px 32px;
}

.profile { text-align: center; margin-bottom: 32px; }

.avatar {
  display: block;
  margin: 0 auto 16px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--elevated);
}

h1 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.3; }

.bio { margin: 0; color: var(--muted); font-size: 0.9375rem; }

ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.link .label::before { content: "$ "; color: var(--primary); }
.label { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.8125rem; text-align: right; }

.link:hover { background: var(--elevated); border-color: var(--primary); }

.link.primary { border-color: var(--primary); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

footer { margin-top: 32px; text-align: center; font-size: 0.6875rem; color: var(--border); }
footer a { color: var(--border); text-underline-offset: 3px; }
footer a:hover { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .label { transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); }
  .link:hover .label,
  .link:focus-visible .label { transform: translateX(6px); }

  [data-pointer-field]::after {
    transition: opacity 250ms cubic-bezier(0, 0, 0.2, 1), --gx 250ms cubic-bezier(0, 0, 0.2, 1), --gy 250ms cubic-bezier(0, 0, 0.2, 1);
  }
  [data-pointer-field][data-snap]::after { transition: opacity 250ms cubic-bezier(0, 0, 0.2, 1); }
}

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

/* Live strip above the page: two copies of the channels, the track slides one
   copy to the left and loops. Hover or focus pauses it. */
.live-bar { overflow: hidden; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.live-track { display: flex; width: max-content; }

.live-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  min-width: 100vw;
  padding-inline: 24px;
}

.live-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--foreground);
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

.live-inner { display: contents; }
.live-inner > * + * { margin-left: 16px; }

.live-tag {
  padding: 0 8px;
  border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent);
  border-radius: 4px;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-item:hover .live-text,
.live-item:focus-visible .live-text { text-decoration: underline; text-underline-offset: 4px; }
.live-item:focus-visible { outline-offset: -2px; }

@keyframes live-slide { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: no-preference) {
  .live-track { animation: live-slide 40s linear infinite; }
  .live-track:hover,
  .live-track:focus-within { animation-play-state: paused; }
}

/* Without motion the strip shows the first copy only; the second sits clipped
   past the right edge. */
@media (prefers-reduced-motion: reduce) {
  .live-track { width: 100%; }
  .live-group { flex-wrap: wrap; }
}
