/* =============================================
   THE VAULT — Main Site Stylesheet
   Branding: aligned with lipovski.ca (Hugo Profile)
   ============================================= */

:root {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-nav: #1a1a2e;
  --color-nav-text: #e8e8e8;
  --color-accent: #4a7c59;      /* muted green — archival/heritage feel */
  --color-accent-hover: #3a6347;
  --color-text: #2c2c2c;
  --color-text-muted: #666;
  --color-border: #e0ddd6;
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

/* ── NAV ── */
nav {
  background: var(--color-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-nav-text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-nav-text);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-nav-text);
  display: block;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: var(--color-nav);
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(74,124,89,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  margin-left: 0;
}

.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ── MAIN CONTENT ── */
main { flex: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 4rem 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ── VAULT CARDS (collections grid) ── */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vault-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vault-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-text);
}

.vault-card-badge {
  display: inline-block;
  background: var(--color-nav);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.vault-card-badge.cloud { background: #3a6a8a; }
.vault-card-badge.local { background: var(--color-accent); }
.vault-card-badge.coming-soon { background: #888; }

.vault-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.vault-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.vault-card-arrow {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ── INFO SECTION (about, wiki) ── */
.prose {
  max-width: 740px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.prose ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.prose ul li { margin-bottom: 0.3rem; }

/* ── FOOTER ── */
footer {
  background: var(--color-nav);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-nav);
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 4rem 1.5rem; }

  .btn-outline { margin-left: 0; margin-top: 0.5rem; }

  .hero .btn-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
}
