:root {
  --paper: #f4f3ef;
  --ink: #161615;
  --muted: #6d6c66;
  --rule: #dad8d0;
  --accent: #1c64f2;
  --online: #2f9e44;
  --idle: #e0a400;
  --dnd: #e03131;
  --offline: #9a9993;
  --card: #fbfaf7;
  --panel: #efede7;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --ink: #ecebe6;
    --muted: #8b8a84;
    --rule: #272725;
    --accent: #5b9bff;
    --offline: #5f5e5a;
    --card: #1a1a19;
    --panel: #121211;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.wrap { width: min(960px, 100% - 40px); margin-inline: auto; }

/* header */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 0; font-size: 14px;
}
.handle { text-decoration: none; font-weight: 500; }
.top nav { display: flex; gap: 24px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* intro */
.intro {
  padding: 80px 0 72px;
  display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start;
}
.intro-text { padding-top: 12px; }
.intro-sub { color: var(--muted); font-size: 18px; max-width: 46ch; margin-top: 20px; }
.intro { grid-template-rows: auto 1fr; row-gap: 0; }
.intro .profile { grid-column: 2; grid-row: 1 / span 2; }
.intro .facts { grid-column: 1; grid-row: 2; align-self: start; margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eyebrow { font-size: 13px; color: var(--accent); margin-bottom: 20px; }
h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.022em;
  max-width: 20ch;
}
.facts {
  display: grid; grid-template-columns: repeat(4, auto); gap: 28px 48px;
  margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--rule);
  justify-content: start;
}
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 15px; display: flex; align-items: center; gap: 8px; }

/* rows */
.row {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 40px 0 48px; border-top: 1px solid var(--rule);
}
.label { font-size: 13px; font-weight: 400; color: var(--muted); padding-top: 4px; }

/* discord profile card */
.profile {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; font-size: 14px;
}
.banner { height: 120px; background: var(--accent) center / cover no-repeat; transition: background-color .3s; }
.profile-top { position: relative; height: 48px; padding: 0 16px; }
.avatar-ring {
  position: absolute; left: 12px; top: -48px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--card); padding: 6px;
}
.avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--rule); object-fit: cover; display: block; }
.status-badge {
  position: absolute; right: 2px; bottom: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--offline); border: 6px solid var(--card);
}
.status-badge.online { background: var(--online); }
.status-badge.idle { background: var(--idle); }
.status-badge.dnd { background: var(--dnd); }

.bubble {
  position: absolute; left: 112px; top: 10px; right: 16px; width: max-content; max-width: calc(100% - 128px);
  background: var(--panel); border-radius: 10px; padding: 6px 10px;
  font-size: 13px; line-height: 1.35; display: flex; gap: 6px; align-items: center;
}
.bubble::before {
  content: ""; position: absolute; left: -6px; top: 12px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--panel);
}
.bubble img { width: 16px; height: 16px; }
.bubble:empty { display: none; }

.profile-body { padding: 4px 16px 16px; }
.name-block {
  position: relative; overflow: hidden; border-radius: 8px;
  margin: 0 -8px; padding: 6px 8px;
}
.nameplate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
}
.name-row, .who-user { position: relative; }
.name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who-name { font-size: 20px; font-weight: 600; line-height: 1.25; }
.who-user { color: var(--muted); font-size: 13px; }
.guild-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 3px 6px; border-radius: 4px; background: var(--panel);
}
.guild-tag[hidden] { display: none; }
.guild-tag img { width: 14px; height: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.badges:empty { display: none; }
.badges img { width: 22px; height: 22px; }

.panel { background: var(--panel); border-radius: 8px; padding: 4px 12px; margin-top: 14px; }
.panel-sec { padding: 10px 0; }
.panel-sec + .panel-sec { border-top: 1px solid var(--rule); }
.panel h4, .act-kind {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 8px;
}

.activities { list-style: none; }
.activities > li + li { margin-top: 14px; }
.act { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; text-decoration: none; }
.act-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--rule); display: block; }
.act-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-time { color: var(--online); font-size: 12px; }
.act-body { min-width: 0; }
a.act:hover .act-title { text-decoration: underline; }
.progress { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.progress .track { flex: 1; height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.progress .fill { height: 100%; background: var(--ink); width: 0; }

.msg-btn {
  display: block; margin-top: 12px; padding: 8px; border-radius: 6px; text-align: center;
  background: var(--ink); color: var(--card); text-decoration: none; font-weight: 500;
}
.msg-btn:hover { opacity: .88; }

/* what i do */
.list { list-style: none; counter-reset: n; }
.list li {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px dashed var(--rule);
}
.list li:first-child { border-top: 0; padding-top: 0; }
.list h3 { font-size: 17px; font-weight: 600; }
.list p { color: var(--muted); max-width: 52ch; }

/* stack */
.stack { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.stack li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
}
.ext { font-size: 13px; color: var(--muted); }
.lang { display: flex; align-items: center; gap: 12px; }
.lang img {
  width: 32px; height: 32px; padding: 6px; flex-shrink: 0;
  background: #f4f3ef; border: 1px solid var(--rule); border-radius: 8px;
}

/* contact */
.lead { color: var(--muted); margin-bottom: 10px; }
.big-link {
  display: inline-block; font-size: clamp(26px, 4vw, 38px); font-weight: 500;
  letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid var(--accent);
  line-height: 1.2;
}
.big-link .arrow { color: var(--accent); transition: transform .15s; display: inline-block; }
.big-link:hover .arrow { transform: translate(2px, -2px); }
.copy {
  display: block; margin-top: 22px; background: none; border: 0; padding: 0;
  font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.copy:hover { color: var(--ink); }

footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 40px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted);
}

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

@media (max-width: 760px) {
  body { font-size: 16px; }
  .intro { padding: 40px 0 56px; grid-template-columns: 1fr; grid-template-rows: none; gap: 36px; }
  .intro .profile, .intro .facts { grid-column: auto; grid-row: auto; }
  .intro .facts { margin-top: 0; }
  .intro-text { padding-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 0; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0 40px; }
  .list li { grid-template-columns: 1fr; gap: 4px; }
  .stack { grid-template-columns: 1fr; }
  .top nav { gap: 16px; }
}
