/* Shared by the main site and the server-style homepage. */
:root { --button-radius: 999px; }

.site-header {
  --header-logo-scale: 102px;
  border-bottom: 0;
  font-family: var(--font-sans);
}
.site-header.scrolled { --header-logo-scale: 88px; }
.site-header .brand { gap: 3px; }
/* Center the visible artwork, not the asymmetric transparent PNG canvas. */
.header-brand-mark {
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--header-logo-scale) * .63);
  height: calc(var(--header-logo-scale) * .64);
  overflow: hidden;
  transition: width .22s ease, height .22s ease;
}
.site-header .header-brand-mark .brand-logo {
  position: absolute;
  inset: auto;
  left: calc(var(--header-logo-scale) * -.19);
  top: calc(var(--header-logo-scale) * -.06);
  width: var(--header-logo-scale);
  max-width: none;
  height: auto;
  transform: none;
  transition: width .22s ease, top .22s ease, left .22s ease;
}
.site-header .main-nav a, .site-header .login-button { font-weight: 600; }
.site-header .login-button { padding-inline: 22px; }
.site-header .login-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 1100px) {
  .site-header .header-inner { position: relative; }
  .site-header .main-nav { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
  .site-header .login-button { margin-left: auto; max-width: 180px; }
}
@media (min-width: 901px) and (max-width: 1099px) {
  .site-header .header-inner { gap: 12px; }
  .site-header .main-nav { position: static; transform: none; margin-inline: auto; }
  .site-header .main-nav a { padding-inline: 9px; }
  .site-header .login-button { margin-left: 0; max-width: 130px; }
}
@media (max-width: 680px) {
  .site-header, .site-header.scrolled { --header-logo-scale: 76px; }
  .site-header .brand { gap: 2px; }
  .site-header .login-button { max-width: 27vw; padding-inline: 12px; }
}

/* Only the shape is shared. Color still distinguishes primary and dangerous actions. */
button:not(.video-play-button), input:is([type="button"], [type="submit"], [type="reset"]),
[role="button"], .primary-button, .secondary-button, .outline-button, .danger-button,
.editor-actions a, .editor-action-secondary, .editor-action-primary, .editor-action-danger,
.main-nav a, .file-picker span, input[type="file"]::file-selector-button {
  border-radius: var(--button-radius) !important;
}
