/* One header and footer contract for every Material Witness route. */
@font-face { font-family: Archivo; src: url('/brand/Archivo-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url('/brand/Archivo-Medium.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url('/brand/Archivo-Heavy.ttf'); font-weight: 900; font-display: swap; }
:root { --mw-header-height: 88px; }
html { scroll-padding-top: calc(var(--mw-header-height) + 18px); }
body .site-header,
body.immersive-home .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--mw-header-height);
  min-height: var(--mw-header-height);
  margin: 0;
  padding: 0 6%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #1b1e19;
  color: #f1ece2;
  border: 0;
  border-bottom: 1px solid #54574b;
  font: 600 14px/1.3 Archivo, sans-serif;
  transition: background-color .25s, box-shadow .25s;
  isolation: isolate;
}
body .site-header.is-pinned {
  background: #22241f;
  border-bottom-color: #787a6e;
  box-shadow: 0 9px 24px rgba(0,0,0,.24);
}
.site-header .brand,
.site-header .brand img {
  display: block;
  width: 280px;
  max-width: none;
  height: auto;
  flex-shrink: 0;
  margin: 0;
}
.site-header a { color: #f1ece2; text-decoration: none; }
body .site-header #main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 27px;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
  order: initial;
}
body .site-header #main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font: 600 14px/1.3 Archivo, sans-serif;
  white-space: nowrap;
  color: #f1ece2;
  box-shadow: none;
  position: relative;
}
body .site-header #main-nav a[aria-current]::after {
  transform: scaleX(1);
}
.site-header .header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
body .site-header .header-cart,
body .site-header .menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  height: 44px;
  padding: 10px 13px;
  border: 1px solid #6f7265;
  border-radius: 0;
  background: transparent !important;
  color: #f1ece2 !important;
  box-shadow: none !important;
  font: 600 14px/1 Archivo, sans-serif;
  order: initial;
  cursor: pointer;
}
body .site-header .header-cart:hover,
body .site-header .menu-toggle:hover { border-color: #f1ece2; }
body .site-header .menu-toggle { display: none; }
.site-header .mw-icon,
.site-header .header-cart svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  background: #f1ece2;
  color: #22241f;
  border-radius: 50%;
  font: 600 11px/1 Archivo, sans-serif;
}
.site-header .cart-word { display: inline; }
.site-header :is(a, button):focus-visible {
  outline: 2px solid #f1ece2;
  outline-offset: 5px;
}
.site-footer {
  margin: 0 !important;
  padding: 44px 6% 30px !important;
  background: #1b1e19 !important;
  color: #f1ece2;
  border-top: 1px solid #54574b;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 34px;
  font: 400 15px/1.5 Archivo, sans-serif;
}
.site-footer img { width: 260px; min-width: 240px; height: auto; }
.site-footer .footer-identity p { text-align: left; margin: 20px 0 0; color: #c9cabe; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px 25px; }
.site-footer a { color: #f1ece2; text-decoration: none; font-size: 14px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-footer small { grid-column: 1 / -1; color: #c9cabe; font-size: 13px; }
@media (max-width: 1100px) {
  body .site-header,
  body.immersive-home .site-header { gap: 20px; }
  body .site-header #main-nav { gap: 18px; }
  .site-header .brand,
  .site-header .brand img { width: 240px; }
}
@media (max-width: 1000px) {
  body .site-header .menu-toggle { display: inline-flex; }
  body .site-header #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 6% 22px;
    background: #22241f;
    border-bottom: 1px solid #787a6e;
    box-shadow: 0 15px 24px rgba(0,0,0,.24);
  }
  body .site-header #main-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 25px; }
  body .site-header #main-nav a { padding: 14px 0; font-size: 16px; min-height: 48px; }
}
@media (max-width: 620px) {
  :root { --mw-header-height: 123px; }
  body .site-header,
  body.immersive-home .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 6%;
    align-content: center;
  }
  .site-header .brand,
  .site-header .brand img { width: 240px; }
  .site-header .header-tools { width: 100%; justify-content: space-between; }
  body .site-header .menu-toggle { order: 0; padding: 8px 11px; height: 44px; min-height: 44px; }
  body .site-header .header-cart { order: 1; padding: 8px 11px; height: 44px; min-height: 44px; }
  .site-footer { grid-template-columns: 1fr; gap: 25px; }
  .site-footer nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body .site-header { transition: none; }
}

