/* ============================================================
   Erhart Industry Solutions LLC, parent company site.
   Same design system as defenestro.com and dromi.com: navy accent,
   sharp corners, hairline rules, mono numerals, no gradients.
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101318;
  --ink-muted: #555b64;
  --ink-faint: #5f6573;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --surface-deep: #e8ebef;
  --rule: #d3d8df;
  --accent: #273b50;
  --accent-hover: #1c2c3e;
  --accent-weak: #e6eaef;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 16px; top: 16px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 4px; text-decoration: none;
}

/* ---------- Header ---------- */
header { border-bottom: 1px solid var(--rule); background: var(--surface); }
header .wrap {
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none;
}
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 10px; font-size: 14px; color: var(--ink-muted);
  text-decoration: none;
}
header nav a:hover { color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 56px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
section.deep { background: var(--surface-deep); }
section.plain { background: var(--surface); }
@media (min-width: 768px) { section { padding: 80px 0; } }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint);
}

h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.03em;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
}
h3 {
  margin: 0 0 8px;
  font-size: 16px; font-weight: 500;
}

.lede {
  margin: 20px 0 0; max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.125rem); color: var(--ink-muted);
}
p { margin: 0 0 16px; max-width: 68ch; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 500; }

.bar { width: 48px; height: 4px; background: var(--accent); margin-bottom: 28px; }

/* ---------- Two-column split ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1.4fr; gap: 56px; }
}

/* ---------- Name entries ---------- */
.name + .name { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--rule); }
.name .word {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.04em; color: var(--accent);
  margin-bottom: 10px;
}
.name .gloss { color: var(--ink-faint); font-style: italic; }

/* ---------- Spec rows ---------- */
dl.rows { margin: 0; border-top: 1px solid var(--rule); }
dl.rows > div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
dl.rows dt { color: var(--ink-muted); }
dl.rows dd {
  margin: 0; text-align: right; color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
dl.rows dd a { color: var(--accent); }

/* ---------- Link cards ---------- */
.cards { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; padding: 28px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
@media (min-width: 768px) {
  .card { padding: 32px 40px 32px 0; }
  .card + .card { padding-left: 40px; border-left: 1px solid var(--rule); }
}
.card .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.card h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 14px; margin-bottom: 14px; }
.card .go { font-size: 14px; font-weight: 500; color: var(--accent); }
.card .go span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.card .go::after { content: " \2192"; }
.card:hover { background: var(--paper); }

/* ---------- Legal article ---------- */
.article { max-width: 68ch; }
.article h2 {
  margin: 36px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.article h2:first-child { margin-top: 0; }
.article ul { margin: 0 0 16px; padding-left: 20px; }
.article li { margin-bottom: 6px; color: var(--ink-muted); }
.article a { color: var(--accent); }

.legal-nav { margin-top: 8px; }
.legal-nav h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 400; margin-bottom: 12px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.legal-nav li { border-bottom: 1px solid var(--rule); }
.legal-nav a {
  display: flex; align-items: center; min-height: 46px;
  font-size: 14px; color: var(--ink-muted); text-decoration: none;
}
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--rule); background: var(--surface); }
footer .wrap { padding-top: 32px; padding-bottom: 32px; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.foot-grid h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 400; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid a {
  display: inline-flex; align-items: center; min-height: 40px;
  font-size: 14px; color: var(--ink-muted); text-decoration: none;
}
.foot-grid a:hover { color: var(--ink); }
address { font-style: normal; font-size: 14px; color: var(--ink-faint); line-height: 1.7; }
.foot-bottom {
  border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 20px;
  font-size: 12px; color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
