/* Public navigation band: charcoal with cream text, the call to action in mustard with charcoal text
   (the shared .button--primary rule supplies the mustard), the vintage stripe beneath (brand_stripe.css).
   The public layout is always light, and the chrome tokens are the same in both appearances. */
.public-header {
  border-bottom: 0;
  color: var(--chrome-ink);
  background: var(--chrome-bg);
}

body.public-site { display: flex; flex-direction: column; min-height: 100dvh; }
body.public-site > .public-main { flex: 1 0 auto; }
body.public-site > .preview-notice,
body.public-site > .public-header { flex-shrink: 0; }
.public-main h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: 0.01em; line-height: 1.12; max-width: 20ch; margin: 0; }
.public-main .auth-panel h1 { max-width: none; }
.public-main .public-hero h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); max-width: 16ch; }
.public-features h2 { max-width: 26ch; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.public-hero__preview pre { overflow-x: auto; font-size: 0.9rem; }
.public-main .button { min-height: 2.75rem; }
@media (max-width: 42rem) { .public-footer a { display: inline-flex; min-height: 2.75rem; align-items: center; } }

.public-header__brand,
.public-header__nav a:not(.button) {
  color: var(--chrome-ink);
  background: var(--chrome-bg);
}

.public-header__nav a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Cream rings: the default teal ring is built for light surfaces and would sink into charcoal. */
.public-header a:focus-visible {
  outline: 3px solid var(--chrome-focus);
  outline-offset: 3px;
}

/* The same bold three-band stripe as the member bar and the shared chart's bar, running through the vertical middle of the
   bar (brand_stripe.css) behind two charcoal plates: the logo and the links. The header is the stacking context. */
@media screen {
  .public-header {
    position: relative;
    z-index: 0;
  }

  .public-header__brand,
  .public-header__nav {
    align-self: stretch;
    color: var(--chrome-ink);
    background: var(--chrome-bg);
  }

  .public-header__brand {
    padding-right: 18px;
  }

  .public-header__nav {
    padding-left: 16px;
  }
}
