h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--text-serif);
  line-height: 1.15;
  font-weight: 500;
  /* 1em on top: the space above scales with the heading's own size */
  margin: 1em 0 1rem;

  &:first-child {
    margin-top: 1em;
  }
}


.quote {
  font-family: var(--text-serif);
  font-style: italic;
  line-height: 1.5;
}

b,
strong {
  font-weight: 700;
}

h1,
.heading-1 {
  font-size: var(--text-6xl);
}

h2,
.heading-2 {
  font-size: var(--text-4xl);
}

h3,
.heading-3 {
  font-size: var(--text-2xl);
}

h4,
.heading-4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-block: 0 1rem;

  &:last-child {
    margin-block: 0 0;
  }
}

p,
ul,
li {
  a {
    text-decoration: underline;
  }
}

li {
  line-height: 2;
}

a {
  text-decoration: none;
  color: inherit;
}

.text-primary {
  color: var(--primary);
}

.text-bold {
  font-weight: bold;
}

.text-accent {
  color: var(--accent);
}

.section-title {
  color: var(--icon);
  /* margin: 1.5rem auto 1rem; */
}

/* ink in light, orange in dark (the default is gold in dark). The dark
   selector beats the dark .section-title rule in _footer.css. */
.section-title.section-title--primary,
:is(.dark, [data-theme='dark']) .section-title.section-title--primary {
  color: var(--primary);
}

/* Eyebrow: the small uppercase label above a title. `.eyebrow` gives the
   same look on any element, e.g. <p class="eyebrow">Mega Brunch</p> above a
   heading, or <span class="eyebrow"> inside one. */
.section-title span,
.eyebrow {
  display: block;
  color: var(--accent-foreground);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--text-sans);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

/* a heading's line-height, which .section-title span inherits */
.eyebrow {
  line-height: 1.15;
}

/* an eyebrow with a Lucide icon in front:
   <p class="eyebrow"><i data-lucide="shield-alert" aria-hidden="true"></i>Security Advisory</p> */
.eyebrow:has(> .lucide, > i[data-lucide]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  > .lucide {
    flex: none;
    width: 1.25em;
    height: 1.25em;
    stroke-width: 1.6;
  }
}

.section-title,
.section-title+p {
  text-align: center;
}

.text-left {
  text-align: left;
}

.section-title.text-left,
.section-title.text-left+p {
  text-align: left;
}

/* .section-title--measure: caps a long title, and the paragraph after it,
   at about 768px. Centred, or at the left edge with .text-left. */
.section-title.section-title--measure,
.section-title.section-title--measure+p {
  max-width: 48rem;
  margin-inline: auto;
}

.section-title.section-title--measure.text-left,
.section-title.section-title--measure.text-left+p {
  margin-inline: 0;
}

/* .dark,
[data-theme='dark'] {
	.section-title {
		color: var(--primary);
	}
} */