:root {
  --rootnotes-footer-accent: #d1a93a;
  --rootnotes-footer-accent-hover: #e1bc52;
  --rootnotes-footer-button-bg: rgba(209, 169, 58, 0.12);
  --rootnotes-footer-button-border: rgba(209, 169, 58, 0.45);
  --rootnotes-header-logo-height: 104px;
}

.buymeacoffee {
  margin-top: 1rem;
}

.buymeacoffee-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rootnotes-footer-button-border);
  border-radius: 999px;
  background: var(--rootnotes-footer-button-bg);
  color: var(--rootnotes-footer-accent);
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.buymeacoffee-button:hover {
  transform: translateY(-1px);
  border-color: var(--rootnotes-footer-accent-hover);
  background: rgba(209, 169, 58, 0.18);
  color: var(--rootnotes-footer-accent-hover);
}

.buymeacoffee-button:focus-visible {
  outline: 2px solid var(--rootnotes-footer-accent-hover);
  outline-offset: 3px;
}

.buymeacoffee-button__icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
}

.buymeacoffee-button__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.buymeacoffee-button__text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo--image {
  background: transparent;
  padding: 0;
}

.site-logo-image {
  display: block;
  height: var(--rootnotes-header-logo-height);
  width: auto;
  max-height: var(--rootnotes-header-logo-height);
  max-width: min(300px, 56vw);
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.header__logo .logo--image {
  display: flex;
  align-items: center;
  height: var(--rootnotes-header-logo-height);
  background: transparent !important;
  padding: 0 !important;
}

.header__logo {
  align-items: center;
}

.header__logo::after {
  height: var(--rootnotes-header-logo-height);
  align-self: center;
}

.header__logo img.site-logo-image {
  display: block;
  width: auto !important;
  height: var(--rootnotes-header-logo-height) !important;
  max-height: var(--rootnotes-header-logo-height) !important;
  max-width: min(300px, 56vw) !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 768px) {
  :root {
    --rootnotes-header-logo-height: 78px;
  }
}

.side-image {
  float: left;
  width: var(--side-image-width, 240px);
  max-width: 44%;
  margin: 0.35rem 1rem 0.8rem 0;
}

.side-image--right {
  float: right;
  margin: 0.35rem 0 0.8rem 1rem;
}

.side-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0 !important;
  padding: 0 !important;
}

.side-image figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.post-content::after,
.index-content::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 768px) {
  .side-image,
  .side-image--right {
    float: none;
    max-width: 100%;
    width: min(100%, var(--side-image-width, 240px));
    margin: 0 auto 1rem;
  }
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  margin-top: 1.25rem;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 0.28rem 0.52rem;
  line-height: 1.1;
  transition: transform 100ms ease, border-color 100ms ease, background-color 100ms ease;
}

.tag-cloud-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 90%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.tag-cloud-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: rgba(238, 195, 94, 0.9);
}

.tag-cloud-name {
  color: var(--accent);
}

.tag-cloud-count {
  font-size: 0.72em;
  opacity: 0.8;
}

.tag-size-1 { font-size: 0.92rem; }
.tag-size-2 { font-size: 1rem; }
.tag-size-3 { font-size: 1.08rem; }
.tag-size-4 { font-size: 1.16rem; }
.tag-size-5 { font-size: 1.24rem; }
