/* recipewebsummit.com: recipe index and single recipe (loaded after home.css) */

/* ---------- Recipe index ---------- */
.rx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0 0 18px;
  font-size: 0.85rem;
}

.rx-chips a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.rx-chips a:hover {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rx-chips a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.rx-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 36px;
  font-size: 0.9rem;
}

.rx-pages a,
.rx-pages span {
  padding: 6px 2px;
  color: var(--brown);
}

.rx-pages .current {
  color: var(--navy);
  font-weight: 700;
}

.rx-empty a {
  color: var(--brown);
}

/* ---------- Single recipe ---------- */
.post {
  padding-top: clamp(36px, 5vw, 56px);
}

.post-head h1 {
  font-size: clamp(1.95rem, 4.2vw, 2.7rem);
  max-width: 22ch;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.post-hero {
  margin: 30px 0 0;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body {
  max-width: 66ch;
  margin-top: 36px;
}

.post-body h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
}

.post-body a {
  color: var(--brown);
  text-underline-offset: 3px;
}

.recipe-lede {
  font-size: 1.08rem;
}

.recipe-card,
.recipe-tip {
  margin: 2em 0;
  padding: 20px 24px 22px;
  border: 3px dotted var(--gold);
}

.recipe-card h2,
.recipe-tip h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.recipe-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.recipe-card dl div {
  min-width: 0;
}

.recipe-card dt {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.recipe-card dd {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.35;
}

.recipe-card .recipe-card-cost {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

.recipe-card-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.recipe-tip p:last-child {
  margin-bottom: 0;
}

.recipe-ingredients,
.recipe-swaps {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.recipe-ingredients li,
.recipe-swaps li {
  padding: 3px 0;
}

.recipe-ingredients li::marker,
.recipe-swaps li::marker {
  color: var(--gold);
}

.recipe-method {
  margin: 0 0 1em;
  padding-left: 1.6em;
}

.recipe-method li {
  padding: 6px 0 6px 6px;
}

.recipe-method li::marker {
  font-family: var(--serif);
  color: var(--brown);
}

.recipe-swaps strong {
  color: var(--navy);
}

.recipe-fig {
  margin: 2em 0;
}

.recipe-fig img {
  width: 100%;
}

.post + .band {
  padding-top: clamp(48px, 6vw, 72px);
}

@media (max-width: 560px) {
  .recipe-card,
  .recipe-tip {
    padding: 16px 16px 18px;
  }

  .recipe-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
