*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #222;
}

/* ── Site header ─────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo {
  height: 52px;
  width: 52px;
  border-radius: 8px;
  flex-shrink: 0;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.tagline {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin-top: 0.15rem;
}

/* ── Site header main ────────────────────────────────────── */

.site-header-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Site nav ────────────────────────────────────────────── */

.site-nav {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-link {
  padding: 0.3rem 0.7rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-radius: 5px;
}

.nav-link:hover { color: #222; background: #e4e4e4; }

.nav-link[aria-current="page"] {
  color: #222;
  background: #ddd;
  font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-logo { height: 40px; width: 40px; }
  h1 { font-size: 1.1rem; }
  .site-header { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .site-nav { margin-left: 0; align-self: flex-end; }
  .nav-link { padding: 0.3rem 0.5rem; font-size: 0.775rem; }
}

/* ── Page heading ────────────────────────────────────────── */

.page-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

/* ── Site footer ─────────────────────────────────────────── */

.site-footer {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #999;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.6rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: #555; }
.site-footer .sep { opacity: 0.4; }
