.analytics-consent[hidden] {
  display: none !important;
}

.analytics-consent {
  position: fixed;
  z-index: 1000;
  left: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  max-width: 52rem;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  color: var(--paper, #f2eee5);
  background: var(--ink, #0b1d2a);
  border: 1px solid rgba(242, 238, 229, .28);
  box-shadow: 0 1.2rem 3.5rem rgba(11, 29, 42, .22);
}

.analytics-consent-copy h2 {
  margin: 0 0 .55rem;
  font-family: var(--font-instrument-serif), "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.analytics-consent-copy p {
  max-width: 37rem;
  margin: 0;
  color: rgba(242, 238, 229, .72);
  font-size: .875rem;
  line-height: 1.55;
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.analytics-consent button,
.analytics-preferences {
  font: inherit;
  cursor: pointer;
}

.analytics-consent button {
  min-height: 2.75rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(242, 238, 229, .55);
  font-size: .875rem;
  transition: color .18s, background .18s, border-color .18s;
}

.analytics-consent-allow {
  color: var(--ink, #0b1d2a);
  background: var(--paper, #f2eee5);
}

.analytics-consent-decline {
  color: var(--paper, #f2eee5);
  background: transparent;
}

.analytics-consent button:hover,
.analytics-consent button:focus-visible {
  color: var(--paper, #f2eee5);
  background: transparent;
  border-color: var(--paper, #f2eee5);
}

.analytics-consent-decline:hover,
.analytics-consent-decline:focus-visible {
  color: var(--ink, #0b1d2a);
  background: var(--paper, #f2eee5);
}

.analytics-preferences {
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 .18rem;
  font-size: .75rem;
  opacity: .72;
}

.analytics-preferences:hover,
.analytics-preferences:focus-visible {
  opacity: 1;
}

.analytics-preferences-floating {
  position: fixed;
  z-index: 900;
  right: 1rem;
  bottom: 1rem;
  color: var(--ink, #0b1d2a);
}

.site-footer {
  grid-template-columns: 1fr 1fr auto auto;
}

@media (max-width: 720px) {
  .analytics-consent {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .analytics-consent-actions {
    width: 100%;
  }

  .analytics-consent button {
    flex: 1 1 auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent button {
    transition: none;
  }
}
