/* eeqatools.com
   Palette derives from the materials: aluminum jacketing, mineral wool, carbon
   steel pipe, and the thermal gradient across them. Hot face rust, cold face
   teal. Rust and wool appear only inside the cross-section; teal is the only
   interactive color. */

:root {
  --ground: #e6e8e7;      /* aluminum jacketing in daylight */
  --panel: #f3f4f3;       /* calcium silicate, chalky white */
  --ink: #23262a;         /* charcoal, cool-leaning; not black */
  --ink-quiet: #565c63;   /* 4.6:1 on --ground */
  --rule: #c8ccca;

  --jacket: #8c9296;      /* stainless banding */
  --wool: #b99e6b;        /* mineral wool */
  --pipe: #2e3236;        /* carrier pipe wall */
  --process: #a6432a;     /* hot face */
  --cold: #1a565e;        /* cold face — the one interactive color, 6.4:1 */
  --cold-lift: #0f3d44;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --measure: 60ch;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

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

figure {
  margin: 0;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
}

/* ---- Signature: the strata band ------------------------------------------
   Read left to right it is a rule. Read top to bottom it is a section through
   an insulated pipe: jacketing, seam, insulation, pipe wall, process. */

.strata {
  height: 14px;
  background: linear-gradient(
    to bottom,
    var(--jacket) 0 3px,
    var(--panel) 3px 4px,
    var(--wool) 4px 10px,
    var(--pipe) 10px 11px,
    var(--process) 11px 14px
  );
}

/* ---- Shell --------------------------------------------------------------- */

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

/* Longhand only — these elements also carry .wrap, and a `padding` shorthand
   here would silently zero .wrap's horizontal gutter. */
.masthead {
  padding-top: clamp(2.5rem, 8vw, 4.5rem);
}

.wordmark {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wordmark .wordmark__dot {
  color: var(--process);
}

.standfirst {
  margin: 0.875rem 0 0;
  max-width: 46ch;
  font-size: 1.0625em;
  color: var(--ink-quiet);
}

/* ---- Hero cross-section (home only) --------------------------------------
   The most characteristic object in the trade, labeled the way a submittal
   drawing labels it. Bar heights are proportional to real layer thickness. */

.section {
  margin: clamp(2.5rem, 7vw, 3.75rem) 0 0;
}

.section__layers {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.section__layer {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: stretch;
  gap: 0;
}

.section__bar {
  border-right: 1px solid var(--rule);
}

.section__layer:not(:last-child) .section__bar {
  border-bottom: 1px solid var(--panel);
}

.section__layer[data-layer="jacket"] .section__bar {
  background: var(--jacket);
  min-height: 1.25rem;
}
.section__layer[data-layer="wool"] .section__bar {
  background: var(--wool);
  min-height: 3.5rem;
}
.section__layer[data-layer="pipe"] .section__bar {
  background: var(--pipe);
  min-height: 1rem;
}
.section__layer[data-layer="process"] .section__bar {
  background: var(--process);
  min-height: 2rem;
}

.section__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.section__layer:last-child .section__label {
  border-bottom: 0;
}

.section__name {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-quiet);
}

.section__caption {
  margin: 0.625rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-quiet);
}

/* ---- Content blocks ------------------------------------------------------- */

.block {
  margin: clamp(2.25rem, 6vw, 3.25rem) 0 0;
}

.block__head {
  margin: 0 0 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.block p {
  margin: 0 0 0.875rem;
}

.block p:last-child {
  margin-bottom: 0;
}

.plainlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plainlist li {
  position: relative;
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.plainlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6875em;
  width: 0.5rem;
  height: 1px;
  background: var(--jacket);
}

.plainlist li:last-child {
  margin-bottom: 0;
}

.addr {
  font-family: var(--mono);
  font-size: 0.9375em;
  overflow-wrap: anywhere;
}

.addr--display {
  display: inline-block;
  margin: 0.25rem 0 0;
  padding: 0.4375rem 0.6875rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cold);
  font-size: 1em;
}

/* ---- Callout: the line a suspicious reader is looking for ----------------- */

.callout {
  margin: clamp(2.25rem, 6vw, 3.25rem) 0 0;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--process);
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* ---- Mascot -------------------------------------------------------------- */

.mascot {
  margin: clamp(2.25rem, 6vw, 3.25rem) 0 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mascot__img {
  display: block;
  width: 128px;
  height: 128px;
  flex: none;
  background: var(--panel);
}

.mascot__cap {
  margin: 0;
  flex: 1 1 16ch;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-quiet);
}

/* ---- Links --------------------------------------------------------------- */

a {
  color: var(--cold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cold-lift);
  text-decoration-thickness: 2px;
}

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

.next {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* ---- Footer -------------------------------------------------------------- */

.foot {
  margin: clamp(3rem, 9vw, 5rem) 0 0;
  padding-top: 1.25rem;
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--ink-quiet);
}

.foot p {
  margin: 0 0 0.375rem;
}

.foot p:last-child {
  margin-bottom: 0;
}

/* ---- Quality floor -------------------------------------------------------- */

@media (max-width: 24rem) {
  .section__layer {
    grid-template-columns: 3.5rem 1fr;
  }
}

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