/* Shared header chrome. The almanac grid for header.site-header.home stays in almanac.css. */
.site-header {
  --site-header-bg: var(--surface, var(--paper, #fff));
  --site-header-ink: var(--ink, #142330);
  --site-header-line: var(--line, #d3dce4);
  --site-header-accent: var(--accent, var(--amber, #b86a00));
  --site-header-soft: var(--surface-2, color-mix(in srgb, var(--ink, #142330) 6%, transparent));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.site-mark { width: 2rem; height: 2rem; color: var(--site-header-accent); }
.site-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--serif, var(--f-display, Georgia, serif));
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
/* Scoped here so these names do not replace the almanac swatches. */
.site-season-dots {
  --spring: #6a8f4e;
  --summer: #c4a15a;
  --autumn: #b85c38;
  --winter: #3d6f8f;
  display: flex;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.site-season-dots i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  display: block;
  flex: none;
}
.site-season-dots .spring { background: var(--spring); }
.site-season-dots .summer { background: var(--summer); }
.site-season-dots .autumn { background: var(--autumn); }
.site-season-dots .winter { background: var(--winter); }
.site-header .header-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-header .account-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-header .nav-pill,
.site-header .account-nav > a,
.site-header .user-menu-button {
  font: 500 14px/1.2 var(--f-body, var(--sans, sans-serif));
  color: var(--site-header-ink);
  text-decoration: none;
  background: var(--site-header-bg);
  border: 1px solid var(--site-header-line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  min-height: 0;
}
.site-header .account-nav .signup {
  background: #4F6B53;
  border-color: #4F6B53;
  color: #F4EEDF;
  border-radius: 4px;
  font-family: "IM Fell English SC", Georgia, serif;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.site-header .account-nav .signup:hover { background: #3D5541; color: #F4EEDF; }
.site-header a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
/* Pills stay one control. Current, hover, focus, and active keep the resting pill. */
.site-header .nav-pill:hover,
.site-header .nav-pill:focus-visible,
.site-header .nav-pill:active,
.site-header .nav-pill[aria-current="page"] {
  font-weight: 500;
  color: var(--site-header-ink);
  text-decoration: none;
  background: var(--site-header-bg);
  border: 1px solid var(--site-header-line);
  border-radius: 999px;
  padding: 6px 12px;
}
/* Blog, FAQ, and Sign in share one width, the longest label ("Sign in"),
   with the label centred. Almanac, Account, and Let's get started do not.
   The width is in em so it tracks the landing type step. On a phone the
   signed-out row stays one line: shorter pills, a tighter gap, and no wrap. */
.site-header .nav-equal,
.site-header .nav-pill.nav-equal:hover,
.site-header .nav-pill.nav-equal:focus-visible,
.site-header .nav-pill.nav-equal:active,
.site-header .nav-pill.nav-equal[aria-current="page"] {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.6em;
  max-width: 100%;
  padding: 6px 0.7em;
  white-space: nowrap;
  text-align: center;
}
@media (max-width: 480px) {
  .site-header .nav-equal,
  .site-header .nav-pill.nav-equal:hover,
  .site-header .nav-pill.nav-equal:focus-visible,
  .site-header .nav-pill.nav-equal:active,
  .site-header .nav-pill.nav-equal[aria-current="page"] {
    width: 4.15em;
    padding: 6px 0.15em;
    flex-shrink: 0;
  }
}
/* 375px keeps Blog, FAQ, Sign in, and Let's get started on one line.
   Below that the account cluster drops as a unit instead of squashing the button. */
@media (min-width: 370px) and (max-width: 480px) {
  .site-header .header-tools:has(.signup),
  .site-header .account-nav:has(.signup) {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .site-header .header-tools:has(.signup) > .nav-equal,
  .site-header .account-nav:has(.signup) {
    flex-shrink: 0;
  }
}
/* Blog pages only. The sheet must not style this bar. */
body.blog .site-header {
  background: #F4EEDF;
  border-bottom: 1px solid var(--line, #B9A88A);
}
.site-header .user-menu { position: relative; }
.site-header .user-menu-button { display: inline-flex; align-items: center; gap: 6px; max-width: 12rem; }
.site-header .user-menu-button::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}
.site-header .user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 12rem;
  padding: 6px;
  background: var(--site-header-bg);
  border: 1px solid var(--site-header-line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 2px;
}
.site-header .user-menu-panel[hidden] { display: none; }
.site-header .user-menu-panel a,
.site-header .user-menu-panel button {
  display: block;
  width: 100%;
  min-height: 0;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--site-header-ink);
  padding: 8px 10px;
  font: 500 14px/1.2 var(--f-body, var(--sans, sans-serif));
  text-decoration: none;
  cursor: pointer;
}
.site-header .user-menu-panel a:hover,
.site-header .user-menu-panel button:hover,
.site-header .user-menu-panel a:focus-visible,
.site-header .user-menu-panel button:focus-visible { background: var(--site-header-soft); }
.site-header .user-menu-panel form { margin: 0; }
