/* TBM — Building Safety Act compliance platform
   Palette derives from site materials: poured concrete, ink, brass survey markers.
   No web fonts, no analytics, no cookies: the site keeps the same promises the product does. */

:root {
  --paper:  #E6E7E3;
  --card:   #FBFBF9;
  --ink:    #121A24;
  --slate:  #33414F;
  --mid:    #64717E;
  --rule:   #C6C8C2;
  --rule-2: #DCDDD8;
  --brass:  #A8752A;
  --verify: #2E6B4E;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono:  ui-monospace, 'SF Mono', SFMono-Regular, 'Cascadia Mono', Menlo, Consolas, monospace;

  --wrap: 70rem;
  --prose: 42rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px;
}

/* ---------- structural label: the mono eyebrow, used for record metadata ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 0.75rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1.1rem; }
.lede { font-size: 1.1875rem; color: var(--slate); }
.muted { color: var(--mid); }
.small { font-size: 0.9375rem; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.head-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem; flex-wrap: wrap;
}
.mark {
  font-family: var(--mono); font-size: 0.9375rem; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: var(--ink); font-weight: 600;
}
.mark span { color: var(--brass); }
.mark small {
  display: block; font-family: var(--sans); font-size: 0.6875rem;
  letter-spacing: 0.02em; text-transform: none; color: var(--mid); font-weight: 400;
}
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a { font-size: 0.9375rem; text-decoration: none; color: var(--slate); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--brass); }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.9375rem;
  padding: 0.55rem 1.1rem; border: 1px solid var(--ink); border-radius: 2px;
  text-decoration: none; color: var(--ink); background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--card); }
.btn-solid { background: var(--ink); color: var(--card); }
.btn-solid:hover { background: var(--slate); color: var(--card); }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
section.tight { padding: 3rem 0; }
.hero { padding: 5rem 0 4rem; }

/* ---------- signature element: the record card ----------
   This is what a golden thread entry looks like when it is provable.
   Deliberately borrows the grammar of a drawing title block. */
.record {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  max-width: 40rem;
  box-shadow: 0 1px 0 rgba(18,26,36,0.04), 0 8px 24px -18px rgba(18,26,36,0.35);
}
.record-head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--rule-2);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--mid);
}
.record-body { padding: 1.25rem 1.25rem 0.5rem; }
.record-title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 1.25rem; line-height: 1.25; }
.record-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem; border-top: 1px solid var(--rule-2); padding-top: 1rem;
}
.field dt {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--mid); margin: 0 0 0.15rem;
}
.field dd { margin: 0; font-size: 0.9375rem; }
.field dd .sub { display: block; color: var(--mid); font-size: 0.8125rem; }
.record-foot {
  border-top: 1px solid var(--rule-2); margin-top: 1rem;
  padding: 0.85rem 1.25rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--mid);
}
.hash { word-break: break-all; }
.intact { color: var(--verify); white-space: nowrap; }
.intact::before { content: "\2713\00a0"; font-weight: 700; }

/* ---------- content blocks ---------- */
.cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.col h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.col p { font-size: 0.9375rem; color: var(--slate); margin: 0; }

.split { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; gap: 2rem; } }

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--mid); font-weight: 400;
  border-bottom: 1px solid var(--rule);
}
td.j { font-family: var(--mono); font-size: 0.75rem; color: var(--mid); white-space: nowrap; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1.1rem; }
ul.plain li { padding: 0.55rem 0 0.55rem 1.4rem; border-bottom: 1px solid var(--rule-2); position: relative; font-size: 0.9375rem; }
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 0.4rem; height: 1px; background: var(--brass);
}

.note {
  border-left: 2px solid var(--brass); padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--slate); font-size: 0.9375rem;
}

.status { font-family: var(--mono); font-size: 0.75rem; }
.status.now { color: var(--verify); }
.status.soon { color: var(--brass); }

/* ---------- footer ---------- */
.site-foot { padding: 3rem 0 4rem; font-size: 0.875rem; color: var(--mid); }
.foot-in { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--slate); }

@media (max-width: 40rem) {
  .record-grid { grid-template-columns: 1fr; }
  .head-in { min-height: 0; padding: 0.9rem 0; }
  .site-nav { margin-left: 0; width: 100%; gap: 1rem; }
  section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
