/* Site header & footer — same chrome as the home mockup on every page */

.site-header,
.site-footer {
  --chrome-bg: #faf7f1;
  --chrome-line: #a9a099;
  --chrome-ink: #171310;
  --chrome-accent: #ad5f61;
  --chrome-panel: #fffdf9;
}

.site-header .container,
.site-footer .container,
.page-hero .container {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0;
  border: 0;
  background: var(--chrome-bg);
  backdrop-filter: none;
}

.home-page .site-header {
  position: relative;
  top: auto;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 94px;
  padding: 0;
  border-bottom: 1px solid var(--chrome-line);
}

.site-header .brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--chrome-ink);
  text-decoration: none;
}

.site-header .brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  text-align: left;
}

.site-header .brand img,
.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-header .brand span,
.footer-brand span {
  display: inline;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.footer-brand span {
  font-size: 30px;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--chrome-ink);
  letter-spacing: 0.01em;
}

.site-header .nav a {
  position: relative;
  padding: 8px 0;
  color: var(--chrome-ink) !important;
  text-decoration: none;
}

.site-header .brand,
.site-header .brand span,
.footer-brand,
.footer-brand span,
.footer-inner > span {
  color: var(--chrome-ink) !important;
}

.site-header .nav a:hover {
  color: var(--chrome-accent) !important;
}

.site-header .nav a[aria-current="page"] {
  color: var(--chrome-ink);
}

.site-header .nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--chrome-accent);
}

.site-header .nav-sep {
  display: inline-block;
  margin-inline: 15px;
  color: var(--chrome-ink);
  font-size: 18px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.site-header .nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  background: var(--chrome-panel);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.site-header .nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--chrome-ink);
}

.site-footer {
  margin-top: 2rem;
  padding: 17px 0 20px;
  border: 0;
  border-top: 1px solid var(--chrome-line);
  background: var(--chrome-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--chrome-ink);
  font-family: var(--serif);
  font-size: 17px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-nav a {
  color: var(--chrome-ink) !important;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--chrome-accent) !important;
}

@media (max-width: 820px) {
  .header-inner {
    position: relative;
    min-height: 76px;
  }

  .site-header .brand img {
    width: 42px;
    height: 42px;
  }

  .site-header .brand span {
    font-size: 31px;
  }

  .site-header .nav-toggle {
    display: inline-flex;
  }

  .site-header .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px;
    border: 1px solid var(--chrome-line);
    border-radius: 0 0 8px 8px;
    background: var(--chrome-panel);
    box-shadow: none;
    font-size: 21px;
  }

  .site-header .nav.is-open {
    display: flex;
  }

  .site-header .nav-sep {
    display: none;
  }

  .site-header .nav a {
    padding: 10px 8px;
  }

  .site-header .nav a[aria-current="page"]::after {
    display: none;
  }

  .site-header .nav a[aria-current="page"] {
    color: var(--chrome-accent);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 70px;
  }

  .site-header .brand img {
    width: 37px;
    height: 37px;
  }

  .site-header .brand span {
    font-size: 28px;
  }

  .site-header .nav-toggle {
    width: 40px;
    height: 40px;
  }
}
