/* ==========================================================================
   The Vault (theme-6)
   Warm ink, antique gold, crimson. Combination lock. Vault drawers.
   Not felt rewards, not cyan grid, not night passs, not magenta circuit.
   ========================================================================== */

:root {
  --ink: #140f0c;
  --bronze: #2a2118;
  --panel: #1c1610;
  --gold: #e0b84d;
  --gold-bright: #f6d97a;
  --gold-deep: #a67c1a;
  --crimson: #c81e1e;
  --bone: #f3ead8;
  --fog: #cbbba6;
  --white: #faf6ee;
  --line: rgba(224, 184, 77, 0.28);
  --display: "Gloock", "Times New Roman", serif;
  --ui: "Sora", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --nav: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(200, 30, 30, 0.12), transparent 55%),
    radial-gradient(800px 500px at 0% 80%, rgba(224, 184, 77, 0.08), transparent 50%),
    var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.stamp {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  background: rgba(20, 15, 12, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav.is-tight { --nav: 60px; }
.nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}
.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__lock {
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
}
.brand__lock::before {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border: 1.4px solid var(--gold-bright);
  border-radius: 50%;
}
.brand__lock::after {
  content: "";
  position: absolute;
  left: 50%; top: 14px;
  width: 2px; height: 7px;
  margin-left: -1px;
  background: var(--gold-bright);
  border-radius: 1px;
}
.brand__name {
  font-family: var(--display);
  font-size: 20px;
  color: var(--bone);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav__links { display: flex; gap: 18px; }
.nav__links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fog);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-bright); }
.nav__act { display: flex; align-items: center; gap: 12px; }
.nav__login {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  border-radius: 50%;
  margin-left: auto;
  z-index: 2;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 12px;
  width: 18px; height: 2px;
  background: var(--gold);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav__menu { display: none; }
  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bronze);
    padding: 12px 20px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links { flex-direction: column; gap: 0; }
  .nav.is-open .nav__links a { min-height: 48px; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(224, 184, 77, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---------- footer ---------- */

.foot {
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 14px;
  background: var(--bronze);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.foot h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-bright); }
.foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.foot--slim { padding-top: 24px; background: transparent; }
.foot--slim .foot__legal { border: 0; padding-top: 0; }

@media (max-width: 800px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
}

.tlink { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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