/* shared.css — reset, variables, nav & footer styles used across pages */

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

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/styles/fonts/lora-600.woff2') format('woff2');
}

:root {
  --bg: #FAF9F7;
  --text: #333130;
  --text-secondary: #4c4c4b;
  --text-tertiary: #908D88;
  --border: #e8e6e2;
  --accent: #1a1a1a;
  --logo-font: 'Lora', serif;
  --heading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space-sm: 24px;
  --space-md: 48px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px var(--space-md);
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0), 0 4px 12px rgba(0,0,0,0);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--logo-font);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  flex: 0 0 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-download:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.nav-download svg {
  width: 14px;
  height: 14px;
}

footer {
  padding: 32px var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--logo-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.footer-logo .brand-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  :root {
    --space-sm: 20px;
    --space-md: 24px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
  }
}
