/* Stuart B Pollock global header and footer, inspired by RaveRanker. */
:root {
  --stuart-global-black: #15110f;
  --stuart-global-ink: #2c2520;
  --stuart-global-cream: #fff1df;
  --stuart-global-paper: #fff8ec;
  --stuart-global-muted: rgba(255, 248, 236, 0.82);
  --stuart-global-line: rgba(255, 248, 236, 0.18);
  --stuart-global-accent: #d9836c;
}

html,
body {
  overflow-x: hidden;
}

body .site-header,
body #masthead,
body #colophon,
body .site-footer {
  display: none !important;
}

body.admin-bar .stuart-site-header {
  top: 32px;
}

.stuart-site-header,
.stuart-site-footer {
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stuart-site-header *,
.stuart-site-footer * {
  box-sizing: border-box;
}

.stuart-site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  background: var(--stuart-global-black);
  border-bottom: 1px solid rgba(255, 248, 236, 0.16);
}

.stuart-site-header__inner {
  width: min(100%, 1360px);
  min-height: 70px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.stuart-site-header__brand {
  width: min(390px, 42vw);
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--stuart-global-cream);
  color: var(--stuart-global-ink) !important;
  text-decoration: none !important;
  box-shadow: inset 0 0 0 1px rgba(44, 37, 32, 0.08);
}

.stuart-site-header__brand:hover,
.stuart-site-header__brand:focus-visible {
  color: var(--stuart-global-ink) !important;
  transform: translateY(-1px);
}

.stuart-site-header__brand-mark {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 18px;
}

.stuart-site-header__brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 34px;
  height: 13px;
  border-top: 3px solid var(--stuart-global-accent);
  border-radius: 50% 50% 0 0;
  transform: rotate(-8deg);
}

.stuart-site-header__brand-main {
  color: rgba(44, 37, 32, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.stuart-site-header__brand-sub {
  color: #b55b45;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stuart-site-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 25px);
  flex: 1 1 auto;
}

.stuart-site-header__nav a,
.stuart-site-footer__links a {
  color: #fff8ec !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.stuart-site-header__nav a:hover,
.stuart-site-header__nav a:focus-visible,
.stuart-site-footer__links a:hover,
.stuart-site-footer__links a:focus-visible {
  color: var(--stuart-global-accent) !important;
  transform: translateY(-1px);
}

.stuart-site-footer {
  width: 100%;
  margin-top: clamp(34px, 5vw, 52px);
  padding: clamp(24px, 3vw, 32px) 0;
  background: #120d0b;
  color: #fff8ec;
}

body.home .stuart-site-footer {
  margin-top: 0;
}

.stuart-site-footer__inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(420px, 680px) minmax(360px, 460px);
  gap: clamp(42px, 5vw, 68px);
  align-items: start;
  justify-content: center;
}

.stuart-site-footer__copy {
  max-width: 680px;
}

.stuart-site-footer__title {
  display: inline-block;
  margin: 0 0 7px;
  color: #fff8ec !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none !important;
}

.stuart-site-footer__copy p {
  margin: 0;
  color: #fff8ec;
  font-size: 14px;
  line-height: 1.34;
}

.stuart-site-footer__affiliate {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid var(--stuart-global-line);
  color: var(--stuart-global-muted) !important;
  font-size: 13px !important;
  line-height: 1.36 !important;
  max-width: 660px;
}

.stuart-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px 18px;
  padding-top: 4px;
}

.stuart-site-footer__links a {
  font-size: 13px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

@media (max-width: 921px) {
  body.admin-bar .stuart-site-header {
    top: 46px;
  }

  .stuart-site-header__inner {
    min-height: auto;
    padding: 12px 18px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .stuart-site-header__brand {
    width: 100%;
    justify-content: center;
  }

  .stuart-site-header__nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .stuart-site-header__nav a {
    font-size: 14px;
  }

  .stuart-site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 544px) {
  .stuart-site-header__inner {
    padding-inline: 12px;
  }

  .stuart-site-header__brand {
    padding-inline: 14px;
  }

  .stuart-site-header__brand-main {
    font-size: 16px;
  }

  .stuart-site-header__brand-sub {
    font-size: 10px;
  }

  .stuart-site-header__nav {
    gap: 10px 14px;
  }

  .stuart-site-header__nav a {
    font-size: 13px;
  }

  .stuart-site-footer {
    padding: 28px 0;
  }

  .stuart-site-footer__links {
    gap: 12px 18px;
  }
}
