/* WordPress-specific additions. Hand-written, and safe to edit: the theme build never touches this file. */

/* Keep the fixed header below the admin bar when logged in. */
.admin-bar .hdr {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .hdr {
    top: 46px;
  }
}

/* An uploaded logo, from Appearance > Customize > Site Identity */
.logo__image {
  display: block;
  width: auto;
  max-height: 38px;
}

/* A project with no screenshot and no bundled mockup yet */
.ps__empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 6cqw;
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* WordPress core classes */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}
.aligncenter {
  display: block;
  margin-inline: auto;
}
.wp-caption-text,
.wp-element-caption {
  margin-top: 6px;
  color: var(--fg-2);
  font-size: 0.86em;
}

/* Block editor content inside long-form pages */
.prose ol {
  margin-bottom: 14px;
  padding-left: 20px;
  list-style: decimal;
}
.prose img {
  border-radius: var(--r-md);
}
.prose figure {
  margin-block: 8px 20px;
}
.prose .wp-block-table {
  overflow-x: auto;
}
.prose .wp-block-table table {
  table-layout: auto;
}
.prose .wp-block-table td,
.prose .wp-block-table th {
  border-width: 0 0 1px;
  border-style: solid;
  border-color: var(--line);
}
.prose blockquote {
  margin-block: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--accent-text);
}

/* Ordinary pages and posts: the long-form layout without the side column */
.lb__in--single {
  max-width: 820px;
}
@media (min-width: 1000px) {
  .lb__in--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Blog and search listings */
.post-list {
  border-top: 1px solid var(--line);
}
.post-list__item {
  display: block;
  padding-block: clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}
.post-list__date {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-2);
}
.post-list__item p {
  margin-top: 8px;
  color: var(--fg-2);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}
.nav-links .page-numbers {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-links .current {
  background: var(--fg);
  color: var(--bg);
}

/* Shown when the contact form is sent without JavaScript */
.form__status {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(47, 210, 122, 0.14);
  color: #9de8bb;
}
.form__status--error {
  background: rgba(255, 122, 107, 0.14);
  color: #ffb3aa;
}
