/* James Baxter — baxter.consulting
   Static single-page consulting site. Design tokens per Claude-design handoff
   ("AI-Assisted Delivery"). No build step; served as static HTML/CSS. */

:root {
  --bg: #0d1117;         /* page + cell background */
  --bg-raised: #10151d;  /* headline offer card only */
  --line: #1d2530;       /* ALL hairline borders */
  --line-soft: #2a3441;  /* secondary button border */
  --ink: #e7ecf2;        /* headings, primary text */
  --body: #aeb9c6;       /* service body copy */
  --sub: #9fabb9;        /* hero sub-line */
  --mut: #93a0ae;        /* muted text, captions, nav links, cases */
  --faint: #5b6875;      /* card indices, footer meta */
  --acc: #4d9fff;        /* accent (electric blue) */
  --acc-on: #0a0e14;     /* text on accent-filled button */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::selection { background: rgba(77, 159, 255, .3); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: 'IBM Plex Mono', monospace; }
.acc { color: var(--acc); }
.mut { color: var(--mut); }

/* The "frame": 1px left/right borders on every block's container, so the
   hairlines run continuously through nav, sections and footer. */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navin { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.navlinks { display: flex; gap: 26px; align-items: center; }
.nlink { font-size: 13px; color: var(--mut); text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.nlink:hover { color: var(--ink); }

/* --- buttons --- */
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid transparent;
  display: inline-block;
  white-space: nowrap;
}
.btn-pri { background: var(--acc); color: var(--acc-on); font-weight: 500; transition: filter 150ms ease; }
.btn-pri:hover { filter: brightness(1.15); }
.btn-sec { border-color: var(--line-soft); color: var(--ink); transition: border-color 150ms ease, color 150ms ease; }
.btn-sec:hover { border-color: var(--acc); color: var(--acc); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* --- hero --- */
.hero { padding-top: 104px; padding-bottom: 112px; }
.label { font-size: 13px; letter-spacing: .1em; color: var(--acc); margin: 0; }
.h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 26px 0 0;
  max-width: 880px;
}
.sub { font-size: 17px; line-height: 1.7; color: var(--sub); max-width: 740px; margin: 28px 0 0; }
.ctarow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 44px; }

/* --- sections --- */
.sec {
  border-top: 1px solid var(--line);
  padding-top: 88px;
  padding-bottom: 96px;
  scroll-margin-top: 72px;
}

/* --- services --- */
.lead-card {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 48px;
  margin-top: 40px;
}
.idx { font-size: 12px; letter-spacing: .1em; color: var(--faint); margin: 0; }
.svc-t { font-size: 23px; font-weight: 600; letter-spacing: -.01em; margin: 12px 0 14px; }
.svc-b { font-size: 15.5px; line-height: 1.75; color: var(--body); margin: 0; }
.metric { border-left: 1px solid var(--line); padding-left: 44px; display: flex; flex-direction: column; justify-content: center; }
.mval { font-size: 60px; font-weight: 500; line-height: 1; color: var(--acc); }
.mcap { font-size: 12px; line-height: 1.7; color: var(--mut); margin-top: 14px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.card { border: 1px solid var(--line); padding: 36px 40px; }
.case {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mut);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 18px 0 0;
}

/* Inline links in service copy — the nav, footer and buttons style their own. */
.svc-b a, .case a {
  color: var(--acc); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
  transition: border-color 150ms ease;
}
.svc-b a:hover, .case a:hover { border-bottom-color: var(--acc); }

/* --- cell grids (ways to engage, track record) ---
   gap:1px over a --line background produces shared hairline dividers. */
.egrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.ecell { background: var(--bg); padding: 30px 26px; }
.et { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 16px 0 10px; }
.ed { font-size: 14px; line-height: 1.7; color: var(--mut); margin: 0; }
.qual { font-size: 13px; color: var(--mut); margin: 22px 0 0; }

/* --- track record --- */
.tval { font-size: 30px; font-weight: 500; color: var(--ink); }
.tcap { font-size: 13.5px; line-height: 1.65; color: var(--mut); margin: 12px 0 0; }

/* --- contact --- */
.cline {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  max-width: 840px;
  margin: 22px 0 0;
}
.cmail {
  display: inline-block;
  margin-top: 42px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--acc);
  text-decoration: none;
  border-bottom: 1px solid var(--acc);
  padding-bottom: 5px;
  transition: filter 150ms ease;
}
.cmail:hover { filter: brightness(1.15); }

/* --- footer --- */
.foot { border-top: 1px solid var(--line); }
.footin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 28px;
}
.fmeta { font-size: 12px; color: var(--faint); }
.flinks { display: flex; gap: 24px; flex-wrap: wrap; }
.flink { font-size: 12.5px; color: var(--mut); text-decoration: none; transition: color 150ms ease; }
.flink:hover { color: var(--acc); }

/* --- responsive --- */
@media (max-width: 980px) {
  .lead-card { grid-template-columns: 1fr; gap: 28px; }
  .metric { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 26px; }
  .egrid { grid-template-columns: 1fr 1fr; }
  .navlinks { gap: 18px; }
}

@media (max-width: 880px) {
  .nlink { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 72px; padding-bottom: 80px; }
  .sec { padding-top: 64px; padding-bottom: 72px; }
  .svc-grid { grid-template-columns: 1fr; }
  .egrid { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .lead-card { padding: 30px 26px; }
}
