/* The author's profile, /about/reza (2026-10-25). Only this page loads it; colours are the site's tokens,
   so both schemes follow styles.css. A changed rule needs a new file name (/assets is immutable). */
.byr-photo {
  margin: 0;
  width: min(320px, 100%);
}
.byr-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sunk);
  box-shadow: var(--shadow-lg);
}
.byr-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.byr-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 12px;
  box-shadow: var(--shadow-sm);
}
.byr-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  margin: 0 0 8px;
}
.byr-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 650;
}
.byr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.byr-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.byr-list li:first-child {
  border-top: 0;
}
.byr-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
.byr-list a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}
.byr-date {
  color: var(--dim);
  font-size: 0.82rem;
  white-space: nowrap;
}
@media (max-width: 860px) {
  /* On a phone the face comes first, as a small square crop of the same photo (CSS only, the file is untouched). */
  .fhero-media:has(.byr-photo) {
    order: -1;
    justify-content: flex-start;
    margin-bottom: -16px;
  }
  .byr-photo {
    width: 104px;
  }
  .byr-photo img {
    aspect-ratio: 1;
    object-position: 50% 22%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .byr-groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .byr-group {
    padding: 18px 18px 8px;
  }
}
