/* nakli.tech overrides on top of Patra's styles.
   This file isn't in a cascade layer, so these rules win over Patra's. */

/* ---- About me header: centred photo, name and role ---- */

/* The profile block has its own heading, so hide the title Patra adds above it. */
.note:has(.profile) > .note__header {
  display: none;
}

.profile {
  margin-bottom: var(--space-8);
  text-align: center;
}

.prose .profile__photo {
  display: block;
  width: 10rem;
  height: 10rem;
  margin: 0 auto var(--space-4);
  border: var(--border-width) solid var(--color-border);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
}

.prose .profile__name {
  margin: 0;
  font-size: var(--note-title-size);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
}

.prose .profile__role {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
}

.prose .profile__links {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  color: var(--color-text-subtle);
}

/* ---- Site name at the top of the sidebar ---- */
.sidebar__brand {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

/* ---- Phone "Files" button: relabel it so people know it leads to the writing ---- */
.fab > span {
  display: none;
}

.fab::after {
  content: "My Writings";
}

/* Make it stand out: solid accent fill with white text. The accent is darkened a
   little so white text stays readable (WCAG AA) in both light and dark mode. */
.fab {
  border-color: transparent;
  background: color-mix(in oklab, var(--color-accent) 82%, black);
  color: var(--color-on-accent);
  box-shadow:
    0 6px 18px color-mix(in srgb, var(--color-accent) 45%, transparent),
    var(--shadow-raised);
}

.fab:hover {
  background: color-mix(in oklab, var(--color-accent) 70%, black);
}
