/* The Ready-Mix Reference — editorial technical reference
   Palette derived from the original site: navy #000066, slate #666699,
   silver #C0C0C0, red accent. Evolved to a modern ink/steel/rust system.
   No CSS framework: the layout is a wrapping flex nav plus a single
   measured column, so no nav item can ever be pushed off-screen. */

:root {
  --ink:        #0f1c3f;
  --ink-2:      #1b2c56;
  --slate:      #47547a;
  --steel:      #6e7891;
  --rule:       #cfd3dc;
  --rule-soft:  #e4e6ec;
  --paper:      #ffffff;
  --paper-2:    #f4f4f1;
  --paper-3:    #ebeae5;
  --rust:       #b8431d;
  --rust-dark:  #8f3315;
  --text:       #1e2432;
  --text-soft:  #4d566b;

  --measure: 40rem;
  --wrap: 74rem;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 2px; }
a:hover { color: var(--rust-dark); text-decoration-color: currentColor; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-width: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

header.site { border-bottom: 3px solid var(--ink); background: var(--paper); }

.brandbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem 1.5rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink); min-width: 0;
}

.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-weight: 800; font-size: 1.45rem;
  border-bottom: 4px solid var(--rust);
}

.bname {
  font-family: var(--sans); font-weight: 800;
  font-size: 1.02rem; line-height: 1.06;
  letter-spacing: .01em; text-transform: uppercase;
}
.bname em { font-style: normal; color: var(--rust); letter-spacing: .16em; font-size: .82rem; }

.tag {
  margin: 0; margin-left: auto;
  font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--steel); min-width: 0;
}

/* wrapping nav — flex-wrap + min-width:0 means links can never be
   pushed past the viewport (the fleet's recurring nav-overflow class) */
.mainnav { background: var(--ink); }
.mainnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; min-width: 0;
}
.mainnav li { min-width: 0; }
.mainnav a {
  display: block;
  padding: .62rem .9rem;
  font-family: var(--sans); font-weight: 600;
  font-size: .795rem; letter-spacing: .085em; text-transform: uppercase;
  color: #cdd4e6; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: #fff; background: var(--ink-2); }
.mainnav a.is-current { color: #fff; border-bottom-color: var(--rust); }

/* ---------- page head ---------- */

.pagehead {
  padding: 2.6rem 0 1.4rem;
  border-bottom: 1px solid var(--rule);
  max-width: 52rem;
}

.kicker {
  margin: 0 0 .7rem;
  font-family: var(--sans); font-weight: 700;
  font-size: .7rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--rust);
}

.pagehead h1 {
  margin: 0;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.7rem, 1.15rem + 2.4vw, 2.85rem);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink);
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.2rem; line-height: 1.5; color: var(--text-soft);
  max-width: 36rem;
}

/* ---------- figures ---------- */

figure { margin: 0; }

.hero-fig { margin: 1.9rem 0 0; }
.hero-fig img { display: block; width: 100%; border-bottom: 4px solid var(--rust); }

.inline-fig { margin: 2.1rem 0; }
.inline-fig img { display: block; width: 100%; border-left: 4px solid var(--ink); }

figcaption {
  margin-top: .55rem;
  font-family: var(--sans); font-weight: 600;
  font-size: .74rem; letter-spacing: .05em;
  color: var(--steel); text-transform: uppercase;
  max-width: 42rem;
}

/* ---------- prose ---------- */

.prose {
  max-width: var(--measure);
  padding: 2.2rem 0 3.6rem;
}

.prose > p, .prose > ul, .prose > ol { margin: 0 0 1.15rem; }

.prose h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.42rem; line-height: 1.22; letter-spacing: -0.005em;
  color: var(--ink);
  margin: 2.5rem 0 .85rem;
  padding-top: .9rem;
  border-top: 2px solid var(--ink);
}

.prose h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.06rem; letter-spacing: .01em;
  color: var(--slate);
  margin: 1.9rem 0 .6rem;
}

.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--rust); }

.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }

.prose a { text-decoration: underline; text-decoration-thickness: 1px; }

.prose > p:first-of-type {
  font-size: 1.14rem;
  color: var(--text-soft);
}

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

footer.site {
  background: var(--paper-2);
  border-top: 3px solid var(--ink);
  padding: 2.6rem 0 2.2rem;
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.6rem 1.5rem;
}

.fcol { min-width: 0; }

.fh {
  margin: 0 0 .6rem;
  font-family: var(--sans); font-weight: 700;
  font-size: .7rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--rust);
}

.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: .35rem; }
.fcol a {
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  color: var(--slate); text-decoration: none;
}
.fcol a:hover { color: var(--rust-dark); text-decoration: underline; }

.fbase {
  margin-top: 2.1rem; padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}
.fbase p {
  margin: 0 0 .8rem;
  font-size: .875rem; line-height: 1.55; color: var(--text-soft);
  max-width: 48rem;
}
.fbase .copy {
  font-family: var(--sans); font-weight: 600;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel); margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 44rem) {
  body { font-size: 1.02rem; }
  .tag { margin-left: 0; width: 100%; font-size: .66rem; }
  .mainnav a { padding: .55rem .7rem; font-size: .72rem; letter-spacing: .06em; }
  .pagehead { padding-top: 1.9rem; }
  .prose { padding-top: 1.7rem; }
}

@media (min-width: 62rem) {
  .prose { max-width: 42rem; }
}

/* Safeguard: content is never hidden waiting on JS. Any reveal animation
   is progressive enhancement only. */
[data-aos] { opacity: 1 !important; transform: none !important; }

@media print {
  header.site, footer.site { display: none; }
  .prose { max-width: none; }
}
