/* Accretion Systems LLC
   Design language: editorial authority — a formal engagement memo, not a
   SaaS template. Cream paper, near-black ink, one muted oxblood accent used
   only for rules and the pull-quote. Spectral (serif) carries headlines and
   pull-quotes; Public Sans (the U.S. Web Design System's own typeface — the
   audience here is federal contracting officers) carries everything else.
   Russo One is scoped to the wordmark alone (.brand) — a deliberate third
   voice, bold/geometric/technical, picked by Dan over a rendered comparison
   of 8 candidates. Not used anywhere else; don't let it creep into headings.
   See .impeccable/surfaces/templates-index-html.md for the full direction
   contract, and PRODUCT.md for product truth.
   No eyebrow/kicker labels and no decorative section numbering — both are
   an explicit ban in impeccable's craft floor ("no brief earns it back");
   headings carry the section framing directly instead. */

/* self-hosted — style.css's own privacy.html says "no tracking, no
   third-party scripts"; loading fonts.googleapis.com would contradict that
   on every page load. */
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/static/fonts/public-sans-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/static/fonts/spectral-normal-500.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/static/fonts/spectral-normal-600.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("/static/fonts/spectral-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral"; font-style: italic; font-weight: 500;
  font-display: swap; src: url("/static/fonts/spectral-italic-500.woff2") format("woff2");
}
@font-face {
  font-family: "Russo One"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/static/fonts/russo-one.woff2") format("woff2");
}

:root {
  --bg:      #f6f1e7;
  --ink:     #1b1712;
  --mut:     #6b6255;
  --line:    #ded4bf;
  --acc:     #8a4030;
  --acc-ink: #f6f1e7;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --rule: 1px solid var(--line);

  --t-sm:  0.875rem;   /* floor: tools/mobile-qa.js gates <14px */
  --t-lg:  clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --t-xl:  clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f; --ink: #ede6d6; --mut: #a89e8c;
    --line: #362f24; --acc: #c17257; --acc-ink: #17140f;
  }
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* sticky header is up to ~122px tall when it wraps on narrow phones (measured via
   playwright: #federal landed at top:0 under a 122px header bottom edge) —
   scroll-padding-top keeps any in-page anchor clear of it at every width.
   ponytail: one fixed value for both header states; revisit if the header grows. */
html { scroll-padding-top: 132px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- grid ---------- */

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(1.75rem, 4vw, 3rem);
}

/* asymmetric default: content sits offset right, leaving a bare left margin —
   the margin itself is the device now, no label in it (craft floor bans
   eyebrow/kicker labels; see the file header note). */
.body { grid-column: 4 / 13; }
.full { grid-column: 1 / 13; }
.measure { grid-column: 1 / 8; }
.form-col { grid-column: 1 / 8; }
.aside { grid-column: 9 / 13; }

@media (max-width: 860px) {
  .body, .full, .measure, .form-col, .aside { grid-column: 1 / 13; }
}

/* ---------- type ---------- */

h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.006em; }
h1 { font-size: var(--t-2xl); line-height: 1.03; }
h2 { font-size: var(--t-xl); line-height: 1.14; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0; letter-spacing: -0.006em; }
p { margin: 0 0 1em; color: var(--mut); max-width: 66ch; }
p:last-child { margin-bottom: 0; }
.lede { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--ink);
  font-size: var(--t-lg); line-height: 1.5; max-width: 46ch; }

a { color: var(--acc); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: var(--gutter); top: 0.5rem; text-decoration: none; }

/* ---------- masthead ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 122px;
}
.brand {
  display: inline-flex; align-items: center; gap: 1.1rem;
  color: var(--ink); font-family: "Russo One", var(--sans); font-weight: 400;
  font-size: 2.5rem; letter-spacing: -0.01em;
  padding-block: 0.5rem; min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 90px; height: 90px;
  border-radius: 12px;
  align-self: center;
}

nav.main-nav { display: flex; gap: clamp(0.5rem, 2vw, 1.75rem); align-items: center; }
nav.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: 0.25rem;
  color: var(--mut); font-size: var(--t-sm); font-weight: 500;
}
nav.main-nav a:hover { color: var(--ink); text-decoration: none; }
nav.main-nav a[aria-current="page"] {
  color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc);
}
nav.main-nav a.cta {
  background: var(--acc); color: var(--acc-ink);
  padding-inline: 1rem; font-weight: 600;
}
nav.main-nav a.cta:hover { color: var(--acc-ink); text-decoration: underline; }

@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 0.5rem; }
  nav.main-nav { width: 100%; justify-content: space-between; gap: 0.25rem; }
}

/* ---------- sections ---------- */

section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section + section { border-top: var(--rule); }

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.75rem, 5vw, 4.5rem); }
.hero h1 { max-width: 15ch; }
.hero .measure { grid-column: 8 / 13; align-self: end; }
@media (max-width: 860px) { .hero .measure { grid-column: 1 / 13; } }

.hero-ctas { display: flex; gap: 0.85rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.6rem 1.6rem;
  font: 600 var(--t-sm)/1 var(--sans);
  border: 1px solid var(--ink); cursor: pointer;
  border-radius: 0;
}
.btn-primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

/* ---------- content blocks ---------- */

.items { display: grid; column-gap: var(--gap); row-gap: clamp(1.75rem, 3vw, 2.5rem); }
.items-2 { grid-template-columns: repeat(2, 1fr); }
.items-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .items-2, .items-3 { grid-template-columns: 1fr; } }

/* a block is a rule and whitespace, not a box */
.item { border-top: 1px solid var(--ink); padding-top: 1rem; }
.item h3 { margin-bottom: 0.5rem; }
.item p { font-size: var(--t-sm); }

.panel { border-top: 1px solid var(--ink); padding-top: 1.25rem; }

.badge {
  display: inline-block;
  border: 1px solid var(--acc); color: var(--acc);
  padding: 0.3rem 0.6rem;
  font-size: var(--t-sm); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.clean { list-style: none; padding: 0; margin: 0; }
.clean li {
  padding: 0.5rem 0; border-top: var(--rule);
  color: var(--mut); font-size: var(--t-sm);
}
.clean li:first-child { border-top: none; padding-top: 0; }

.facts { margin: 0; font-size: var(--t-sm); }
.facts div { display: flex; gap: 1rem; padding: 0.5rem 0; border-top: var(--rule); }
.facts div:first-child { border-top: none; padding-top: 0; }
.facts dt { flex: 0 0 9rem; color: var(--ink); font-weight: 600; }
.facts dd { margin: 0; color: var(--mut); }
@media (max-width: 480px) { .facts div { display: block; } .facts dt { margin-bottom: 0.15rem; } }

/* pull-quote — the one loud gesture the system allows, held to the accent rule */
blockquote.pull {
  margin: 0; padding-left: 1.4rem;
  border-left: 3px solid var(--acc);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: var(--t-xl); line-height: 1.28; color: var(--ink);
}
blockquote.pull cite {
  display: block; margin-top: 0.9rem;
  font-family: var(--sans); font-style: normal; font-weight: 600;
  font-size: var(--t-sm); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mut);
}

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.field label { font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-bottom-color: var(--ink);
  padding: 0.65rem 0.75rem; font: inherit; resize: vertical;
  border-radius: 0;
}
.field textarea { min-height: 8rem; }
.field input:focus, .field textarea:focus { border-color: var(--acc); }
.form-error {
  border-top: 2px solid var(--acc);
  padding-top: 0.6rem; margin-bottom: 1.5rem;
  color: var(--ink); font-weight: 600; font-size: var(--t-sm);
}
.form-note { color: var(--mut); font-size: var(--t-sm); margin-top: 0.9rem; }

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 2.5rem;
  font-size: var(--t-sm); color: var(--mut);
}
footer.site-footer .row { row-gap: 1.25rem; }
footer.site-footer a { color: var(--mut); }
footer.site-footer a:hover { color: var(--acc); }
footer.site-footer .col { grid-column: span 4; }
@media (max-width: 860px) { footer.site-footer .col { grid-column: 1 / 13; } }

.mt { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- motion ---------- */
/* one signature moment, not scattered hovers: the pull-quote — the system's
   own single loud gesture — settles into place as it enters view. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}
