.layout-wrapper main a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 0.2em;
  transition:
    color 0.15s ease-out,
    text-decoration-color 0.15s ease-out;
}

.layout-wrapper main a:hover {
  text-decoration-color: currentColor;
}

.link-card {
  text-decoration: none !important;
}

.link-card-title {
  text-decoration: underline;
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 0.2em;
}

.footer-content {
  gap: 1rem;
}

.theme-name {
  font-family: var(--serif);
}

.footer-content .author-link,
.footer-content .hugo-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 0.2em;
  transition:
    color 0.15s ease-out,
    text-decoration-color 0.15s ease-out;
}

.footer-content .author-link:hover,
.footer-content .hugo-link:hover {
  text-decoration-color: currentColor;
}

.theme-switcher,
.toc-style-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
}

.theme-switcher button,
.toc-style-switcher button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.theme-switcher button:hover,
.theme-switcher button[aria-pressed='true'],
.toc-style-switcher button:hover,
.toc-style-switcher button[aria-pressed='true'] {
  color: var(--text-primary);
}

.theme-switcher button[aria-pressed='true'],
.toc-style-switcher button[aria-pressed='true'] {
  text-decoration: underline;
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 0.2em;
}

@media (max-width: 768px) {
  .footer-content {
    gap: 0.25rem;
  }
}
