/* Shared header + footer chrome — single source of truth (see CL-1).
   Loaded by every page via <link rel="stylesheet" href="_partials/site-chrome.css">. */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand span {
  font-family: 'Petrona', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: inherit;
}

.nav-links a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.profile-avatar:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar svg {
  width: 22px;
  height: 22px;
}

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.72);
  margin-top: 8px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 56px) 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Petrona', serif;
  font-size: 18px;
  color: var(--cream);
  text-decoration: none;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-blessing {
  text-align: center;
  font-size: 13px;
  color: rgba(250, 247, 241, 0.45);
  padding-top: 18px;
  border-top: 1px solid rgba(250, 247, 241, 0.14);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(250, 247, 241, 0.4);
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand span {
    font-size: 18px;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }
}
