/*
 * Additions the WordPress theme needs on top of the compiled site stylesheet.
 */

/* Page-to-page transitions: the header stays put while the page crossfades (browsers that support it). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Notice above the contact form after a post made without JavaScript */
.erdan-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3, 14px);
  background: var(--ink-3, #1a1a1f);
  color: var(--paper, #e5e7eb);
  line-height: 1.5;
}

.erdan-notice[data-ok="0"] {
  border-color: #ff9d9d;
}

/* Pages and posts WordPress renders itself: plain lists and WordPress's own content classes, inside the site's type */
.erdan-list {
  display: grid;
  gap: 2rem;
}

.erdan-list h2 {
  font-size: var(--fs-h3, 1.5rem);
}

.erdan-list a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.22em;
}

.alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption,
.gallery-caption {
  font-size: 0.875rem;
  color: var(--paper-3, #959aa5);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Signed-in editors see WordPress's admin bar: keep it above the fixed header */
#wpadminbar {
  z-index: 100000;
}
