/* ==========================================================================
   WoofyBark
   Paper, ink, one rust accent. Hairline rules instead of cards.
   ========================================================================== */

/* 01 — tokens ------------------------------------------------------------- */
:root {
  /* the site ships dark only — native controls follow along */
  color-scheme: dark;

  /* warm ink paper: near-black with a hint of rust, not a cold grey */
  --paper: #12100e;
  --paper-lift: #1a1714;
  --ink: #f2eee5;
  --ink-2: #c4bdb0;
  --ink-3: #8a8378;

  --rule: #2a2521;
  --rule-strong: #453e36;

  --accent: #d9714c;
  --accent-soft: #3a2219;

  --online: #6cbf88;
  --idle: #d5a648;
  --dnd: #d9714c;
  --offline: #6e685e;

  --status: var(--offline);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1160px;
  --gutter: 32px;
}

[data-status="online"] {
  --status: var(--online);
}
[data-status="idle"] {
  --status: var(--idle);
}
[data-status="dnd"] {
  --status: var(--dnd);
}
[data-status="offline"] {
  --status: var(--offline);
}

/* 02 — reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keeps anchor targets clear of the floating header */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-optical-sizing: auto;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

/* 03 — layout & shared type ---------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker-mark {
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex: none;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.text-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.text-link--muted {
  color: var(--ink-2);
}

.arrow {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink-3);
  transition: transform 0.15s ease, color 0.15s ease;
}

a:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  white-space: nowrap;
}

.empty {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 54ch;
}

/* 04 — header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* the pill floats over the page, so the band itself stays transparent */
  padding: 12px 0 0;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  min-height: 58px;
  padding: 0 calc(var(--gutter) - 8px);
  background: rgba(26, 23, 20, 0.82);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  pointer-events: auto;
}

/* browsers without backdrop blur get a near-solid bar instead of a see-through one */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner {
    background: var(--paper-lift);
  }
}

.wordmark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  line-height: 1;
}

.site-nav a {
  color: var(--ink-2);
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.status-line .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status);
  flex: none;
}

.header-link {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: var(--accent);
}

/* 05 — masthead ----------------------------------------------------------- */
.masthead {
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(44px, 6vw, 76px);
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
  margin-top: 30px;
}

.name {
  font-size: clamp(3.4rem, 8.6vw, 6.9rem);
  line-height: 0.88;
  letter-spacing: -0.048em;
  font-weight: 500;
}

.handle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.handle-line .handle {
  color: var(--ink-2);
}

.handle-line .slash {
  color: var(--rule-strong);
}

.intro {
  margin-top: 28px;
  max-width: 40ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 32px;
  font-size: 13.5px;
}

.elsewhere a {
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.elsewhere a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* identity column */
.identity {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 3vw, 34px);
}

.identity-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.identity-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.portrait {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
}

.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.portrait-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status);
  border: 2px solid var(--paper);
}

.identity-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.identity-handle {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.identity-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-2);
}

.identity-status .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status);
  flex: none;
}

.identity-facts {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}

.identity-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.identity-facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}

.identity-facts dd {
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-facts .clock {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.identity-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.identity-counts span {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.identity-counts small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.identity-links {
  display: flex;
  flex-direction: column;
}

.identity-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.identity-links a:last-child {
  border-bottom: 0;
}

.identity-links a:hover {
  color: var(--accent);
}

.identity-links .arrow {
  font-size: 11px;
}

/* 06 — bands, presence, feed --------------------------------------------- */
.band {
  padding: clamp(44px, 6vw, 68px) 0 clamp(48px, 6vw, 72px);
}

.band-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
}

.band-no {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.band-head h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.band-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  margin-top: 34px;
  align-items: start;
}

.log {
  border-left: 1px solid var(--rule);
  padding-left: clamp(22px, 3vw, 34px);
}

.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
}

.log-head h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.conn-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}

.conn[data-state="live"] {
  color: var(--online);
}
.conn[data-state="live"] .conn-dot {
  background: var(--online);
}
.conn[data-state="polling"] .conn-dot,
.conn[data-state="reconnecting"] .conn-dot {
  background: var(--idle);
}
.conn[data-state="error"] {
  color: var(--accent);
}
.conn[data-state="error"] .conn-dot {
  background: var(--accent);
}

.feed-list {
  max-height: 322px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.feed-list::-webkit-scrollbar {
  width: 4px;
}
.feed-list::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
}

.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-2);
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-time {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}

.feed-item[data-kind="music"] .feed-text {
  color: var(--ink);
}

#feed-empty {
  margin-top: 12px;
}

/* presence */
.p-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.p-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper-lift);
}

.p-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.status-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--status);
  border: 2px solid var(--paper);
}

.p-display {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.p-username {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.p-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-2);
}

.p-status .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status);
  flex: none;
}

.custom-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 2px 0 2px 13px;
  border-left: 2px solid var(--accent);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.custom-status img {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
}

.np {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.np-art {
  width: 92px;
  height: 92px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-lift);
  flex: none;
}

.np-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-body {
  min-width: 0;
}

.np-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eq {
  display: none;
}

.np-song {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.np-song:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.np-artist {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-album {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-progress {
  margin-top: 14px;
}

.np-bar {
  position: relative;
  height: 2px;
  background: var(--rule);
  overflow: hidden;
}

.np-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
}

.np-times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
}

.acts {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}

.act {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.act:last-child {
  border-bottom: 0;
}

.act-img,
.act-fallback {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--paper-lift);
  flex: none;
}

.act-fallback {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--rule);
}

.act-body {
  min-width: 0;
}

.act-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.act-tag {
  display: none;
}

.act-detail,
.act-state {
  margin-top: 1px;
  font-size: 12px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-state {
  color: var(--ink-3);
}

.act-time {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.presence-empty {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 46ch;
}

/* skeleton */
.presence-skeleton {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 0;
}

.sk {
  background: #262119;
  animation: pulse 1.8s ease-in-out infinite;
}

.sk-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
}

.sk-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sk-line {
  height: 9px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* notices */
.notice {
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--accent);
}

.notice-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.notice-text {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 54ch;
}

.notice-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

.notice code {
  padding: 1px 4px;
  background: #262119;
  color: var(--ink);
  font-size: 11px;
}

/* 07 — section index ------------------------------------------------------ */
.section-index {
  margin-top: 26px;
}

.section-index li {
  border-bottom: 1px solid var(--rule);
}

.section-index a {
  display: grid;
  grid-template-columns: 36px minmax(110px, 190px) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  padding: 17px 0;
  transition: background 0.2s ease;
}

.section-index a:hover {
  background: var(--paper-lift);
}

.idx {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

.idx-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.section-index a:hover .idx-title {
  color: var(--accent);
}

.idx-note {
  font-size: 12.5px;
  color: var(--ink-3);
}

.idx-arrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.2s ease;
}

.section-index a:hover .idx-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* 08 — page heads --------------------------------------------------------- */
.page-head {
  padding-top: clamp(40px, 5.5vw, 72px);
  padding-bottom: clamp(28px, 3vw, 38px);
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.page-head h1 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  max-width: 14ch;
}

.page-meta {
  padding-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.page-meta a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-meta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-lede {
  margin-top: 20px;
  max-width: 58ch;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.page-lede a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}

.page-lede a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.page-note {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.page-note .label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.content {
  padding-bottom: clamp(48px, 6vw, 72px);
}

/* 09 — projects ----------------------------------------------------------- */
.projects {
  margin-top: 34px;
}

.project {
  position: relative;
  margin: 0 -12px;
  padding: 20px 12px 22px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.18s ease;
}

.project:hover {
  background: var(--paper-lift);
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s ease;
}

.project-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project:hover .project-name {
  color: var(--accent);
}

.project-stars {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}

.project-desc {
  margin-top: 6px;
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}

.lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule-strong);
  flex: none;
}

.project-live {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

.project-live:hover {
  text-decoration-color: var(--accent);
}

/* 10 — music -------------------------------------------------------------- */
.music-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 64px);
  margin-top: 10px;
  align-items: start;
}

.music-aside {
  border-left: 1px solid var(--rule);
  padding-left: clamp(22px, 3vw, 34px);
}

.subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
}

.subhead h2,
.subhead h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.subhead span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  white-space: nowrap;
}

.music-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.mstat {
  padding: 14px 12px 16px 0;
  min-width: 0;
}

.mstat + .mstat {
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}

.mstat-value {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mstat-label {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.top-artists {
  margin-top: 18px;
}

.top-label {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.artist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 7px 0;
  font-size: 12.5px;
}

.artist-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-count {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
}

.artist-bar {
  display: block;
  grid-column: 1 / -1;
  height: 2px;
  background: var(--rule);
}

.artist-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-3);
}

.history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 56px);
}

.history > section {
  padding-top: 16px;
}

.history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.history-head h2,
.history-head h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.history-head span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.plays {
  margin-top: 4px;
}

.play {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.play:last-child {
  border-bottom: 0;
}

.play-art {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--paper-lift);
  flex: none;
}

.play-body {
  min-width: 0;
}

.play-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

a.play-title:hover {
  color: var(--accent);
}

.play-artist {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  white-space: nowrap;
}

.now-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 11 — contributions ------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  border-bottom: 1px solid var(--rule);
}

.stat {
  padding: 18px 20px 20px 0;
  min-width: 0;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.heatmap-card {
  margin-top: 26px;
}

.heatmap-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.heatmap-scroll::-webkit-scrollbar {
  height: 4px;
}
.heatmap-scroll::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
}

.heatmap {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: max-content;
}

.hm-months,
.hm-weeks {
  display: flex;
  gap: 3px;
}

.hm-month {
  flex: 0 0 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: visible;
  line-height: 1;
}

.hm-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 12px;
}

.hm-cell {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #221e19;
  border: 1px solid transparent;
}

.hm-cell.l1 {
  background: #3a2a21;
}
.hm-cell.l2 {
  background: #67412e;
}
.hm-cell.l3 {
  background: #a85d3c;
}
.hm-cell.l4 {
  background: var(--accent);
}

.heatmap-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--ink-3);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legend .hm-cell {
  width: 9px;
  height: 9px;
}

#heatmap-error {
  margin-top: 12px;
}

/* 12 — friends ------------------------------------------------------------ */
.friends-grid:empty,
.shout-wall:empty {
  display: none;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 60px);
  margin-top: 36px;
}

.friend {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--paper-lift);
  filter: grayscale(1) contrast(1.03);
}

.friend-body {
  min-width: 0;
}

.friend-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.friend-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.15s ease;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.friend:hover .friend-name {
  color: var(--accent);
}

.friend-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.friend-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status);
  flex: none;
}

.friend-state[data-status="online"] {
  color: var(--online);
}
.friend-state[data-status="idle"] {
  color: var(--idle);
}
.friend-state[data-status="dnd"] {
  color: var(--accent);
}

.friend-activity {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-label {
  margin-right: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.friend-fail {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.friend-handle {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

.friend-note {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* 13 — shout-outs (Discord-embed cards) ----------------------------------- */
.shout-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.shout {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 13px 15px 12px;
  background: var(--paper-lift);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--shout-color, var(--accent));
  border-radius: 4px;
}

.shout-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.shout-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 42ch;
}

.shout-avatar {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
}

.shout-avatar img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}

.shout-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status);
  border: 2px solid var(--paper-lift);
}

.shout-who {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.shout-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.shout-name:hover {
  color: var(--accent);
}

.shout-handle {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shout-handle:hover {
  color: var(--accent);
}

.shout-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  min-width: 0;
}

.shout-status {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-width: 0;
}

.shout-pip {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status);
}

.shout-state {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shout-site {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}

a.shout-site {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule-strong);
}

a.shout-site:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.shout-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* 14 — empty states ------------------------------------------------------- */
.empty-state {
  margin-top: 36px;
  max-width: 52ch;
}

.empty-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.empty-state .empty {
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* 15 — footer ------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid var(--rule);
  padding: 44px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.1fr);
  gap: 40px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-line {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

.footer-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-2);
}

.footer-col a {
  align-self: flex-start;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

.footer-col span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* 16 — 404 ---------------------------------------------------------------- */
.notfound {
  min-height: calc(100svh - 145px);
  display: grid;
  align-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.notfound-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.notfound h1 {
  margin-top: 16px;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.notfound p {
  margin-top: 18px;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.notfound-links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 13px;
}

/* 17 — noscript & responsive --------------------------------------------- */
.noscript {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 80;
  width: calc(100% - 32px);
  max-width: 560px;
  padding: 12px 16px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-lift);
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
}

@media (max-width: 1040px) {
  .masthead-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .masthead-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .identity {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 24px;
  }

  .now-grid,
  .music-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .log,
  .music-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 22px;
  }

  .history {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .history > section + section {
    margin-top: 8px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 780px) {
  :root {
    --gutter: 22px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0 18px;
    padding-top: 12px;
    padding-bottom: 0;
    min-height: 0;
  }

  .wordmark {
    order: 1;
    padding-bottom: 12px;
  }

  .header-tools {
    order: 2;
    gap: 16px;
    padding-bottom: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 16px;
    font-size: 12px;
    overflow-x: auto;
    border-top: 1px solid var(--rule);
    padding: 11px 0 12px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .band-head {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 4px;
  }

  .band-note {
    grid-column: 2;
    text-align: left;
  }

  .section-index a {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .idx-note {
    display: none;
  }

  .friends-grid,
  .shout-wall {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .shout {
    padding: 13px 15px 12px;
  }

  .shout-foot {
    flex-wrap: wrap;
    row-gap: 7px;
  }

  .shout-site {
    margin-left: 0;
  }

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

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--rule);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .identity-facts {
    margin-top: 20px;
  }

  .page-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-meta {
    padding-bottom: 0;
    white-space: normal;
  }

  .project {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .header-tools {
    gap: 14px;
  }

  .status-line {
    font-size: 9px;
  }

  .name {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .intro {
    font-size: 1.1rem;
  }

  .elsewhere {
    gap: 20px;
  }

  .identity-counts span {
    font-size: 18px;
  }

  .np {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .np-art {
    width: 72px;
    height: 72px;
  }

  .play {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .play-art {
    width: 32px;
    height: 32px;
  }

  .heatmap-foot {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-bottom {
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead,
  .page-head {
    animation: enter 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
