.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: var(--header-height);
  margin-inline: var(--page-pad);
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(0.9rem, 1.25vw, 1.12rem);
}

.site-header > :last-child { justify-self: end; }
.site-header a { text-decoration: none; }

.site-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent);
}

.site-controls a,
.theme-toggle { transition: color 234ms ease, opacity 234ms ease; }

.site-controls a:hover,
.theme-toggle:hover { opacity: 0.72; }

.site-controls a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.theme-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.theme-toggle__icon {
  width: 1rem;
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transform: rotate(0deg);
  transition: transform 416ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__icon { transform: rotate(180deg); }

.site-identity {
  display: flex;
  gap: clamp(0.8rem, 1.3vw, 1.25rem);
  align-items: center;
  min-width: 0;
}

.site-name {
  flex: none;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 600;
  transition: opacity 234ms ease;
}

.site-name:hover { opacity: 0.72; }
.site-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-role {
  max-width: min(42vw, 34rem);
  margin: 0;
  padding: 0.2rem 0 0.2rem clamp(0.8rem, 1.3vw, 1.25rem);
  border-left: 1px solid var(--hairline);
  color: var(--ink);
  font-size: clamp(0.82rem, 1.08vw, 1rem);
  line-height: 1.25;
  white-space: nowrap;
}

.site-role__mobile { display: none; }
