/* shared.css — Common styles for SAS Ventures */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --surface: #151720;
  --border: rgba(255,255,255,0.06);
  --text: #d8d9de;
  --text-bright: #ecedf1;
  --text-muted: #7c8194;
  --rose: #c9889a;
  --nav-bg: rgba(15, 17, 23, 0.85);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html.light {
  --bg: #f5f4f2;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --text: #3d3e46;
  --text-bright: #1a1b22;
  --text-muted: #71747f;
  --rose: #a5576d;
  --nav-bg: rgba(245, 244, 242, 0.9);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.nav-logo:hover { opacity: 1; }
.nav-logo svg { height: 30px; width: auto; display: block; overflow: visible; }
.nav-logo span { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; font-style: italic; color: var(--text-bright); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 36px; }

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover { color: var(--text-bright); opacity: 1; }

/* Section title — reusable heading */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 10px 0 18px;
}

/* Section rule — reusable gradient divider */
.section-rule {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-rule::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, var(--rose), transparent 60%);
}

@media (max-width: 768px) {
  .section-rule { padding: 0 24px; }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-bright); opacity: 1; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-eyebrow {
  height: 8px;
  width: auto;
  color: var(--rose);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.theme-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.theme-toggle button:hover { color: var(--text-bright); }
.theme-toggle button.active { background: var(--border); color: var(--text-bright); }
.theme-toggle button svg { width: 14px; height: 14px; }

/* Responsive — shared */
@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; height: 56px; }
  .nav-logo svg { height: 24px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 0.75rem; }
  footer { padding: 32px 24px; }
}

@media (max-width: 420px) {
  .nav-links { gap: 16px; }
}
