/* Site-wide chrome — the header/footer every page shares, wrapping
   whichever page template (Archive, Auth-less, etc.) sits inside <main>.
   Same ink/paper/seal palette as archive.css and auth.css. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Archivo', system-ui, sans-serif;
  color: #1a1815;
  background: #e9e6df;
}

body > main {
  flex: 1;
}

a {
  color: inherit;
}

.site-header {
  background: #14120f;
  color: #f2efe8;
}

.site-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 18px/1 'Archivo', sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2efe8;
  white-space: nowrap;
}

.site-header__glyph {
  font: 400 22px/1 'Newsreader', serif;
  color: #c8342a;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header__nav a {
  font: 700 12px/1 'Archivo', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(242, 239, 232, .68);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-header__nav a:hover {
  color: #f2efe8;
  border-color: #c8342a;
}

.site-header__profile {
  color: #e8634f !important;
}

.site-header__logout {
  background: none;
  border: none;
  margin: 0;
  cursor: pointer;
  font: 700 12px/1 'Archivo', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, .68);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-header__logout:hover {
  color: #f2efe8;
  border-color: #c8342a;
}

.site-footer {
  background: #14120f;
  color: rgba(242, 239, 232, .55);
  text-align: center;
  padding: 22px 24px;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font: 400 13px/1.5 'Newsreader', serif;
  font-style: italic;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 20px;
    gap: 12px;
  }
  .site-header__nav {
    gap: 16px;
  }
}
