/*
  One stylesheet, no fonts, no imports — card/'s palette and type, because a tile is served
  from the publisher's own domain under the origin's CSP (DESIGN.md §8.3), which permits no
  third-party origin for anything.
*/
:root {
  --ink: #17181c;
  --muted: #5c6070;
  --paper: #fdfdfc;
  --rule: #e3e3e0;
  --accent: #2f5d50;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececeb;
    --muted: #a0a3ad;
    --paper: #16171a;
    --rule: #2b2d33;
    --accent: #8fc7b5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.profile {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

/* app.bsky.actor.profile banners are 3:1; the crop keeps any other shape from reflowing. */
.banner {
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--rule);
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper);
}

/* Over the banner's lower edge, ringed in the page colour so it reads as in front of it. */
.has-banner .avatar {
  margin-top: -48px;
  border: 4px solid var(--paper);
}

h1 {
  margin: 1rem 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.pronouns {
  margin: 0;
  color: var(--muted);
}

/* A profile description keeps its own line breaks; it is plain text, never markup. */
.bio {
  margin: 1rem 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.website {
  margin: 1.25rem 0 0;
}

.website a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.website a:hover,
.website a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.attribution {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.empty {
  color: var(--muted);
}

.colophon {
  font-size: 0.8125rem;
}

.colophon a {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}
