.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.site-header__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brandmark {
  display: inline-grid;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 2rem;
  width: auto;
  color: var(--logo-primary);
}

.brand-logo__primary {
  fill: var(--logo-primary);
}

.brand-logo__secondary {
  fill: var(--logo-secondary);
}

.brand-logo__overlap {
  fill: var(--logo-overlap);
  fill-opacity: 0.82;
}

.brand-logo__wordmark {
  fill: currentcolor;
  font-family: "Iowan Old Style", "Baskerville", "Libre Baskerville", Georgia, serif;
  font-size: 124px;
  letter-spacing: -0.03em;
}

.brandmark__domain,
.site-header__tagline,
.site-footer__copy {
  color: var(--muted);
}

.brandmark__domain {
  font-size: 0.8rem;
}

.site-header__tagline {
  margin: 0;
  font-size: 0.84rem;
}

.theme-picker {
  display: inline-grid;
  gap: 0.15rem;
}

.theme-picker__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.theme-picker__select {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  min-width: 8rem;
  padding: 0.35rem 0.5rem;
  background: var(--header-button-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.flash {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0.75rem auto 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: color-mix(in srgb, var(--panel) 97%, transparent);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.flash__message {
  min-width: 0;
}

.flash__dismiss {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.flash__dismiss:hover {
  color: var(--ink);
}

.site-footer {
  padding: 0 0 1.25rem;
}

.site-footer__inner {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.5rem;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer__links {
  margin: 0.2rem 0 0;
}

.site-footer__links a {
  color: var(--link);
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__build {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-header__inner {
    align-items: center;
  }
}
