/* HEADING TYPE: Orbitron 400, capitals.
   Previous heading font: Outfit (weight 300, tracking -.025em, sentence case; font-size per rule).
   To go back, remove the <link rel="stylesheet" href="headings.css"> line from home.html and
   contact.html. Every older heading rule in home.css / components.css / contact.css is untouched. */
:root {
  --font-head: "Orbitron", "Outfit", system-ui, sans-serif;
  --head-lg: clamp(26px, 3.3vw, 48px);   /* the statement lines: hero, Welcome, contact intro */
  --head-md: clamp(22px, 2.3vw, 34px);   /* every section title */
}

h1, h2 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  letter-spacing: .03em; line-height: 1.2;
}

.hero-copy { font-size: var(--head-lg); }
.hero-copy h1, .hero-copy h2 { font-weight: 400; letter-spacing: .03em; line-height: 1.2; }
.wc-h1, .cscene-info h1, .field-head { font-size: var(--head-lg); font-weight: 400; letter-spacing: .03em; line-height: 1.2; }
.section-head h2, .cta-center-head h2, .st-d-body h2, #bz-faq-h { font-size: var(--head-md); font-weight: 400; letter-spacing: .03em; line-height: 1.22; }

/* Welcome: the logo standing in for the "V" keeps the size it had with the previous heading
   (0.8 x the old clamp(42px, 6vw, 84px)), so shrinking the heading text does not shrink the logo. */
.wc-sec .wc-mark { height: calc(.8 * clamp(42px, 6vw, 84px)); }
/* ...and the letters grow to match it: Orbitron capitals are .72em tall, so this makes their
   height equal the logo's height (logo height / .72). */
.wc-h1 { font-size: calc(.8 * clamp(42px, 6vw, 84px) / .72); line-height: 1.12; }
/* keeps the logo and "iCargo." on one line so a wrap can never strand the V */
.wc-nobr { white-space: nowrap; }

/* Contact intro on desktop: two lines, as large as the column allows. The heading may use the
   column's right padding (75% of it), so "TELL US WHAT YOU'RE MOVING," and "AND WHEN IT HAS TO BE
   THERE." sit one under the other at every desktop width. Its bottom margin shrinks by exactly
   the height the bigger type adds, so the rule, phone number and everything below stay where they
   were. Mobile keeps the natural wrap. */
.is-scrubbed .field-main { container-type: inline-size; --fp: clamp(48px, 6vw, 96px); }
.is-scrubbed .field-head {
  --fs-old: min(var(--head-lg), max(18px, 4.7 * (100cqw - 70px) / 100));
  --fs-new: max(18px, min(64px, calc((100cqw + var(--fp) - 20px) / 20.4)));
  width: calc(100cqw + var(--fp) - 20px); max-width: none;
  font-size: var(--fs-new); line-height: 1.18; letter-spacing: .01em;
  margin-bottom: calc(clamp(26px, 4vh, 40px) - 2.36 * (var(--fs-new) - var(--fs-old)));
}

/* Phone: capitals in Orbitron are wide, so section titles ran to four, five or six lines. A slightly
   smaller size and tighter tracking keeps them to two or three; desktop and tablet are untouched. */
@media (max-width: 600px) {
  :root { --head-lg: clamp(21px, 6vw, 26px); --head-md: clamp(18px, 5.2vw, 22px); }
  h1, h2 { letter-spacing: .02em; }
}
