/* ── shared.css — deFAId Unified Design System ── */
/* Reference: sfs-library.html design. Light-only, no dark mode. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:       #F5F4F0;
  --surface:  #FFFFFF;
  --surface2: #EDEAE4;
  --border:   #D8D5CC;
  --border2:  #B8B5AC;
  --text:     #0D0D0B;
  --muted:    #525048;
  --faint:    #888580;
  --gold:     #9A7418;
  --gold-dim: rgba(154,116,24,.10);
  --gold-border: rgba(154,116,24,.25);
  --accent:   #9A7418;
  --accent-bg: rgba(154,116,24,.08);
  --positive: #16a34a;
  --negative: #dc2626;
  --radius:   4px;
  --max-w:    1080px;
}

/* ── Reset basics ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,244,240,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  letter-spacing: .5px;
}
.logo-mark span { color: var(--gold); }
.logo-sep {
  width: 1px;
  height: 18px;
  background: var(--border2);
}
.logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--faint);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--text); }
.nav-cta {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #0D0D0B;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: opacity .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: .8; }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  margin-left: auto;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--faint);
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--faint);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 4px; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
