/* Site shell — one header and one footer for every page.
   The homepage overlays its own nav on the photo; every other page uses the
   solid bar below. */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--card) / .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-head-in {
  width: min(92%, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand b { font-weight: 800; }
.brand em { font-style: normal; color: var(--accent); }

.site-nav { display: flex; gap: 4px; margin-right: auto; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-head-act { margin-left: auto; }
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s var(--ease), background .16s var(--ease);
}

.site-nav a:hover { color: var(--ink); background: rgb(var(--card) / .6); }
.site-nav a.on { color: var(--accent); background: rgb(255 107 0 / .12); font-weight: 650; }

.site-head-act { display: flex; align-items: center; gap: 10px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-foot {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgb(var(--card) / .4);
}

.site-foot-in {
  width: min(92%, 1400px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  padding: 48px 0 36px;
}

@media (max-width: 820px) {
  .site-foot-in { grid-template-columns: 1fr 1fr; gap: 26px; }
}

.site-foot-in > div p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 32ch;
}

.site-foot-in nav { display: grid; gap: 10px; align-content: start; }
.site-foot-in nav b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.site-foot-in nav a { font-size: 13.5px; color: var(--dim); text-decoration: none; }
.site-foot-in nav a:hover { color: var(--accent); }

.site-foot-bottom {
  width: min(92%, 1400px);
  margin-inline: auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}

/* Account and admin pages used a narrower shell; align them with the rest. */
.pr-band, .wrap { width: min(92%, 1400px) !important; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  background: rgb(var(--card) / var(--card-a));
  box-shadow: 4px 4px 10px var(--hi), -4px -4px 10px var(--lo);
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-sm:hover { color: var(--accent); }
