:root {
  --shell-ground: #e1dbd7;
  --shell-ink: #393633;
  --shell-muted: #8a8078;
  --shell-mono: "Intel One Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  width: 100%;
  color: #fff;
  background: #000;
}

.site-header__inner {
  width: min(1420px, calc(100% - 48px));
  min-height: 124px;
  margin: 0 auto;
  padding: 28px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  color: #fff;
  font: 25px/1.3 var(--shell-mono);
  letter-spacing: .08em;
}

.site-brand small {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
}

.site-profile {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #000;
  background: #fff;
  font: 16px var(--shell-mono);
  cursor: pointer;
}

.site-account-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-account {
  min-width: 172px;
  padding: 0 2px;
  color: rgba(255, 255, 255, .62);
  text-align: right;
  font: 11px/1.5 var(--shell-mono);
  letter-spacing: .05em;
}

.site-account__name {
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  cursor: pointer;
}

.site-account__meta {
  display: block;
  margin-top: 6px;
}

.site-account__meta b { font-weight: 400; }

.section-nav {
  width: min(1420px, calc(100% - 48px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 2px solid #000;
  background: rgba(255, 255, 255, .18);
}

.section-nav a {
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid #000;
  color: var(--shell-ink);
  text-align: center;
  text-decoration: none;
  font: 12px var(--shell-mono);
  letter-spacing: .06em;
}

.section-nav a:last-child { border-right: 0; }
.section-nav a[aria-current="page"] { color: #fff; background: #000; }

.shell-auth-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 3px solid #000;
  border-radius: 0;
  color: var(--shell-ink);
  background: var(--shell-ground);
}

.shell-auth-dialog::backdrop { background: rgba(57, 54, 51, .36); }
.shell-auth-head { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 2px solid #000; }
.shell-auth-head h2 { margin: 0; font: 18px/1.4 var(--shell-mono); font-weight: 400; }
.shell-auth-head p { margin: 5px 0 0; color: var(--shell-muted); font: 10px/1.5 var(--shell-mono); }
.shell-auth-close { width: 38px; height: 38px; padding: 0; border: 1px solid #000; border-radius: 0; background: transparent; cursor: pointer; font: 18px var(--shell-mono); }
.shell-auth-body { padding: 24px 22px 22px; }
.shell-auth-field + .shell-auth-field { margin-top: 18px; }
.shell-auth-field label { display: block; margin-bottom: 7px; color: var(--shell-muted); font: 9px var(--shell-mono); }
.shell-auth-field input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(110,103,96,.52); border-radius: 0; outline: 0; background: transparent; font: 13px/1.6 sans-serif; }
.shell-auth-field input:focus { border-bottom-color: #000; }
.shell-auth-error { min-height: 18px; margin: 16px 0 0; color: #7d3f37; font: 10px/1.5 var(--shell-mono); }
.shell-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.shell-auth-actions button { min-height: 44px; padding: 10px 12px; border: 1px solid #000; border-radius: 0; background: transparent; cursor: pointer; font: 10px var(--shell-mono); }
.shell-auth-actions .primary { color: #fff; background: #000; }
.shell-auth-signed { color: #5e5853; font-size: 13px; line-height: 1.7; }
.shell-auth-signed b { color: var(--shell-ink); font: 16px var(--shell-mono); font-weight: 400; }

@media (max-width: 760px) {
  .site-header__inner {
    width: calc(100% - 28px);
    min-height: 98px;
    padding-block: 20px;
  }
  .site-brand { font-size: 20px; }
  .site-brand small { font-size: 11px; }
  .site-profile { width: 46px; height: 46px; flex-basis: 46px; font-size: 14px; }
  .site-account-cluster { gap: 11px; }
  .site-account { min-width: 112px; font-size: 9px; }
  .site-account__name { font-size: 10px; }
  .section-nav { width: calc(100% - 28px); margin-top: 14px; }
  .section-nav a { padding: 12px 2px; font-size: 10px; letter-spacing: 0; }
}
