/*
 * Minimal shared shadow-root reset, prepended once to the bundled
 * `ds.css` every component links to (see `scripts/build-ds-css.mjs` in
 * src). The design-system skill requires a single global reset
 * (`global.css`), but that is light-DOM only and cannot reach into a
 * shadow root. This is the shadow-DOM equivalent: box-sizing plus a
 * token-driven focus ring.
 *
 * Focus-ring color on inverse surfaces is not handled with `:host-context`
 * here: `ds-section[data-surface="inverse"]` re-points the
 * `--elvaio-color-focus` custom property for its whole subtree, and every
 * component (light or shadow DOM) that reads that token for its focus ring
 * inherits the override automatically, because custom properties inherit
 * through shadow boundaries.
 */
:host {
  box-sizing: border-box;
}

:host *,
:host *::before,
:host *::after {
  box-sizing: border-box;
}

:host(:focus-visible) {
  outline: var(--elvaio-focus-width) solid var(--elvaio-color-focus);
  outline-offset: 2px;
  border-radius: var(--elvaio-radius-field);
}


:host {
  display: inline-block;
}

.person {
  display: flex;
  align-items: center;
  gap: var(--elvaio-space-04);
}

.portrait {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  border: 3px solid var(--elvaio-color-card);
  box-shadow: 0 0 0 2px var(--elvaio-color-text);
  display: inline-flex;
}

.small .portrait {
  width: 3rem;
  height: 3rem;
}

.large .portrait {
  width: 6rem;
  height: 6rem;
}

.xlarge .portrait {
  width: 7.5rem;
  height: 7.5rem;
}

.portrait ::slotted(img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--elvaio-color-accent-soft), var(--elvaio-color-band));
}

.text {
  display: flex;
  flex-direction: column;
  gap: var(--elvaio-space-01);
  max-width: 44ch;
  font-size: var(--elvaio-font-size-body);
}

.eyebrow {
  font-family: var(--elvaio-font-mono);
  font-size: var(--elvaio-font-size-label);
  letter-spacing: var(--elvaio-letter-spacing-label);
  text-transform: uppercase;
  color: var(--elvaio-color-text-muted);
}

.name {
  font-family: var(--elvaio-font-title);
  font-weight: var(--elvaio-font-weight-title);
  font-size: var(--elvaio-font-size-subheading);
}

.bio {
  color: var(--elvaio-color-text-muted);
}
