/* Element-level defaults for the public site — type as a story, not UI.
   Deliberately NOT loaded in the signed-in area, where Bootstrap owns the
   element styling; the design tokens in colors_and_type.css are shared. */

html, body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-tight);
  color: var(--fg-1);
  text-wrap: balance;
  margin: 0;
}

h1, .h1 { font-size: var(--fs-xxl); }
h2, .h2 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h3, .h3 {
  font-size: var(--fs-l);
  font-style: italic;
  font-weight: 300;
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-xxxl);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
}

p, .p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg-2);
  text-wrap: pretty;
  margin: 0 0 1.25em 0;
  max-width: 58ch;   /* literary measure */
}

.lede {
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: var(--lh-loose);
  font-weight: 300;
  font-style: italic;
  color: var(--fg-1);
  max-width: 48ch;
}

blockquote, .quote {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-style: italic;
  font-weight: 300;
  line-height: var(--lh-snug);
  color: var(--fg-1);
  border: 0;
  margin: 0;
  max-width: 32ch;
}

.label, .eyebrow {
  font-family: var(--font-meta);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-xwide);
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

a {
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-fade),
              border-color var(--dur-fast) var(--ease-fade);
}
a:hover { color: var(--gold-muted); border-color: var(--gold-muted); }

::selection { background: var(--gold-muted); color: var(--earth-deep); }
