/* Blog: index (/blog/) and single posts. Loaded after home.css. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--panel);
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

/* Index top */
.bx-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 28px 0;
}

.bx-top h1 {
  margin-top: 18px;
  max-width: 16ch;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bx-dek {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--mint-2);
  color: var(--pine-d);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.chips a:hover {
  background: var(--mint);
}

.chips a[aria-current="page"] {
  background: var(--pine);
  color: var(--on-pine);
}

/* Postcard grid */
.bx-list,
.more {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 28px 0;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}

.pc-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pc-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s ease;
}

.pc-link:hover .pc-fig img {
  transform: scale(1.015);
}

.pc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}

.pc-label {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--saffron-d);
}

.pc-title {
  font-family: var(--head);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.pc-link:hover .pc-title {
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-underline-offset: 4px;
}

.pc-ex {
  color: var(--muted);
  font-size: .96rem;
}

.pc-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}

/* First card on the index: wide, image beside the text */
.pc--wide {
  grid-column: 1 / -1;
}

.pc--wide .pc-link {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  padding: 18px;
  background: var(--mint-2);
  border-radius: calc(var(--radius) + 8px);
}

.pc--wide .pc-fig img {
  aspect-ratio: 16 / 10;
}

.pc--wide .pc-body {
  padding: 0 12px 0 0;
}

.pc--wide .pc-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.pc--wide .pc-ex {
  font-size: 1.05rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.pager .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}

.bx-empty {
  padding: 32px;
  background: var(--mint-2);
  border-radius: var(--radius);
}

/* Single post */
.jr {
  padding-top: 48px;
}

.jr-head,
.jr-body,
.jr-offer {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 28px;
}

.jr-label {
  margin: 28px 0 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--saffron-d);
}

.jr-head h1 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.jr-dek {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.jr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.jr-hero {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 28px;
}

.jr-hero img {
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.jr-body {
  margin-top: 44px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.jr-body > p:first-child {
  font-size: 1.2rem;
  color: var(--ink);
}

.jr-body h2 {
  margin: 44px 0 12px;
  font-size: 1.65rem;
  color: var(--pine-d);
}

.jr-body h3 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
}

.jr-body p {
  margin: 0 0 16px;
}

.jr-body ul,
.jr-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.jr-body li {
  margin-bottom: 10px;
}

.jr-body li::marker {
  color: var(--saffron-d);
}

.jr-body a {
  color: var(--pine);
  text-decoration-color: var(--saffron);
  text-underline-offset: 3px;
}

.jr-body img {
  border-radius: var(--radius);
}

.jr-offer {
  max-width: 684px;
  margin-top: 56px;
  padding: 36px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.jr-offer h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.jr-offer p {
  max-width: 54ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.jr-offer .pill {
  margin-top: 24px;
}

.jr-offer .fine {
  margin-top: 14px;
  font-size: .85rem;
}

.more {
  padding-top: 88px;
}

.more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.more-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.more-all {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .pc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc--wide .pc-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .pc--wide .pc-body {
    padding: 0 8px 10px;
  }
}

@media (max-width: 760px) {
  .bx-top,
  .bx-list,
  .more,
  .jr-head,
  .jr-body,
  .jr-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jr-offer {
    margin-left: 16px;
    margin-right: 16px;
  }

  .bx-top {
    padding-top: 36px;
  }

  .pc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .pc--wide .pc-link {
    padding: 12px;
  }

  .jr {
    padding-top: 28px;
  }

  .jr-body {
    font-size: 1.02rem;
  }

  .jr-body > p:first-child {
    font-size: 1.1rem;
  }

  .jr-offer .pill {
    width: 100%;
  }

  .more {
    padding-top: 64px;
  }
}

/* Index rhythm: one wide card, two halves, then thirds (1 + 2 + 6 = 9 per page) */
@media (min-width: 961px) {
  .pc-grid--index {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pc-grid--index > .pc {
    grid-column: span 2;
  }

  .pc-grid--index > .pc:nth-child(2),
  .pc-grid--index > .pc:nth-child(3) {
    grid-column: span 3;
  }

  .pc-grid--index > .pc--wide {
    grid-column: 1 / -1;
  }

  .pc-grid--index > .pc:nth-child(2) .pc-fig img,
  .pc-grid--index > .pc:nth-child(3) .pc-fig img {
    aspect-ratio: 3 / 2;
  }
}

/* Index closing: text panel without a photo, so no image repeats from the cards */
.bx-closing {
  display: block;
  max-width: 1144px;
  padding: 56px clamp(24px, 6vw, 72px);
  background: var(--mint-2);
  border-radius: calc(var(--radius) + 8px);
}

.bx-closing .closing-text {
  max-width: 640px;
}

@media (max-width: 760px) {
  .bx-closing {
    margin-left: 16px;
    margin-right: 16px;
    padding: 36px 20px;
  }

  .bx-closing .pill {
    width: 100%;
  }
}
