.icon-button,
.text-button {
  border: 1px solid var(--line);
  background: var(--paper-1);
  min-height: 2.75rem;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.icon-button {
  inline-size: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.icon-button:hover,
.text-button:hover {
  border-color: var(--ink-0);
  transform: translateY(-2px);
}

.icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding-inline: .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-1);
  font-size: var(--text-xs);
  font-weight: 700;
}

.tag--signal {
  border-color: transparent;
  background: var(--brand-signal);
  color: #17191d;
}

.section-heading {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-block-end: var(--space-5);
}

.section-heading h2 {
  margin: 0;
  font-size: var(--text-xl);
  letter-spacing: -.02em;
}

.section-heading__line {
  height: 1px;
  background: var(--line);
}

.section-index {
  color: var(--brand-oxide);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: .08em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
}

.link-arrow .icon {
  transition: transform var(--motion-fast) var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translateX(-4px);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.25rem;
  padding: .38rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-1);
  color: var(--ink-1);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 850;
  cursor: pointer;
}
.theme-switch::before {
  content: "◐";
  color: var(--brand-oxide);
  font-size: 1rem;
}
.theme-switch:hover,
.theme-switch:focus-visible {
  border-color: var(--brand-oxide);
  color: var(--brand-oxide);
}
.theme-switch[data-theme-mode="dark"]::before { content: "●"; }
.theme-switch[data-theme-mode="auto"]::before { content: "◒"; }
