/* Shared top chrome for every page that isn't the home page: the sysbar
   (clocks + currency) and the header (shop / about · OUSTRE · bag).
   Mirrors the .sysbar and .hdr rules in oustre-home.html, so a visitor
   moving between pages sees the same bar. If you change one, change both. */

:root {
  --chrome-paper:   #EDEEF0;
  --chrome-stone:   #D2D3D6;
  --chrome-fog:     #B9BABD;
  --chrome-ink:     #131416;
  --chrome-soft:    #66676A;
  --chrome-current: #3E5564;
  --chrome-ease:    cubic-bezier(0.23, 1, 0.32, 1);
}

/* 26px sysbar + 56px header. `html body` outranks the pages' own
   `html, body { padding: 0 }` reset, whichever stylesheet loads last. */
html body { padding-top: 82px; }

.sysbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 26px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: var(--chrome-paper);
  border-bottom: 1px solid var(--chrome-stone);
  font-family: 'Azeret Mono', ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.06em; color: var(--chrome-soft); text-transform: uppercase;
}
.sysbar__left, .sysbar__right { display: flex; gap: 16px; align-items: center; }
.sysbar__dot { display: inline-block; width: 6px; height: 6px; background: var(--chrome-current); }
.sysbar__time { font-variant-numeric: tabular-nums; color: var(--chrome-ink); }
.sysbar__sep  { color: var(--chrome-fog); }
.sysbar__currency {
  position: relative;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  text-transform: inherit; color: var(--chrome-ink);
  font-variant-numeric: tabular-nums;
  transition: color 180ms var(--chrome-ease);
}
@media (hover: hover) and (pointer: fine) { .sysbar__currency:hover { color: var(--chrome-current); } }

.hdr {
  position: fixed; top: 26px; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; height: 56px; padding: 0 16px;
  background: var(--chrome-paper);
}
.hdr__nav { display: flex; gap: 24px; }
.hdr__nav a, .hdr__icons a {
  position: relative; text-decoration: none;
  font-family: 'Azeret Mono', ui-monospace, monospace; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--chrome-soft);
  transition: color 180ms var(--chrome-ease);
}
.hdr__nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 100%; height: 1px;
  background: var(--chrome-current);
  transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--chrome-ease);
}
.hdr__nav a[aria-current] { color: var(--chrome-ink); }
@media (hover: hover) and (pointer: fine) {
  .hdr__nav a:hover, .hdr__icons a:hover { color: var(--chrome-ink); }
  .hdr__nav a:hover::after { transform: scaleX(1); }
}
/* 40px tap targets, same reasoning as the home page */
.sysbar__currency::before, .hdr__nav a::before, .hdr__icons a::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: 40px; transform: translate(-50%, -50%);
}
.hdr__wordmark {
  font-family: 'Averia Serif Libre', Georgia, serif; font-weight: 400;
  font-size: 26px; letter-spacing: -0.01em; line-height: 1;
  color: var(--chrome-ink); text-decoration: none;
  grid-column: 2; justify-self: center;
}
.hdr__icons { display: flex; justify-content: flex-end; gap: 16px; align-items: center; }
#chromeBagCount { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .sysbar__left .sysbar__sep + span,
  .sysbar__right span:not(.sysbar__time):not(.sysbar__dot) { display: none; }
  .hdr__nav { gap: 14px; }
}
@media (max-width: 480px) {
  .hdr__wordmark { font-size: 22px; }
  .hdr__nav { gap: 12px; }
}

/* touch screens: footer and breadcrumb links are 10px mono, about 16px tall
   — too small to hit with a thumb. Padding brings each one to 44px; the
   footer drops its row gap so stacked rows don't overlap, and the crumbs
   take the padding back in negative margin so nothing moves. */
@media (pointer: coarse) {
  .ftr nav { row-gap: 0; }
  .ftr nav a { display: inline-block; padding: 14px 0; }
  .pp-crumbs a { display: inline-block; padding: 16px 0; margin: -16px 0; }
}
