h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2.4em 0 0.75em 0;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: var(--regular);
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-align: left;
  text-wrap: balance;
}

h1 {
  margin: 0 auto 0.45em;
  max-width: 20em;
  font-size: clamp(2.4rem, 3.4vw + 1.2rem, 4.1rem);
  font-weight: var(--thin);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-align: center;
}

body[data-layout=post] main > section:first-child:not([data-banner]) > h1 {
  font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.6rem);
}

:is(h1, h2, h3) a:not(.anchor) {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  text-decoration-color: var(--link-line);
}

:is(h2, h3) a:not(.anchor):hover {
  color: var(--primary-strong);
}

[data-dark=true] :is(h2, h3) a:not(.anchor):hover {
  color: var(--primary);
}

h2 {
  font-size: clamp(1.7rem, 1.2vw + 1.25rem, 2.35rem);
  font-weight: var(--regular);
  letter-spacing: -0.018em;
}

h2:before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

:where(.center, [style*="text-align: center"]) > h2:before,
h2.center:before,
main > section:has(> .portrait-wrapper) > h2:before,
main > section:first-child:not([data-banner]) > h2:before {
  margin-left: auto;
  margin-right: auto;
}

main > section:first-child:not([data-banner]) > h2 {
  text-align: center;
}

section > h2:first-child,
section > h3:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: var(--semi-bold);
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: var(--bold);
  letter-spacing: 0;
}

h5 {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: var(--bold);
  letter-spacing: 0;
}

h6 {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: var(--bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 > i.icon,
h1 > span.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-soft), var(--background));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  color: var(--primary);
  font-size: 22px;
}

:where(h2, h3, h4, h5, h6) > .icon {
  margin-right: 0.6em;
  color: var(--primary);
  font-size: 0.8em;
}

main > section:has(> .citation-container, > .post-excerpt-container) > h3 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2.2em;
  margin-bottom: 0.4em;
  color: var(--primary-strong);
  font-size: 1.3rem;
  font-weight: var(--regular);
  letter-spacing: 0;
}

[data-dark=true] main > section:has(> .citation-container, > .post-excerpt-container) > h3 {
  color: var(--primary);
}

main > section:has(> .citation-container, > .post-excerpt-container) > h3:after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/*# sourceMappingURL=heading.css.map */