/* Header layout, set here so a change to Pagecord's base styles can't move it */
nav { justify-content: flex-end; }
.avatar-container { justify-content: space-between; align-items: flex-start; gap: 1rem; }
.blog-title { flex-grow: 0; }

.blog {
    font-family: -apple-system, BlinkMacSystemFont, Aptos, Roboto, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 1rem;
    line-height: 1.4;
  }

  header {
    font-size: 1.1rem;
  }

  nav {
    justify-content: center;
  }

  .titlebar,
  .avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .avatar,
  .avatar img {
    width: 5rem;
    height: 5rem;
  }

  .avatar img {
    box-shadow: none;
  }

  .blog-title {
    color: var(--color-text-muted);
    font-size: 0.85em;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .bio {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-bottom: 1em;
  }

  .bio a {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
  }

  header hr {
    display: none;
  }

  article {
    display: flex;
    flex-direction: column;
  }

  article footer,
  .post-card-meta {
    display: contents;
  }

  article .post-date {
    order: -2;
    align-self: center;
    margin-bottom: 0.75rem;
  }

  .post-card-date {
    order: -1;
    margin-bottom: 0.35rem;
    opacity: 1;
  }

  article .post-date,
  .post-card-date {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.4;
  }

  article h1.post-title {
    order: -1;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    text-wrap: balance;
  }

  article .post-body {
    line-height: 1.4;
    letter-spacing: 0;
    font-size: 1.1rem;
  }

  @media (min-width: 700px) {
    article h1.post-title {
      font-size: 2.75rem;
    }

    article .post-body,
    .post-card-summary {
      font-size: 1.25rem;
    }
  }

  article .post-actions {
    order: 99;
    align-self: flex-start;
    margin-top: 2rem;
  }

  .post-navigation {
    margin-bottom: 0;
    font-size: 1rem;
  }

  :not(:has(.comments)) + .post-navigation,
  .comments {
    margin-top: var(--post-end-spacing);
  }

  .blog .form.email-subscriber-form {
    max-width: 38rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .blog.post .email-subscriber-form {
    margin-top: 2.5rem;
  }

  .email-subscriber-form {
    position: relative;
    font-size: 1rem;
  }

  header > .email-subscriber-form {
    margin-top: 2.75rem;
  }

  .email-subscriber-form::before {
    content: "";
    position: absolute;
    top: -1.25rem;
    left: 50%;
    width: 12rem;
    border-top: 1px solid var(--color-border);
    transform: translateX(-50%);
  }

  .subscription-description {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.4;
  }

  .email-subscriber-form .form-fieldset {
    width: 100%;
    justify-content: center;
  }

  .blog .form.email-subscriber-form input[type="email"],
  .blog .form.email-subscriber-form input[type="submit"] {
    border: 1px solid var(--color-border);
    padding: 0.65rem 1rem;
  }

  .blog .form.email-subscriber-form input[type="email"] {
    background: transparent;
    border-right: none;
    border-radius: 9999px 0 0 9999px;
  }

  .blog .form.email-subscriber-form input[type="submit"] {
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    border-left: none;
    border-radius: 0 9999px 9999px 0;
    font-weight: 400;
  }

  .blog .form.email-subscriber-form input[type="submit"]:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text);
  }

  .post-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 2.5rem;
    text-align: center;
    background: var(--color-bg);
    border-radius: 0.2rem;
    box-shadow: 5px 5px 7px color-mix(in srgb, var(--color-shadow) 30%, transparent);
  }

  .post-card:hover .post-card-content {
    transform: none;
    box-shadow: inherit;
    border-color: var(--color-border);
  }

  .post-card-title {
    margin-bottom: 1.25rem;
    color: var(--color-text-heading);
    font-size: 2rem;
    line-height: 1.15;
  }

  .post-card-summary {
    margin-bottom: 1.25rem;
    color: var(--color-text);
    line-height: 1.3;
    letter-spacing: 0;
    font-size: 1.1rem;
    text-align: justify;
    hyphens: auto;
  }

  .post-card-badge {
    align-self: center;
    padding: 0.45rem 0.9rem;
    color: var(--color-text-muted);
    background: transparent;
    border-color: var(--color-border);
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 400;
  }
