/* Header, nav, footer, drawer (mobile menu) */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);  /* solid — no backdrop-filter */
  border-bottom: 1px solid var(--paper-alt);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--ink);
}
.brand__mark {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1;
}
.brand__mark::after {
  content: "·"; color: var(--ruby); margin: 0 2px;
}
.brand__sub {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
}

.main-nav {
  display: none;
}
.main-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav__link {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.main-nav__link:hover, .main-nav__link[aria-current="page"] {
  border-bottom-color: var(--ruby);
  color: var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px;
  font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  min-height: 48px;
}
.btn--primary { background: var(--ruby); color: var(--paper); }
.btn--primary:hover { background: var(--ruby-hover); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--midnight { background: var(--midnight); color: var(--paper); }
.btn--midnight:hover { background: var(--midnight-hover); color: var(--paper); }

.header-cta { display: none; }

.burger {
  appearance: none; background: transparent; border: 1px solid var(--ink);
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.burger__bars {
  position: relative; width: 18px; height: 12px;
}
.burger__bars::before, .burger__bars::after,
.burger__bars span {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--ink);
}
.burger__bars::before { top: 0; }
.burger__bars span { top: 50%; transform: translateY(-50%); }
.burger__bars::after { bottom: 0; }

@media (min-width: 960px) {
  .burger { display: none; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
}

/* Drawer (mobile menu) */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateY(-12px); opacity: 0;
  pointer-events: none;
  transition: transform var(--t-med), opacity var(--t-med);
}
.drawer[data-open="true"] {
  transform: none; opacity: 1; pointer-events: auto;
}
.drawer__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px;
}
.drawer__close {
  appearance: none; background: transparent; border: 1px solid var(--paper);
  color: var(--paper); width: 44px; height: 44px;
  border-radius: var(--r-sm); font-size: 22px; line-height: 1;
}
.drawer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.drawer__link {
  display: block; padding: 14px 0;
  color: var(--paper); text-decoration: none;
  font-family: var(--font-display); font-size: 28px; line-height: 1.1;
  border-bottom: 1px solid rgba(244,245,248,0.12);
}
.drawer__link:hover { color: var(--ruby); }
.drawer__cta { margin-top: 32px; }

@media (min-width: 960px) {
  .drawer { display: none; }
}

/* Footer */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: 64px 0 32px; margin-top: 96px;
}
.site-footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--ruby); color: var(--paper); }

.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-col h4 {
  color: var(--paper); margin-bottom: 14px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }

.footer-brand__about {
  color: var(--steel-light); font-size: 14px; max-width: 36ch;
  margin-top: 10px;
}

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(244,245,248,0.1);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px; color: var(--steel-light);
}
.footer-risk {
  margin-top: 24px; padding: 16px;
  background: rgba(204,0,51,0.08); border-left: 3px solid var(--ruby);
  font-size: 13px; color: var(--paper-alt); line-height: 1.55;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px; color: var(--steel);
  padding: 16px 0; border-bottom: 1px solid var(--paper-alt);
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/"; color: var(--line);
}
.breadcrumbs a { color: var(--steel); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ruby); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
