/* =========================================================
   ANCHORPOINT ACCOUNTING SERVICES — design tokens
   Palette:  navy #0F2540 (ink)   navy-deep #0A1B2E (bg dark)
             gold #B8912F (accent, muted brass — not neon)
             paper #FAF9F6 (bg light)   line #D9D3C4 (hairline)
             slate #55606B (secondary text)
   Type: Fraunces (display, serif, optical personality)
         Inter (body/UI)
         IBM Plex Mono (figures, ledger data)
   Signature: the "ledger rule" — a hairline with tabular
   numerals that runs through hero, section dividers and
   footer, standing in for the balance line of a ledger.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy: #0F2540;
  --navy-deep: #0A1B2E;
  --navy-soft: #1D3A5F;
  --gold: #B8912F;
  --gold-bright: #D4AF52;
  --paper: #FAF9F6;
  --paper-dim: #F1EEE7;
  --line: #D9D3C4;
  --ink: #16232E;
  --slate: #55606B;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

.figure, .mono, .eyebrow, nav a, .btn {
  font-family: 'IBM Plex Mono', monospace;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.15;
}
.logo img { height: 38px; width: auto; display: block; }
.logo .wordmark { display: flex; flex-direction: column; }
.logo .wordmark .sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-top: 2px;
}
nav.primary {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav.primary a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--navy); }
nav.primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-bright); }

/* ---------- ledger rule (signature element) ---------- */
.ledger-rule {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.ledger-rule .figs { display: flex; gap: 28px; }
.ledger-rule .figs span { color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 14ch;
  margin: 18px 0 24px;
}
.hero p.lede {
  max-width: 46ch;
  color: var(--slate);
  font-size: 1.08rem;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 14px; }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.02rem; }

.band-navy {
  background: var(--navy-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--navy-soft);
}
.band-navy .eyebrow { color: var(--gold-bright); }
.band-navy .eyebrow::before { background: var(--gold-bright); }
.band-navy h2, .band-navy h3 { color: var(--paper); }
.band-navy .ledger-rule { border-top-color: rgba(255,255,255,0.18); color: rgba(250,249,246,0.6); }
.band-navy .ledger-rule .figs span { color: var(--gold-bright); }

/* ---------- grids / cards ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cell {
  background: var(--paper);
  padding: 36px 32px;
}
.cell .figure {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.cell h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cell p { color: var(--slate); font-size: 0.95rem; }
a.cell-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.2s ease;
}
a.cell-link:hover { background: var(--paper-dim); }
a.cell-link:hover h3 { color: var(--gold); }

/* ---------- stats strip ---------- */
.stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat {
  flex: 1;
  padding: 32px;
  border-right: 1px solid var(--line);
}
.stats .stat:last-child { border-right: none; }
.stats .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  color: var(--navy);
  display: block;
}
.stats .label {
  color: var(--slate);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ---------- footer ---------- */
footer.site {
  background: var(--navy-deep);
  color: rgba(250,249,246,0.75);
  padding: 64px 0 28px;
}
footer.site h3 { color: var(--paper); font-size: 1.3rem; }
.foot-col.brand { display: flex; flex-direction: column; gap: 14px; }
.foot-mark {
  background: var(--paper);
  width: 52px;
  height: 52px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.foot-mark img { height: 40px; width: auto; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-col a, .foot-col p {
  display: block;
  color: rgba(250,249,246,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.foot-col a:hover { color: var(--paper); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(250,249,246,0.45);
}

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}
input, select, textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }

/* ---------- misc ---------- */
.pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 20px;
  margin: 4px 6px 4px 0;
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.quote {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.5;
}
.map-block {
  border: 1px solid var(--line);
  background: var(--paper-dim);
  padding: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--slate);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  nav.primary { display: none; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
