/* Abraxor — agency site. No JS, system fonts, WCAG AAA contrast targets. */
:root {
  --ink: #101d33;        /* deep navy — headings, bands */
  --body: #24303f;       /* body text, ~12:1 on white */
  --muted: #47546a;      /* secondary text, ~7.2:1 on white */
  --gold: #e8b64c;       /* accent — decorative + on navy only (9:1 on --ink) */
  --paper: #ffffff;
  --wash: #f4f2ec;       /* warm section wash */
  --line: #d8d5cc;
  --maxw: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
}

h1, h2, h3, .brand, .site-header nav, .button, .case-tag, .stats, .skip-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }

a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }
a:hover { color: #000; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand::after { content: "."; color: var(--gold); }
.site-header ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  flex-wrap: wrap;
}
.site-header ul a { text-decoration: none; font-weight: 500; }
.site-header ul a:hover { text-decoration: underline; }

/* Sections */
main section { padding: 4.5rem 1.5rem; }
main section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding-top: 6rem; padding-bottom: 5rem; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 56rem;
  margin: 0 auto;
}
.lede {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--muted);
  max-width: 46rem;
  margin: 1.5rem auto 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
}
.button:hover { background: #000; color: #fff; }
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.button-quiet:hover { background: var(--wash); color: var(--ink); }

/* Stats band */
.stats { background: var(--ink); padding: 2.5rem 1.5rem; }
.stats dl {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  justify-content: space-between;
}
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stats dt { color: #d3d9e4; font-size: 0.95rem; margin-top: 0.35rem; }

/* Case studies */
#work { background: var(--wash); }
#work h2, #capabilities h2, #about h2, #contact h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 auto 2.5rem;
}
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.case-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.case h3 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); margin: 0 0 1rem; }
.case p { margin: 0 0 1rem; }
.case ul { margin: 0; padding-left: 1.25rem; }
.case li { margin-bottom: 0.6rem; }
.case li::marker { color: var(--gold); }

/* Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.cap {
  border-top: 3px solid var(--gold);
  background: var(--wash);
  padding: 1.5rem;
  border-radius: 0 0 8px 8px;
}
.cap h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.cap p { margin: 0; font-size: 1.02rem; }

/* About / contact */
#about p, #contact p { max-width: 46rem; }
#contact { background: var(--wash); text-align: center; }
#contact p { margin-left: auto; margin-right: auto; }
.contact-line { margin-top: 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { max-width: var(--maxw); margin: 0.4rem auto; }

@media (max-width: 40rem) {
  main section { padding: 3rem 1.25rem; }
  .case { padding: 1.5rem; }
  .stats dl { gap: 1.5rem 2.5rem; justify-content: flex-start; }
}
