/* Base: reset, typography, layout primitives, nav, footer */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold); color: #181207; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-s); transition: top 0.15s;
}
.skip-link:focus { top: 8px; text-decoration: none; }

h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.18; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 14px; }
section { padding: 76px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { font-weight: 700; letter-spacing: 0.5px; font-size: 17px; color: var(--txt); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--txt); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--txt); font-size: 18px; padding: 6px 12px; cursor: pointer;
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--dim-2); font-size: 13.5px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-links a { color: var(--dim); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-top: 1px solid var(--line); }
  .foot-inner { flex-direction: column; }
}
