/* Blog post, legal pages and 404: article prose, aside, recipe card, print. */

.post-head {
  max-width: 900px;
  padding-block: 32px 24px;
}

.post-head__cat {
  color: var(--accent-2, var(--accent));
}

.post-head__title {
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.02;
  text-wrap: balance;
}

.post-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.post-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.post-cover {
  margin-block: 8px 32px;
}

.post-cover__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 16px 48px;
}

.post-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-toc {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-toc__title {
  margin: 0 0 8px;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-toc__list {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}

.post-toc a {
  color: var(--ink);
  text-decoration: none;
}

.post-toc a:hover {
  color: var(--accent);
}

.post-invite {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--tint);
}

.post-invite__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

/** Shared article text, also used by the legal pages. */
.prose {
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.7;
}

.prose h2 {
  margin: 48px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
}

.prose h3 {
  margin: 32px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.prose p {
  margin: 0 0 18px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

.prose blockquote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 4px solid var(--tint-2);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
}

.prose__figure {
  margin: 32px 0;
}

.prose__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.prose figcaption {
  margin-top: 8px;
  color: var(--soft);
  font-size: 14px;
}

.recipe {
  margin-block: 24px 48px;
}

.recipe__inner {
  max-width: 860px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.recipe__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
}

.recipe__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 24px;
}

.recipe__fact dt {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recipe__fact dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.recipe__ingredients,
.recipe__steps {
  padding-left: 1.2em;
}

.recipe__tip {
  margin: 24px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--tint);
}

.recipe__print {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.post-related .section-title {
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }

  .post-aside {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
  }
}

@media print {
  body.print-recipe .topbar,
  body.print-recipe .site-header,
  body.print-recipe .site-footer,
  body.print-recipe .skip-link,
  body.print-recipe .booking-panel,
  body.print-recipe .breadcrumbs,
  body.print-recipe .post-head,
  body.print-recipe .post-cover,
  body.print-recipe .post-layout,
  body.print-recipe .cta-band,
  body.print-recipe .post-related {
    display: none;
  }

  body.print-recipe .recipe {
    margin: 0;
  }

  body.print-recipe .recipe__inner {
    padding: 0;
    border: 0;
  }

  body.print-recipe .recipe__print {
    display: none;
  }
}
