/* Technology On Time — design system
   Implements TnT_Website_Content_and_Layout_Spec.docx §2.
   Every value below is from the spec; none are invented. */

:root {
  /* §2.3 Color — dark theme.
     The spec's palette assumes a light page. Kept on a black ground
     (#0A0F1C, the existing site's theme colour) the light values fail
     WCAG AA, so the roles below are re-derived for dark while keeping
     the spec's intent. Contrast ratios against the page are noted. */
  --ink:     #0A0F1C;  /* now the PAGE background, not the headline colour */
  --heading: #FFFFFF;  /* 18.6:1 */
  --body:    #C7CDD8;  /* 11.5:1 — running prose */
  --slate:   #A7B0C0;  /* 8.3:1 — eyebrows, meta, labels.
                          Spec's #5A6478 is 3.4:1 here and fails. */
  --rule:    #232A3A;  /* hairlines; spec's #D8DCE3 glares on black */
  --surface: #121A2A;  /* alternating band, lifted off the page */

  /* [SELECT ONE] in the spec — AG decision, still open.
     Placeholder: the same federal blue lightened for a dark ground.
     #1F4E79 is only 1.9:1 on black; this is 8.5:1.
     Change these two values to restyle every link and CTA. */
  --accent:      #7FB3E0;
  --accent-hover:#A8CCEC;

  /* §2.2 Spacing scale — 4·8·12·16·24·32·48·64·96·128 */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px;
  --s6:32px; --s7:48px; --s8:64px; --s9:96px; --s10:128px;

  --container: 1120px;  /* content max width */
  --measure:   68ch;    /* running prose max */
  --measure-lede: 62ch; /* hero lede max */
  --gutter:    24px;
  --section-y: 112px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* §2.2 Breakpoints 640 · 900 · 1200 */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-y: 64px; }
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;      /* §2.1 Body */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 16px; line-height: 1.6; } }

/* ---------- §2.4 Accessibility ---------- */

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: var(--s3) var(--s4); z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: var(--s3); }

/* Visible keyboard focus on every interactive element. */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout ---------- */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.measure   { max-width: var(--measure); }
main > section { padding: var(--section-y) 0; }
.surface { background: var(--surface); }
.hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- §2.1 Type ---------- */

.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; font-weight: 600;
  text-transform: uppercase; color: var(--slate);
  margin: 0 0 var(--s5);
}
@media (max-width: 640px) { .eyebrow { font-size: 11px; } }

h1 {
  font-size: 56px; line-height: 1.05; font-weight: 600;
  letter-spacing: -0.02em; color: var(--heading);
  margin: 0 0 var(--s5); max-width: 20ch;
}
@media (max-width: 640px) { h1 { font-size: 34px; line-height: 1.12; } }

h2 {
  font-size: 32px; line-height: 1.2; font-weight: 600;
  letter-spacing: -0.01em; color: var(--heading);
  margin: 0 0 var(--s5);
}
@media (max-width: 640px) { h2 { font-size: 25px; } }

h3 {
  font-size: 20px; line-height: 1.35; font-weight: 600;
  color: var(--heading); margin: 0 0 var(--s3);
}
@media (max-width: 640px) { h3 { font-size: 18px; } }

.lede {
  font-size: 19px; line-height: 1.55; font-weight: 400;
  max-width: var(--measure-lede); margin: 0 0 var(--s7);
}
@media (max-width: 640px) { .lede { font-size: 17px; line-height: 1.6; } }

p { max-width: var(--measure); }
p + p { margin-top: var(--s5); }

.meta { font-size: 13px; line-height: 1.5; color: var(--slate); }
@media (max-width: 640px) { .meta { font-size: 12px; } }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */

.masthead { border-bottom: 1px solid var(--rule); background: var(--ink); }
.masthead .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5);
}
.wordmark {
  display: flex; align-items: center; gap: var(--s3);
  font-weight: 600; color: var(--heading); text-decoration: none;
  font-size: 15px; letter-spacing: -0.01em;
}
.wordmark img { height: 26px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: var(--s5); }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--body);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--heading); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 640px) {
  .masthead .container { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .nav { gap: var(--s4); }
  .nav a { font-size: 14px; }
}

/* ---------- §3.1 Hero (dark ink band, inverted type) ---------- */

.hero { background: var(--ink); color: var(--body); padding: 0; }
/* Spec 3.1: single column, LEFT-aligned, max 900px -- so the column is
   capped inside the normal 1120px container rather than centred, which
   keeps the hero flush with the masthead wordmark. */
.hero .container { padding-top: var(--s10); padding-bottom: var(--s9); }
.hero .container > * { max-width: 900px; }
@media (max-width: 640px) {
  .hero .container { padding-top: var(--s8); padding-bottom: var(--s7); }
}
.hero h1 { color: var(--heading); }

/* ---------- CTA ---------- */

.cta {
  display: inline-block; font-weight: 600; font-size: 15px;
  padding: var(--s3) var(--s5);
  border: 1px solid currentColor; border-radius: 2px;
  text-decoration: none;
}
.hero .cta { color: var(--heading); }
.hero .cta:hover { background: var(--heading); color: var(--ink); }
/* Solid CTA: light accent fill with dark ink type reads strongest on black. */
.cta-solid {
  background: var(--accent); border-color: var(--accent); color: var(--ink);
}
.cta-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }

/* ---------- §3.2 Credential bar ---------- */

.credbar { border-bottom: 1px solid var(--rule); padding: 0; }
.credbar .container { padding-top: var(--s7); padding-bottom: var(--s7); }
/* Three items now, not the spec's four: a 2-up mobile collapse would
   leave one orphaned on its own row, so it goes single-column instead. */
.credgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
@media (max-width: 640px) { .credgrid { grid-template-columns: 1fr; gap: var(--s5); } }
.credlabel {
  font-size: 11px; letter-spacing: 0.12em; font-weight: 600;
  text-transform: uppercase; color: var(--slate);
  margin: 0 0 var(--s2);
}
@media (max-width: 640px) { .credlabel { font-size: 10px; } }
.credvalue {
  font-size: 30px; line-height: 1.1; font-weight: 600;
  color: var(--heading); margin: 0;
  font-variant-numeric: tabular-nums;
}
.credvalue.small { font-size: 20px; line-height: 1.3; }
@media (max-width: 640px) {
  .credvalue { font-size: 24px; }
  .credvalue.small { font-size: 16px; }
}

/* ---------- §3.3 Service blocks ---------- */

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7); }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; gap: var(--s6); } }
.cols3 p { max-width: 42ch; margin: 0; }

.cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s7); }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- §3.4 Closing line ---------- */

.closing { background: var(--surface); text-align: center; }
.closing p {
  font-size: 20px; line-height: 1.35; font-weight: 600;
  color: var(--heading); max-width: 34ch; margin: 0 auto;
}
@media (max-width: 640px) { .closing p { font-size: 18px; } }

/* ---------- Capability / service areas ---------- */

.area + .area { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--rule); }

/* ---------- Careers ---------- */

.roles { list-style: none; padding: 0; margin: 0; }
.roles li { padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.roles li:last-child { border-bottom: 1px solid var(--rule); }
.role-title { font-weight: 600; color: var(--heading); font-size: 17px; }
.plainlist { padding-left: var(--s5); margin: 0; }
.plainlist li { margin-bottom: var(--s2); }

/* ---------- Contact ---------- */

.narrow { max-width: 560px; margin: 0 auto; }
.field { display: block; margin-bottom: var(--s5); }
.field span {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--heading); margin-bottom: var(--s2);
}
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--body);
  padding: var(--s3); border: 1px solid var(--rule); border-radius: 2px;
  background: var(--surface);
}
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- §8 Global footer ---------- */

.sitefooter {
  background: var(--surface); color: var(--slate);
  border-top: 1px solid var(--rule);
  padding: var(--s7) 0; text-align: center;
}
.sitefooter p { font-size: 13px; line-height: 1.5; margin: 0 auto; max-width: none; }
@media (max-width: 640px) { .sitefooter p { font-size: 12px; } }
.sitefooter a { color: #C7CDD8; }

/* ---------- Unresolved placeholders (§9) ----------
   Deliberately conspicuous so none of these ship by accident. */
.todo {
  color: #FFD79A; background: rgba(255,215,154,.10);
  border: 1px dashed #8A6A2E; border-radius: 2px;
  padding: 0 6px; font-size: .9em; font-weight: 600;
  white-space: nowrap;
}

/* Accessible section headings that carry no visual weight in the design.
   Spec 3.3 wants H3 block titles with no section heading shown; a hidden
   H2 keeps the outline legal (2.4) without adding invented visible copy. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Contracting standing (prime vs sub) ---------- */
/* Two bordered cards so the distinction is the first thing read,
   rather than a claim buried in a paragraph. */
.standing {
  border: 1px solid var(--rule); border-radius: 2px;
  background: var(--surface); padding: var(--s6);
}
.standing .credlabel { margin-bottom: var(--s3); }
.standing p { max-width: none; margin: 0; }
.standing + .standing { margin: 0; }
