/* Header
 * Sticky glass header, week navigation, streak line and connection notice.
 *
 * Lifted from the prototype's single stylesheet, unchanged apart from
 * indentation. Every colour resolves through a token in tokens.css.
 */

/* ---------- header ---------- */
header.hero {
  position: sticky; top: 0; z-index: 30;
  background:
    radial-gradient(1100px 680px at 20% -10%, var(--accent-glow), transparent 62%),
    var(--ground-wash);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 20px 16px;
}
.hero-inner { max-width: 900px; margin: 0 auto; padding: 0 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: flex-start; gap: 12px; }
.brand-mark { flex: none; width: 44px; height: 44px; }
.brand h1 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.tagline { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.theme-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-soft); cursor: pointer; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}

.weeknav { max-width: 900px; margin: 16px auto 0; padding: 0 18px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.weekpeek {
  flex: 0 0 58px; height: 46px; border: none; background: none; padding: 0 6px; margin: 0;
  color: var(--ink-faint); font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; overflow: hidden; min-height: 46px;
}
.weekpeek:active { opacity: .55; }
.weekpeek.prev {
  text-align: right; margin-left: -18px; padding-left: 18px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, black 55%);
}
.weekpeek.next {
  text-align: left; margin-right: -18px; padding-right: 18px;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 55%);
  mask-image: linear-gradient(to left, transparent 0%, black 55%);
}
.weeknav .weeklabel {
  flex: 1; min-width: 0; text-align: center; font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
  border: none; background: none; color: var(--ink); padding: 6px 4px; min-height: 46px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; row-gap: 2px; column-gap: 6px;
  cursor: default; font-family: inherit;
}
.weeknav .weeklabel .datepart {
  min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.weeknav .weeklabel .jumphint {
  font-size: 13px; font-weight: 600; color: var(--accent-ink); white-space: nowrap;
}
.weeknav .weeklabel.jumpable { color: var(--accent-ink); cursor: pointer; }
.weeknav .weeklabel.jumpable:active { transform: scale(0.98); }

.streakline {
  max-width: 900px; margin: 12px auto 0; padding: 0 18px; font-size: 14.5px; color: var(--accent-ink);
}
.conncard {
  max-width: 900px; margin: 12px auto 0; padding: 10px 18px; font-size: 14.5px; color: var(--neg);
  background: var(--neg-tint); border-radius: 0;
}

section { margin-top: 30px; }
h2.sectiontitle { font-size: 21px; font-weight: 700; margin: 0 0 4px; font-family: 'Karla', system-ui, sans-serif; letter-spacing: -0.01em; }
p.sectionhint { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; }

/* A week-peek button with nowhere to go. Hidden with visibility rather than
   display so it keeps its flex basis — removing it from layout would let the
   centre week label slide out of position. */
.weekpeek.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
