.safari-reader-notice {
  position: fixed;
  z-index: 20;
  left: var(--edge);
  bottom: clamp(52px, 6vh, 76px);
  width: min(390px, calc(100vw - var(--edge) * 2));
  padding: 13px 15px 14px;
  border: 1px solid rgba(17, 17, 15, .28);
  background: rgba(244, 239, 229, .94);
  color: var(--text);
  box-shadow: 0 12px 38px rgba(17, 17, 15, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.safari-reader-notice[hidden] {
  display: none;
}

.safari-reader-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.safari-reader-notice__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.safari-reader-notice__close,
.safari-reader-notice__help {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.safari-reader-notice__close {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: -6px -5px -4px 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 20px;
  opacity: .58;
}

.safari-reader-notice__close:hover,
.safari-reader-notice__close:focus-visible {
  opacity: 1;
}

.safari-reader-notice__message {
  max-width: 36ch;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.42;
  letter-spacing: .005em;
}

.safari-reader-notice__help,
.safari-reader-notice__instructions {
  font-size: 9.5px;
  line-height: 1.5;
}

.safari-reader-notice__help {
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  opacity: .7;
}

.safari-reader-notice__help:hover,
.safari-reader-notice__help:focus-visible {
  opacity: 1;
}

.safari-reader-notice__instructions {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 17, 15, .18);
  color: var(--muted);
}

.safari-reader-notice__instructions p {
  margin: 0 0 6px;
}

.safari-reader-notice__instructions a {
  opacity: .78;
}

html[data-theme="dark"] .safari-reader-notice,
body[data-theme="dark"] .safari-reader-notice,
html.theme-dark .safari-reader-notice,
body.theme-dark .safari-reader-notice {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(8, 8, 8, .92);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .safari-reader-notice__instructions,
body[data-theme="dark"] .safari-reader-notice__instructions,
html.theme-dark .safari-reader-notice__instructions,
body.theme-dark .safari-reader-notice__instructions {
  border-top-color: rgba(255, 255, 255, .18);
}

@media (max-width: 700px) {
  .safari-reader-notice {
    left: 16px;
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: auto;
    padding: 12px 14px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .safari-reader-notice {
    transition: none;
  }
}
