/* Design tokens — values fixed by KICKOFF.md D9 / Brief 1 Part B. Do not add others. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Italic-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
}

:root {
  /* Typeface */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (rem) */
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.375rem;
  --fs-h2: 1.75rem;
  --fs-h1: clamp(2.25rem, 1.8rem + 1.6vw, 2.75rem);
  --lh-body: 1.55;
  --lh-heading: 1.2;
  --measure: 70ch;

  /* Color (light only) */
  --ink: #14213D;
  --text: #1F2933;
  --muted: #52606D;
  --paper: #FFFFFF;
  --paper-alt: #F5F7FA;
  --rule: #D9DEE5;
  --accent: #B45309;
  --focus: #1D4ED8;

  /* Spacing scale: 4, 8, 12, 16, 24, 32, 48, 64, 96 px */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --max-width: 1120px;
  --section-pad: 2.5rem;   /* 40px mobile */
  --touch-min: 44px;
  --transition: 150ms ease;
}

@media (min-width: 640px) {
  :root {
    --section-pad: 4rem;   /* 64px desktop */
    --fs-body: 1.0625rem;  /* 17px desktop, 16px mobile */
  }
}

/* Base elements. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
  max-width: var(--measure);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Layout and components. CSS only, no framework. */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Skip link: first focusable element on every page */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.skip-link:hover {
  color: var(--paper);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  min-height: var(--touch-min);
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark-name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.wordmark-sub {
  margin-top: var(--space-1);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 var(--space-1);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 639.98px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
  }
  .site-nav li + li {
    border-top: 1px solid var(--rule);
  }
}

@media (min-width: 640px) {
  .site-nav ul {
    flex-direction: row;
    gap: var(--space-5);
  }
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}
.section--alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-intro {
  font-size: var(--fs-lead);
}

/* Hero */
.hero {
  padding: calc(var(--section-pad) * 1.25) 0 var(--section-pad);
}
.hero h1 {
  max-width: 22ch;
  margin-bottom: var(--space-5);
}
.lead {
  font-size: var(--fs-lead);
  max-width: 62ch;
}
.credential {
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.button:hover {
  background: var(--paper);
  color: var(--accent);
}
.button[disabled] {
  cursor: progress;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-weight: 500;
}

/* Numbered service blocks */
.services {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-6) 0;
  padding: 0;
  max-width: none;
  list-style: none;
  counter-reset: service;
}
.services > li {
  counter-increment: service;
  padding-top: var(--space-5);
  border-top: 2px solid var(--ink);
}
.services > li::before {
  content: counter(service, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.services p {
  margin: 0;
}
@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-7);
  }
}
.also {
  font-size: 0.9375rem;
  color: var(--text);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}
.also-label {
  font-weight: 600;
  color: var(--ink);
}

/* Government data block */
.data {
  display: grid;
  grid-template-columns: 1fr;
  margin: var(--space-6) 0 0;
  max-width: none;
  border-top: 1px solid var(--rule);
}
.data > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}
.data dt {
  color: var(--muted);
  font-weight: 500;
}
.data dd {
  margin: 0;
  color: var(--text);
}
.data .mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.naics {
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .data > div {
    grid-template-columns: 14rem 1fr;
  }
}

/* Contact form */
.contact-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }
}
.form {
  max-width: 40rem;
}
.field {
  margin-bottom: var(--space-5);
}
.field label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-weight: 500;
}
.field .req {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
}
.field textarea {
  min-height: 10rem;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--focus);
}
.field [aria-invalid="true"] {
  border-color: var(--accent);
  border-width: 2px;
}
.field-error {
  margin: var(--space-2) 0 0;
  color: var(--text);
  font-weight: 500;
}
.field-error::before {
  content: "Error: ";
  font-weight: 600;
}
.field-error:empty {
  display: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-slot:empty {
  display: none;
}
.turnstile-slot {
  margin-bottom: var(--space-5);
  min-height: 65px;
}
.form-status {
  padding: var(--space-5);
  border-left: 4px solid var(--ink);
  background: var(--paper);
  font-size: var(--fs-lead);
}
.form-status--error {
  border-left-color: var(--accent);
}
.form-status:empty {
  display: none;
}
.alt-line {
  margin-top: var(--space-5);
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-alt);
  font-size: 0.9375rem;
}
.site-footer p {
  margin-bottom: var(--space-2);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
}

/* Plain content pages */
.prose h2 {
  margin-top: var(--space-6);
  font-size: var(--fs-h3);
}
.prose .meta {
  color: var(--muted);
}

/* Print-styled documents (capability statement, Section 889 letter) on screen */
.doc {
  max-width: 8.5in;
  margin: var(--space-7) auto;
  padding: var(--space-7);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.doc-page {
  background: var(--paper-alt);
  padding: 1px var(--space-4);
}
.doc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--ink);
}
.doc-head .wordmark {
  min-height: 0;
}
.doc-title {
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--ink);
  margin: 0;
  font-size: var(--fs-h2);
}
.doc-date {
  margin: 0;
  color: var(--muted);
}
.doc h2 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc p,
.doc ul,
.doc ol {
  max-width: none;
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin-bottom: var(--space-1);
}
.doc-cols {
  display: grid;
  gap: 0 var(--space-6);
}
@media (min-width: 720px) {
  .doc-cols {
    grid-template-columns: 1fr 1fr;
  }
}
.doc-foot {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.signature {
  margin-top: var(--space-6);
}
.signature p {
  margin: 0;
}

/* Print: capability statement and Section 889 letter each print to one US Letter page. */

@media print {
  @page {
    size: letter portrait;
    margin: 0.6in;
  }

  html,
  body {
    background: #fff;
    color: #000;
    font-size: 9.5pt;
    line-height: 1.4;
  }

  .skip-link,
  .site-header,
  .site-footer {
    display: none !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  h1,
  h2,
  h3,
  p,
  li,
  dt,
  dd {
    color: #000;
  }

  .doc-page {
    padding: 0;
    background: #fff;
  }

  .doc {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .doc-head {
    padding-bottom: 8pt;
    margin-bottom: 10pt;
    border-bottom: 1.5pt solid #14213D;
  }

  .doc-head .wordmark,
  .doc-head .wordmark:hover {
    color: #14213D;
  }

  .doc-title {
    font-size: 15pt;
  }

  .doc-date {
    color: #000;
  }

  .doc h2 {
    margin: 10pt 0 3pt;
    font-size: 9.5pt;
    break-after: avoid;
  }

  .doc p,
  .doc ul,
  .doc ol {
    margin-bottom: 5pt;
  }

  .doc li {
    margin-bottom: 2pt;
  }

  .doc-cols {
    grid-template-columns: 1fr 1fr;
    gap: 0 18pt;
  }

  .doc-foot {
    margin-top: 10pt;
    padding-top: 6pt;
    border-top: 0.75pt solid #999;
  }

  .signature {
    margin-top: 18pt;
  }
}
