/* Shared header geometry for the Rorrim homepage and current public pages. */
html {
  scrollbar-gutter: stable;
}

.site-header {
  --header-text: #181713;
  --header-muted: #68635b;
  align-items: center;
  box-sizing: border-box;
  color: var(--header-text);
  display: flex;
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  height: 86px;
  justify-content: space-between;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.site-header .site-brand {
  align-items: center;
  color: var(--header-text);
  display: inline-flex;
  flex-shrink: 0;
  gap: 12px;
  text-decoration: none;
}

.site-header .site-brand img {
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  height: 42px;
  width: 42px;
}

.site-brand-name {
  display: grid;
  gap: 1px;
}

.site-brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-brand-subtitle {
  color: var(--header-muted);
  font-size: 0.78rem;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 18px;
}

.site-header .site-nav a {
  color: var(--header-muted);
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current="page"] {
  color: var(--header-text);
}

.site-header .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header a:focus-visible {
  outline: 2px solid var(--header-text);
  outline-offset: 5px;
}

.document-page main {
  margin: 0 auto;
  padding: 56px 0;
  width: min(720px, calc(100% - 40px));
}

@media (prefers-color-scheme: dark) {
  .site-header {
    --header-text: #f5f0e8;
    --header-muted: #b8b0a5;
  }
}

@media (max-width: 920px) {
  .site-header {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 18px;
    height: 74px;
    padding: 0 20px;
  }

  .site-brand-subtitle {
    display: none;
  }

  .site-header .site-brand img {
    height: 36px;
    width: 36px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-header .site-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .site-header .site-brand {
    gap: 8px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-header .site-nav a {
    font-size: 0.84rem;
  }
}
