/* Consent banner. Kept out of style.css on purpose: that file is at v84 and has
   a history of later rules silently overriding earlier ones. Nothing here shares
   a selector with it. */

.lh-consent {
  position: fixed;
  z-index: 9000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.25rem 1.35rem 1.1rem;
  background: var(--bone, #F4EFE6);
  border: 1px solid var(--sand, #D7CDBA);
  border-top: 3px solid var(--sage, #55654A);
  box-shadow: 0 10px 30px rgba(58, 44, 33, .16);
  color: var(--body, #4F4335);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.55;
  animation: lh-consent-in .28s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .lh-consent { animation: none; }
}

@keyframes lh-consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lh-consent__title {
  margin: 0 0 .4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink, #3A2C21);
}

.lh-consent__body { margin: 0 0 1rem; }

.lh-consent__body a {
  color: var(--sage, #55654A);
  text-underline-offset: 3px;
}

.lh-consent__actions {
  display: flex;
  gap: .6rem;
}

/* Decline and accept are the same element at the same size. Refusing is not
   allowed to be the harder of the two. */
.lh-consent__btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: .65rem 1rem;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--sage, #55654A);
  border-radius: 0;
  background: transparent;
  color: var(--sage, #55654A);
  cursor: pointer;
}

.lh-consent__btn + .lh-consent__btn {
  background: var(--forest, #44554A);
  border-color: var(--forest, #44554A);
  color: var(--bone, #F4EFE6);
}

.lh-consent__btn:hover { background: var(--sage, #55654A); color: var(--bone, #F4EFE6); }
.lh-consent__btn + .lh-consent__btn:hover { background: var(--sage-deep, #4E5C43); }

.lh-consent__btn:focus-visible,
.lh-consent-reopen:focus-visible {
  outline: 2px solid var(--hazel-deep, #8A7047);
  outline-offset: 2px;
}

.lh-consent-reopen {
  display: inline-block;
  margin-left: 1rem;
  font-size: .82rem;
  color: inherit;
  opacity: .85;
}

@media (max-width: 480px) {
  .lh-consent { left: .5rem; right: .5rem; bottom: .5rem; padding: 1.1rem 1rem 1rem; }
  .lh-consent__actions { flex-direction: column; }
  .lh-consent-reopen { display: block; margin: .6rem 0 0; }
}
