/* ============================================================
   Vane Labs — shared stylesheet for subpages
   Mirrors the design system inlined in index.html so the
   legal / contact / careers pages match the homepage exactly.
   ============================================================ */

:root {
  --forest: #0A4F32;
  --forest-deep: #07331F;
  --gold: #BD8C3D;
  --gold-dark: #887B05;
  --accent: #3CCC08;
  --bg: #FAFAF7;
  --ink: #0E2419;
  --muted: #4A5752;
  --rule: rgba(10, 79, 50, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: var(--forest); color: var(--bg); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- Logo ---------- */
.logo-wrap { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { width: 52px; height: 52px; flex: none; display: block; }
.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}
.logo-text .pipe { color: var(--gold-dark); margin: 0 6px; font-weight: 500; }

/* ---------- Nav ---------- */
nav.site {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 20;
}
nav.site .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
nav.site .nav-links { display: flex; align-items: center; gap: 28px; }
nav.site a.link {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 13px; color: var(--forest); text-decoration: none;
  opacity: 0.85; transition: opacity 0.2s;
}
nav.site a.link:hover { opacity: 1; }
nav.site a.cta {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 13px; color: var(--forest);
  border: 1px solid var(--forest); padding: 9px 18px; border-radius: 2px;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
nav.site a.cta:hover { background: var(--forest); color: var(--bg); }
nav.site .nav-linkedin svg { width: 18px; height: 18px; fill: var(--forest); opacity: 0.7; transition: opacity 0.2s; display: block; }
nav.site .nav-linkedin:hover svg { opacity: 1; }
@media (max-width: 640px) {
  nav.site .nav-links { gap: 14px; }
  nav.site a.link { display: none; }
  nav.site a.cta { font-size: 12px; padding: 8px 14px; }
  .logo-text { font-size: 20px; }
  .logo-mark { width: 44px; height: 44px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 15px; padding: 15px 30px; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--forest); color: var(--bg); border: 1px solid var(--forest); }
.btn-primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--bg); }
.btn-gold {
  background: var(--gold); color: var(--forest-deep); border: 1px solid var(--gold);
  padding: 13px 28px; font-size: 14px; letter-spacing: 0.08em;
}
.btn-gold:hover { background: #D49E46; border-color: #D49E46; }

/* ---------- Page hero (subpage header) ---------- */
main.page { flex: 1 0 auto; }
.page-hero {
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute;
  right: -160px; top: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(10,79,50,0.06), transparent 65%);
  pointer-events: none;
}
.page-hero .eyebrow {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 12px; color: var(--gold-dark);
  margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.page-hero .eyebrow::after { content: ""; flex: none; width: 40px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05; letter-spacing: -0.005em;
  color: var(--forest); margin: 0 0 18px; max-width: 820px;
}
.page-hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted); max-width: 620px; margin: 0;
}
.page-hero .meta {
  margin-top: 22px; font-family: 'Rajdhani', sans-serif; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 12px; color: var(--muted);
}

/* ---------- Prose (legal + long-form copy) ---------- */
.prose { padding: 64px 0 88px; }
.prose .container { max-width: 760px; }
.prose h2 {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: clamp(22px, 2.8vw, 28px);
  color: var(--forest); letter-spacing: 0.01em;
  margin: 52px 0 14px; line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .idx {
  color: var(--gold); font-weight: 500; font-size: 0.7em;
  margin-right: 12px; letter-spacing: 0.08em;
}
.prose h3 {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 18px; color: var(--forest);
  margin: 28px 0 10px; letter-spacing: 0.01em;
}
.prose p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.prose ul { color: var(--muted); font-size: 16px; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold); }
.prose a:hover { color: var(--gold-dark); }
/* Buttons inside prose keep their own styling, not the inline-link treatment */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: var(--bg); }
.prose a.btn-ghost { color: var(--forest); }
.prose a.btn-ghost:hover { color: var(--bg); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }
.prose .callout {
  background: #FFFFFF; border: 1px solid var(--rule);
  border-left: 2px solid var(--gold);
  padding: 20px 24px; margin: 28px 0; border-radius: 2px;
}
.prose .callout p:last-child { margin-bottom: 0; }

/* ---------- Careers ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 8px 0 0;
}
.value {
  background: var(--bg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background 0.2s;
}
.value:hover { background: #FFFFFF; }
.value .num { font-family: 'Rajdhani', sans-serif; font-weight: 500; font-size: 12px; color: var(--gold); letter-spacing: 0.2em; }
.value h3 { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 20px; color: var(--forest); margin: 0; letter-spacing: 0.02em; }
.value p { color: var(--muted); margin: 2px 0 0; font-size: 15px; line-height: 1.6; }

.role {
  border: 1px solid var(--rule); border-radius: 2px;
  background: #FFFFFF; padding: 26px 28px; margin: 0 0 14px;
}
.role h3 { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 20px; color: var(--forest); margin: 0 0 6px; }
.role .tag { font-family: 'Rajdhani', sans-serif; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; color: var(--gold-dark); }
.role p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* ---------- Contact section (reused from home) ---------- */
section.contact {
  background: var(--forest); color: var(--bg);
  border-bottom: none; padding: 96px 0;
  position: relative; overflow: hidden;
}
section.contact::before {
  content: ""; position: absolute; left: -180px; bottom: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at center, rgba(189,140,61,0.18), transparent 60%);
  pointer-events: none;
}
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 72px; align-items: start;
}
.contact-intro { max-width: 460px; grid-column: 1; grid-row: 1; }
.contact-form { grid-column: 2; grid-row: 1; }
.section-eyebrow {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 12px; color: var(--gold); margin-bottom: 18px;
}
.contact-title {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--bg); margin: 0 0 18px;
  line-height: 1.08; letter-spacing: -0.005em;
}
.contact-sub { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 420px; margin: 0 0 26px; }
.contact-details { margin: 0; padding: 0; list-style: none; }
.contact-details li { color: rgba(255,255,255,0.78); font-size: 15px; margin: 0 0 10px; display: flex; gap: 10px; }
.contact-details a { color: var(--gold); text-decoration: none; }
.contact-details a:hover { color: #D49E46; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .field { display: flex; flex-direction: column; }
.contact-form label {
  font-family: 'Rajdhani', sans-serif; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 8px;
}
.contact-form label .optional {
  color: rgba(255,255,255,0.4); font-weight: 400;
  letter-spacing: 0.1em; text-transform: none; margin-left: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--bg); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 2px;
  padding: 12px 14px; transition: border-color 0.15s, background 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.contact-form .btn-gold { align-self: flex-start; margin-top: 4px; }
.contact-success {
  grid-column: 1; grid-row: 1; align-self: end;
  color: var(--bg); font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: -0.005em; font-size: clamp(26px, 3.8vw, 34px);
  line-height: 1.35; border-left: 2px solid var(--gold);
  padding: 10px 0 10px 22px; max-width: 480px; margin-bottom: 70px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.contact-success[hidden] { display: none; }
.contact-success.show { opacity: 1; transform: translateY(0); }
@media (max-width: 820px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .contact-intro, .contact-form { grid-column: 1; grid-row: auto; }
  .contact-success { grid-column: 1; grid-row: auto; align-self: start; margin-bottom: 0; }
}

/* ---------- Footer ---------- */
footer.site {
  flex: none;
  padding: 44px 0 30px;
  background: var(--forest-deep);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
footer.site .footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 28px;
  padding-bottom: 26px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer.site .logo-wrap { gap: 10px; }
footer.site .logo-mark { width: 32px; height: 32px; }
footer.site .logo-text { font-size: 16px; color: var(--gold); }
footer.site .logo-text .pipe { color: var(--gold-dark); }
footer.site .footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
}
footer.site .footer-nav a {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  letter-spacing: 0.06em; font-size: 14px;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: color 0.2s;
}
footer.site .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
footer.site a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer.site .social-links { display: flex; align-items: center; gap: 16px; }
footer.site .social-links svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.75); transition: fill 0.2s; }
footer.site .social-links a:hover svg { fill: var(--gold); }
@media (max-width: 640px) {
  footer.site .footer-nav { flex-direction: column; gap: 12px; }
}

@media (max-width: 720px) {
  .page-hero { padding: 60px 0 44px; }
  .prose { padding: 48px 0 64px; }
  section.contact { padding: 68px 0; }
}
