/* ==========================================================================
   Title Block — the site's signature element.
   A reusable component styled after the title block found in the corner
   of a real engineering drawing sheet. Used in the hero and the footer.
   ========================================================================== */

.titleblock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-on-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  max-width: 640px;
}

.titleblock__cell {
  padding: 10px 14px;
  border-right: 1px solid var(--line-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
}
.titleblock__cell:nth-child(4n) { border-right: none; }

.titleblock__label {
  display: block;
  color: var(--text-on-ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 3px;
}

.titleblock__value {
  color: var(--text-on-ink);
  letter-spacing: 0.02em;
}

.titleblock__cell--wide { grid-column: span 2; }
.titleblock__cell--full { grid-column: span 4; border-right: none; }

.titleblock--on-paper {
  border-color: var(--line-on-paper);
}
.titleblock--on-paper .titleblock__cell { border-color: var(--line-on-paper); }
.titleblock--on-paper .titleblock__label { color: var(--text-on-paper-mute); }
.titleblock--on-paper .titleblock__value { color: var(--text-on-paper); }

@media (max-width: 640px) {
  .titleblock { grid-template-columns: repeat(2, 1fr); }
  .titleblock__cell:nth-child(4n) { border-right: 1px solid var(--line-on-ink); }
  .titleblock__cell:nth-child(2n) { border-right: none; }
  .titleblock__cell--wide { grid-column: span 2; }
}
