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

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #d9d9d9;
  --rule: #000000;
  --debt: #ff2b1c;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, div, span, li, a {
  text-box: trim-both cap alphabetic;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 20px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--muted);
  flex-shrink: 0;
}

.avatar--hero {
  width: 114px;
  height: 114px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__total {
  font-size: 24px;
  font-weight: 700;
  color: var(--debt);
  letter-spacing: 0.02em;
}

/* Lenders */
.lenders {
  margin-top: 8px;
}

.lenders__title {
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.lenders__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.lender {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.lender > .avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.lender__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lender__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lender__name,
.lender__amount,
.lender__apr,
.lender__fee {
  font-size: 12px;
}

.lender__name {
  text-transform: uppercase;
}

.lender__amount {
  justify-self: end;
}
