/* ============================================================
   yourcadre.css — Shared stylesheet for YourCadre
   Import this before page-specific <style> blocks.
   ============================================================ */

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

/* ── CSS custom properties ── */
:root {
  --green: #5A7A62;
  --green-light: #76987E;
  --green-pale: #D8E6DB;
  --green-dark: #3D5A44;
  --ink: #F3F0E8;
  --ink-2: #E9E5DA;
  --ink-3: #DDD8CB;
  --muted: #3E4239;
  --muted-2: #4D5248;
  --border: rgba(0,0,0,0.07);
  --border-light: rgba(0,0,0,0.11);
  --white: #1A1E1B;
}

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(243,240,232,0.92);
  backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1;
}
.nav-logo-wordmark em { font-style: normal; color: var(--green); }
.nav-logo-tag {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.nav-logo em { font-style: normal; color: var(--green); }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-2);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  color: #fff !important;
  background: var(--green);
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--green-dark); color: #fff !important; }

.nav-back {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--white); }
.nav-back::before { content: '←'; }

/* ── Buttons ── */
.btn-primary {
  background: var(--green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(0,0,0,0.25); }

.btn-secondary {
  background: var(--ink-3);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--ink-2); }

/* ── Section labels ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--green);
}

.section-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-heading em { font-style: normal; color: var(--green); }

.section-body {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--muted-2);
  max-width: 520px;
  letter-spacing: 0.01em;
}
.section-body strong { color: var(--white); font-weight: 500; }

/* ── Prose ── */
.prose { font-size: 15px; line-height: 1.8; color: var(--muted-2); }
.prose strong { color: var(--white); font-weight: 500; }
.prose p + p { margin-top: 1rem; }

.lead {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted-2);
  max-width: 620px;
  margin-top: 1.5rem;
}
.lead strong { color: var(--white); font-weight: 500; }

/* ── Ticker ── */
.ticker {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.ticker-item span { color: var(--green); margin-right: 0.75rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
}
.badge-green { background: rgba(90,122,98,0.12); color: var(--green); border: 0.5px solid rgba(90,122,98,0.3); }
.badge-gray  { background: var(--ink-3); color: var(--muted-2); border: 0.5px solid var(--border-light); }

/* ── Footer ── */
footer {
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.3px;
}
.footer-logo em { font-style: normal; color: var(--green-dark); }
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Shared responsive breakpoints ── */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
    height: auto;
  }
  .nav-logo-icon { height: 32px; }
  .nav-logo-wordmark { font-size: 20px; }
  .nav-logo-tag { display: none; }
  .nav-links { display: none; }
  .nav-back { font-size: 10px; }

  section, main { padding: 3rem 1.25rem; }

  .section-heading { font-size: clamp(26px, 7vw, 38px); }

  footer {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  footer { padding: 1.25rem 1rem; }
}

