@layer components {
.home-hero {
  padding: 4.5rem 0 2rem;

  .home-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;

    @media (max-width: 640px) {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }

  :where(h1) {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 1.4rem -0.04em;
    text-wrap: balance;

    @media (max-width: 640px) { font-size: 2.4rem; }
  }

  .home-hero-role {
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 1.2rem;
    font-style: italic;
    line-height: 1.5;

    :where(a) {
      color: var(--accent);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
      font-style: normal;
      font-weight: 500;
    }
  }

  .home-hero-bio {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin: 0;
    max-width: 42ch;
    line-height: 1.7;

    :where(code) {
      font-family: var(--mono);
      font-size: 0.82em;
      background: var(--bg2);
      border: 1px solid var(--rule);
      border-radius: 3px;
      padding: 0.1em 0.4em;
      color: var(--accent);
    }
  }

  :where(figure) {
    margin: 0;
    text-align: center;

    :where(img) {
      width: 148px;
      height: 148px;
      object-fit: cover;
      filter: sepia(0.12) contrast(1.02);
      border: 1px solid var(--rule);
      padding: 8px;
      background: var(--bg2);
      display: block;
      border-radius: 0;
    }

    @media (max-width: 640px) {
      order: -1;
      text-align: left;

      :where(img) { width: 108px; height: 108px; }
    }
  }
}

.home-posts {
  padding: 1.5rem 0 6rem;

  :where(header) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.4rem;
    gap: 1rem;

    .home-posts-eyebrow {
      font-family: var(--mono);
      font-size: 0.62rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--ink-faint);
      margin: 0;
    }

    .home-posts-all {
      font-family: var(--mono);
      font-size: 0.66rem;
      letter-spacing: 0.1em;
      color: var(--ink-muted);
      text-transform: uppercase;
      text-decoration: none;
      transition: color 0.15s;

      &:hover { color: var(--accent); }
    }
  }
}

}
