/* ==========================================================
   Built by Habit — shared design system
   Used by every page: tokens, reset, header, footer, buttons.
   Page-specific sections stay inline in each page's <style>.
   ========================================================== */

:root{
  /* Brand palette (builtbyhabit-brand v1) */
  --bg: #0B0A08;        /* Ink */
  --bg-panel: #17140F;  /* Charcoal */
  --gold: #C9A84C;      /* Gold — the master */
  --gold-bright: #E6CB77; /* Gold light */
  --gold-deep: #8A6D14;  /* Deep gold — for light grounds */
  --ink: #EDE7D8;       /* Bone */
  --ink-muted: #968C79; /* Stone */
  --line: #2a251e;
  --max: 1120px;
  --radius: 2px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', system-ui, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-family:'Space Grotesk', sans-serif;
  line-height:1.08;
  margin:0;
  font-weight:700;
  letter-spacing:-0.01em;
}
.mono{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
a{color:inherit;text-decoration:none;}
:focus-visible{outline:2px solid var(--gold-bright); outline-offset:3px;}
img{max-width:100%;display:block;}

.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}
.eyebrow{
  font-size:12px;
  color:var(--gold);
  margin-bottom:14px;
  display:block;
}
section{padding:96px 0;}
.divider{border:none; border-top:1px solid var(--line); margin:0;}

/* ---------- Scroll reveal (shared utility) ---------- */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
}

/* ---------- Shared section head (eyebrow + h2, centered) ---------- */
.section-head{text-align:center; margin-bottom:56px;}
.section-head h2{font-size:clamp(26px,3vw,36px);}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,10,8,0.88);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 24px; max-width:var(--max); margin:0 auto;
}
.logo{
  font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:16px; letter-spacing:0.02em;
  color:var(--ink-muted); display:inline-flex; align-items:center; gap:8px;
}
.logo span{color:var(--gold);}
.logo-icon{width:20px; height:20px; display:block;}
.nav-links{display:flex; gap:32px; font-size:14px;}
.nav-links a{color:var(--ink-muted); transition:color .2s;}
.nav-links a:hover, .nav-links a.current{color:var(--gold-bright);}
.nav-cta{
  font-size:13px; padding:9px 18px; border:1px solid var(--gold); border-radius:var(--radius);
  color:var(--gold); transition:all .2s;
}
.nav-cta:hover{background:var(--gold); color:var(--bg);}

/* ---------- Buttons (shared) ---------- */
.cta-row{display:flex; gap:16px; flex-wrap:wrap;}
.btn{
  display:inline-block; padding:14px 26px; font-size:14.5px; font-weight:600;
  border-radius:var(--radius); transition:all .2s; border:1px solid transparent;
}
.btn-primary{background:var(--gold); color:var(--bg);}
.btn-primary:hover{background:var(--gold-bright);}
.btn-ghost{border-color:var(--line); color:var(--ink);}
.btn-ghost:hover{border-color:var(--gold); color:var(--gold-bright);}

/* ---------- Footer ---------- */
footer{padding:56px 0 40px;}
.foot-grid{display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:32px;}
.foot-links{display:flex; gap:28px; font-size:14px; color:var(--ink-muted);}
.foot-links a:hover{color:var(--gold-bright);}
.foot-bottom{
  margin-top:40px; padding-top:24px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; font-size:12.5px; color:var(--ink-muted); flex-wrap:wrap; gap:12px;
}

/* ---------- Shared responsive base ---------- */
@media (max-width: 860px){
  .nav-links{display:none;}
  section{padding:64px 0;}
}
