/* Blog listing page-local styles — scoped under .page-blog */
.page-blog {
  /* CATEGORIES */
  .cat-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .cats button {
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    font-weight: 500;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--charcoal);
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
  }
  .cats button:hover { border-color: var(--line-strong); }
  .cats button.active {
    background: var(--ink);
    color: var(--sand-3);
    border-color: var(--ink);
  }
  .cats button .count {
    margin-left: 6px;
    opacity: 0.6;
    font-size: 11px;
  }
  .sort {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
  }
  .sort select {
    font-family: inherit;
    font-size: 12.5px;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
  }

  /* FEATURED */
  .featured { padding: 60px 0 40px; }
  .feat-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .feat-photo {
    aspect-ratio: 5/4;
    border-radius: 4px;
  }
  .feat-body .cat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-2);
    font-weight: 600;
    margin-bottom: 22px;
  }
  .feat-body .cat .pill {
    border: 1px solid var(--line-strong);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--charcoal);
    letter-spacing: 0.1em;
    font-size: 10px;
  }
  .feat-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 24px;
    text-wrap: balance;
  }
  .feat-body h2 em {
    font-style: normal;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: var(--teal-2);
  }
  .feat-body p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 480px;
  }
  .feat-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
  }
  .feat-meta .author {
    display: flex; align-items: center; gap: 10px;
    color: var(--ink); font-weight: 500;
  }
  .feat-meta .avatar {
    width: 28px; height: 28px;
    border-radius: 999px;
    background: linear-gradient(160deg, #c7b48a, #6f6346);
    overflow: hidden;
  }
  .feat-meta .sep { width: 3px; height: 3px; background: var(--muted); border-radius: 999px; }

  /* GRID */
  .post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
  }
  .post {
    cursor: pointer;
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
  }
  .post:hover { transform: translateY(-3px); }
  .post .photo {
    aspect-ratio: 16/10;
    margin-bottom: 20px;
  }
  .post .cat-tag {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-2);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .post h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.012em;
    line-height: 1.28;
    color: var(--ink);
    text-wrap: balance;
  }
  .post p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
  }
  .post .meta {
    margin-top: auto;
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .post .meta .sep { width: 3px; height: 3px; background: var(--muted); border-radius: 999px; }
  .post .meta .read { color: var(--ink); font-weight: 500; }

  /* PAGINATION */
  .pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 56px 0 0;
    border-top: 1px solid var(--line);
    margin-top: 72px;
  }
  .pager-nums { display: flex; gap: 6px; }
  .pager-nums a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 999px;
    font-size: 13px;
    color: var(--charcoal);
    transition: background .15s ease;
    cursor: pointer;
  }
  .pager-nums a:hover { background: var(--sand-2); }
  .pager-nums a.active { background: var(--ink); color: var(--sand-3); }
  .pager-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500;
    color: var(--ink);
    cursor: pointer;
  }
  .pager-arrow:hover { color: var(--teal-2); }

  /* NEWSLETTER */
  .newsletter {
    background: var(--ink);
    color: var(--sand-3);
    border-radius: 6px;
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 96px;
    position: relative;
    overflow: hidden;
  }
  .newsletter::before {
    content: "";
    position: absolute;
    right: -100px; top: -100px;
    width: 260px; height: 260px;
    border-radius: 999px;
    background: var(--teal-2);
    opacity: 0.16;
  }
  .newsletter h3 {
    font-weight: 300;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    position: relative; z-index: 2;
  }
  .newsletter h3 em { font-style: normal; font-family: 'Cinzel', serif; color: var(--teal-3); font-weight: 400; }
  .newsletter p {
    color: rgba(250, 246, 236, 0.7);
    margin: 0;
    max-width: 380px;
    font-size: 15px;
    position: relative; z-index: 2;
  }
  .newsletter form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 4px 4px 4px 20px;
    display: flex;
    align-items: center;
    position: relative; z-index: 2;
  }
  .newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--sand-3);
    font-family: inherit;
    font-size: 14px;
    padding: 12px 6px;
  }
  .newsletter input::placeholder { color: rgba(250,246,236,0.5); }
  .newsletter button {
    background: var(--sand-3);
    color: var(--ink);
    border: none;
    padding: 11px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  @media (max-width: 960px) {
    .feat-grid, .post-grid, .newsletter { grid-template-columns: 1fr; gap: 32px; }
    .newsletter { padding: 40px 28px; }
    .cat-bar { flex-direction: column; align-items: flex-start; }
  }
}
