/* Shared site chrome — header/nav + footer — used by both the React
   homepage and the standalone content pages. Self-contained (literal
   colours, class selectors only) so it is safe to load alongside any
   other stylesheet. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 0, 70, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 109, 0, 0.25);
}
.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 36px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.brand img { width: 26px; height: 26px; display: block; }
.brand b {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 8px 26px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 2px;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #ff9e00; }
/* more specific than `.nav-links a` so the pill keeps its own padding/colour */
.nav-links a.nav-cta {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: #ff6d00;
  color: #fff;
  padding: 10px 28px;
  margin-left: 10px;
  border-radius: 999px;
  border: 1px solid #ff6d00;
  box-shadow: 0 2px 14px rgba(255, 109, 0, 0.2);
  white-space: nowrap;
  transition: transform 0.15s, background-color 0.15s;
}
.nav-links a.nav-cta:hover { transform: translateY(-1px); color: #fff; background: #e55f00; border-color: #e55f00; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 109, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 109, 0, 0.12);
  color: #ff9e00;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 59px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: rgba(36, 0, 70, 0.99);
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255, 109, 0, 0.25);
    max-height: calc(100vh - 59px);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-links,
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px clamp(16px, 4vw, 36px); font-size: 0.8rem; }
  .nav-links a.nav-cta {
    margin: 12px clamp(16px, 4vw, 36px) 0;
    text-align: center;
    padding: 12px 26px;
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: #0a0a0f;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
}
.foot-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px clamp(16px, 4vw, 36px);
}
.foot-wrap .fn {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0;
}
.foot-links a {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.18s;
}
.foot-links a:hover { color: #ff9e00; }
.foot-meta {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  line-height: 1.8;
}
.foot-meta a { color: rgba(255, 255, 255, 0.55); }
