/* Shared foundations for the trades template. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Keep browser text zoom and mobile text-size adjustment available. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-clearance);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-variant-caps: small-caps;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3rem);
  letter-spacing: -0.04em;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

img {
  display: block;
}

.container {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--content-width);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

img,
video {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

/* Apply to containers when an approved flex/grid layout is added. */
.responsive-container {
  min-width: 0;
}

