/* Display and reading sizes share the project's local variable fonts. */
:root {
  --type-data: Saira, "Noto Sans SC", sans-serif;
  --type-secondary: #b9b6af;
  --type-caption: #a6a29a;
}

.page {
  font-weight: 400;
  letter-spacing: .008em;
  line-height: 1.78;
  line-break: strict;
}

.h1 {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 410;
  letter-spacing: -.02em;
  line-height: 1.23;
}

.h1 .hl {
  font-weight: 500;
}

.h2 {
  font-size: clamp(1.85rem, 3.15vw, 3.05rem);
  font-weight: 440;
  letter-spacing: -.014em;
  line-height: 1.32;
}

.st .h2, .cap-title, .cfg-material-name, .material-name {
  font-weight: 480;
  letter-spacing: -.012em;
  line-height: 1.4;
  text-wrap: balance;
}

.material-name {
  font-size: clamp(1.5rem, 2.1vw, 2.125rem);
}

.lead, details.q p {
  font-size: clamp(1rem, 1.16vw, 1.125rem);
  line-height: 1.85;
  letter-spacing: .01em;
  color: var(--type-secondary);
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}

.sheet, .lbl, .tb .k {
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .055em;
  color: var(--type-caption);
}

.en {
  font-weight: 550;
  letter-spacing: .06em;
  color: var(--type-caption);
}

.hero .mono.in.d1, .hstage .hint, .cats, .mq .mono {
  letter-spacing: .045em;
}

.nav-a, .btn, .icon-btn, .seg, .chip {
  font-weight: 500;
  letter-spacing: .02em;
}

.sl li, .m-body, .card p {
  letter-spacing: .01em;
  line-height: 1.75;
}

.m-vt {
  font-weight: 450;
  letter-spacing: .13em;
}

details.q summary {
  font-weight: 490;
  line-height: 1.6;
  letter-spacing: .005em;
}

/* Compact technical lettering for measurements, drawing references and units. */
#config label, #config .tb .v, .spec-row, .sheet .sn, .rail span,
.st svg text {
  --mono: var(--type-data);
  font-variant-numeric: lining-nums tabular-nums;
}

#config .tb .v, .spec-row, .sheet .sn, .rail span,
.st svg :is(.svt, .svt-c, .svt-r, .svt-k) {
  font-family: var(--type-data);
  letter-spacing: .015em;
}

footer .tb .v {
  font-weight: 450;
  font-size: .9375rem;
}

@media (max-width: 960px) {
  .h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
  .m-vt { letter-spacing: .02em; }
}

@media (max-width: 640px) {
  .h1 { font-size: clamp(1.75rem, 8.7vw, 2.75rem); line-height: 1.3; }
  .h2 { font-size: clamp(1.625rem, 6.9vw, 2.125rem); }
  .lead, details.q p { line-height: 1.78; }
  .cats, .btn { letter-spacing: .015em; }
}

#config .tb .v.drawing-code {
  font-size: .75rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.proper-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.proper-logo-nav {
  width: clamp(155px, 19vw, 234px);
}

.proper-logo-footer {
  width: min(100%, 280px);
}

/* Keep the brand surfaces above the page's decorative grain (z-index: 40). */
.nav {
  z-index: 42;
}

.page > footer {
  position: relative;
  z-index: 41;
  background-color: var(--bg);
}
