/* KitchenAppes blog. Light palette matches the warm sketch; dark matches the approved dark hexes. */

:root {
  color-scheme: light;
  --bg: #fff8f0;
  --surface: #ffffff;
  --text: #1c1410;
  --muted: #57534e;
  --accent: #0f766e;
  --accent-text: #0f766e;
  --on-accent: #ffffff;
  --accent-soft: #ddf3f0;
  --line: rgba(28, 20, 16, 0.1);
  --shadow: 0 12px 32px rgba(28, 20, 16, 0.06);
  --ad-bg: #f6f1ea;
  --ad-line: #7a6e60;
  --blob: #d7f3ea;
  --blob-2: #c5ebdf;
  --shape: #0f766e;
  --shape-2: #e7fff8;
  --font: "Heebo", "Heebo Fallback", sans-serif;
  --wordmark: "Pacifico", "Grand Hotel", cursive;
  --header-h: 72px;
  --max: 1120px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12121a;
  --surface: #1e1e2c;
  --text: #f4f4f6;
  --muted: #b4b9c4;
  --accent: #2dd4bf;
  --accent-text: #5eead4;
  --on-accent: #0f0f14;
  --accent-soft: rgba(45, 212, 191, 0.16);
  --line: rgba(244, 244, 246, 0.12);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --ad-bg: #181822;
  --ad-line: #c4b8aa;
  --blob: #134e48;
  --blob-2: #0f3d38;
  --shape: #5eead4;
  --shape-2: #99f6e4;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .art-planet {
    --art-blob: #134e48;
    --art-blob-2: #0f3d38;
    --art-shape: #5eead4;
    --art-shape-2: #99f6e4;
  }

  html:not([data-theme="light"]) .art-leaf {
    --art-blob: #1a3d28;
    --art-blob-2: #143222;
    --art-shape: #86efac;
    --art-shape-2: #d1fae5;
  }

  html:not([data-theme="light"]) .art-bowl {
    --art-blob: #4a2a22;
    --art-blob-2: #3d211b;
    --art-shape: #e8a48a;
    --art-shape-2: #ffe8d8;
  }

  html:not([data-theme="light"]) .art-hearth {
    --art-blob: #3a2c18;
    --art-blob-2: #2c2114;
    --art-shape: #e2b56a;
    --art-shape-2: #fff1d2;
  }

  html:not([data-theme="light"]) .art-dots {
    --art-blob: #3a2a22;
    --art-blob-2: #2c211c;
    --art-shape: #f0b389;
    --art-shape-2: #fff1e6;
  }

  html:not([data-theme="light"]) .art-warm {
    --art-blob: #3a3018;
    --art-blob-2: #2c2614;
    --art-shape: #f0c56a;
    --art-shape-2: #fff6d8;
  }

  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12121a;
    --surface: #1e1e2c;
    --text: #f4f4f6;
    --muted: #b4b9c4;
    --accent: #2dd4bf;
    --accent-text: #5eead4;
    --on-accent: #0f0f14;
    --accent-soft: rgba(45, 212, 191, 0.16);
    --line: rgba(244, 244, 246, 0.12);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --ad-bg: #181822;
    --ad-line: #c4b8aa;
    --blob: #134e48;
    --blob-2: #0f3d38;
    --shape: #5eead4;
    --shape-2: #99f6e4;
  }

  html:not([data-theme="light"]) .chips button:not([aria-pressed="true"]) {
    border-color: rgba(244, 244, 246, 0.45);
  }

  html:not([data-theme="light"]) .chips a:not([aria-pressed="true"]):not([aria-current="page"]) {
    border-color: rgba(244, 244, 246, 0.45);
  }

  html:not([data-theme="light"]) .site-footer {
    background: #0c0c12;
  }

  html:not([data-theme="light"]) .card {
    border-color: rgba(244, 244, 246, .4);
  }

  html:not([data-theme="light"]) .card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  }
}

html[data-theme="dark"] .art-planet {
  --art-blob: #134e48;
  --art-blob-2: #0f3d38;
  --art-shape: #5eead4;
  --art-shape-2: #99f6e4;
}

html[data-theme="dark"] .art-leaf {
  --art-blob: #1a3d28;
  --art-blob-2: #143222;
  --art-shape: #86efac;
  --art-shape-2: #d1fae5;
}

html[data-theme="dark"] .art-bowl {
  --art-blob: #4a2a22;
  --art-blob-2: #3d211b;
  --art-shape: #e8a48a;
  --art-shape-2: #ffe8d8;
}

html[data-theme="dark"] .art-hearth {
  --art-blob: #3a2c18;
  --art-blob-2: #2c2114;
  --art-shape: #e2b56a;
  --art-shape-2: #fff1d2;
}

html[data-theme="dark"] .art-dots {
  --art-blob: #3a2a22;
  --art-blob-2: #2c211c;
  --art-shape: #f0b389;
  --art-shape-2: #fff1e6;
}

html[data-theme="dark"] .art-warm {
  --art-blob: #3a3018;
  --art-blob-2: #2c2614;
  --art-shape: #f0c56a;
  --art-shape-2: #fff6d8;
}

html[data-theme="dark"] .card {
  border-color: rgba(244, 244, 246, .4);
}

html[data-theme="dark"] .card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

html[data-theme="light"] .art-planet {
  --art-blob: #d7f3ea;
  --art-blob-2: #c5ebdf;
  --art-shape: #0f766e;
  --art-shape-2: #e7fff8;
}

html[data-theme="light"] .art-leaf {
  --art-blob: #e4f6d4;
  --art-blob-2: #cfeab8;
  --art-shape: #3f7d4e;
  --art-shape-2: #e9f8dc;
}

html[data-theme="light"] .art-bowl {
  --art-blob: #f6d7c4;
  --art-blob-2: #efc2a8;
  --art-shape: #c45c3e;
  --art-shape-2: #fff1e6;
}

html[data-theme="light"] .art-hearth {
  --art-blob: #f3e6c8;
  --art-blob-2: #e7d3a1;
  --art-shape: #8a5a2b;
  --art-shape-2: #fff6e4;
}

.art-planet {
  --art-blob: #d7f3ea;
  --art-blob-2: #c5ebdf;
  --art-shape: #0f766e;
  --art-shape-2: #e7fff8;
}

.art-leaf {
  --art-blob: #e4f6d4;
  --art-blob-2: #cfeab8;
  --art-shape: #3f7d4e;
  --art-shape-2: #e9f8dc;
}

.art-bowl {
  --art-blob: #f6d7c4;
  --art-blob-2: #efc2a8;
  --art-shape: #c45c3e;
  --art-shape-2: #fff1e6;
}

.art-hearth {
  --art-blob: #f3e6c8;
  --art-blob-2: #e7d3a1;
  --art-shape: #8a5a2b;
  --art-shape-2: #fff6e4;
}

.art-dots {
  --art-blob: #fde6d4;
  --art-blob-2: #f8d3b4;
  --art-shape: #c47a45;
  --art-shape-2: #f8efe4;
}

.art-warm {
  --art-blob: #f8efc8;
  --art-blob-2: #f3e2a4;
  --art-shape: #d39a3a;
  --art-shape-2: #fff6d8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

a {
  color: var(--accent-text);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  z-index: 40;
  transform: translateY(-140%);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

@media (min-width: 1280px) {
  .wrap {
    width: min(var(--max), calc(100% - 80px));
  }
}

/* Wordmark matches the app header: header.component.scss .brand-title
   (Pacifico, Grand Hotel, weight 400, letter-spacing -0.5px, line-height 1.7)
   and wordmark.component.scss (Kitchen + Appes). The blog page is the warm
   cream background, so Appes uses the app warm accent #92400e; dark stays #a78bfa.
   line-height reserves the box so the webfont does not change the header height. */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.wordmark-text {
  font-family: var(--wordmark);
  font-weight: 400;
  font-size: clamp(1.2rem, 5.4vw, 1.85rem);
  line-height: 1.7;
  letter-spacing: -0.5px;
  padding-top: 2px;
  color: var(--text);
}

.wm-appes {
  color: #92400e;
}

html[data-theme="dark"] .wm-appes {
  color: #a78bfa;
}

@media (min-width: 1024px) {
  .wordmark-text {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}

@media (min-width: 900px) {
  .site-header {
    min-height: var(--header-h);
  }
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

@media (min-width: 900px) {
  .header-bar {
    min-height: var(--header-h);
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-block: 0;
  padding-inline: 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn .chevron {
  width: 18px;
  height: 18px;
}

.site-nav a.btn-download {
  margin-inline-start: 8px;
  background: var(--accent);
  color: var(--on-accent);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px 20px;
    overflow: auto;
    background: var(--bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    margin-inline-start: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a.btn-download {
    margin-inline: 0;
    justify-content: center;
    width: 100%;
  }
}

.page-head {
  padding-top: 28px;
}

.page-head h1,
.article-head h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-head h1 {
  font-size: 30px;
}

.article-head h1 {
  font-size: 32px;
}

@media (min-width: 1024px) {
  .page-head h1 {
    font-size: 44px;
  }

  .article-head h1 {
    font-size: 50px;
  }
}

.lede,
.excerpt,
.footer-nav a {
  color: var(--muted);
}

.lede {
  margin: 10px 0 0;
  font-size: 17px;
  max-width: 40rem;
}

@media (min-width: 1024px) {
  .lede {
    font-size: 18px;
  }
}

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 16px 0 22px;
  overflow-x: auto;
  /* Room for the 3px focus ring inside the scroller; margin trimmed so the row keeps its place. */
  padding-block: 6px;
  padding-inline-end: 36px;
  /* Keeps a scrolled-to chip clear of the 36px fade at the inline end (left in RTL). */
  scroll-padding-inline-end: 36px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px);
  mask-image: linear-gradient(to right, transparent, #000 36px);
}

.chips button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(28, 20, 16, .5);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.chips button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(28, 20, 16, .5);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.chips a[aria-pressed="true"],
.chips a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

html[data-theme="dark"] .chips a:not([aria-pressed="true"]):not([aria-current="page"]) {
  border-color: rgba(244, 244, 246, 0.45);
}

html[data-theme="dark"] .chips button:not([aria-pressed="true"]) {
  border-color: rgba(244, 244, 246, 0.45);
}

.featured,
.card,
.cta,
.recipe-card,
.toc-desktop,
.toc-mobile {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 22px;
  text-decoration: none;
  color: inherit;
}

.featured-art {
  order: -1;
}

.featured-copy {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.featured h2,
.card h2,
.card h3,
.related h2,
.prose h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}

.featured h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .featured {
    flex-direction: row;
    align-items: stretch;
    min-height: 360px;
  }

  .featured-copy {
    flex: 1.15;
    padding: 40px 40px 36px;
    justify-content: center;
  }

  .featured h2 {
    font-size: 32px;
  }

  .featured-art {
    order: 0;
    flex: 0.9;
    min-height: 360px;
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
}

.excerpt {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.meta,
.byline,
.crumbs,
.copyright {
  font-size: 15px;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.meta,
.byline {
  margin: 0;
}

@media (min-width: 1024px) {
  .meta,
  .byline,
  .crumbs,
  .copyright {
    font-size: 16px;
  }
}

.art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--art-blob), var(--art-blob-2));
  min-height: 200px;
}

.art svg {
  width: min(240px, 72%);
  height: auto;
}

.card .art,
.featured-art,
.hero.art {
  position: relative;
  overflow: hidden;
}

.art svg.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.art img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.art {
  height: 220px;
}

@media (min-width: 1024px) {
  .hero.art {
    height: 380px;
  }
}

.topic-block {
  margin: 4px 0 28px;
}

.topic-heading {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 800;
}

.topic-heading a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.featured h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (min-width: 900px) {
  .featured h2 {
    font-size: 32px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  border: 1px solid rgba(28, 20, 16, .55);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28, 20, 16, .12);
}

.card .art,
.card-art {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  border-radius: 0;
}

.featured-art {
  height: 220px;
  min-height: 220px;
}

@media (min-width: 900px) {
  .featured-art {
    height: auto;
    min-height: 360px;
  }
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 20px;
}

.card h2,
.card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-page .card h2,
.list-page .card h3 {
  -webkit-line-clamp: 4;
}

.list-page .card .excerpt {
  -webkit-line-clamp: 5;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid .ad-slot {
  order: 1;
}

.grid .card:nth-child(-n + 1) {
  order: 0;
}

.grid .card {
  order: 2;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid .card:nth-child(-n + 2) {
    order: 0;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid .card:nth-child(-n + 3) {
    order: 0;
  }

  .grid .card:only-of-type {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin: 8px 0;
  padding: 20px;
  border: 2px dashed var(--ad-line);
  border-radius: 20px;
  background: var(--ad-bg);
  grid-column: 1 / -1;
}

.ad-slot[data-ad="end"] {
  margin-block: 48px;
}

.ad-label {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}

.pager-page,
.pager-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

.pager-page {
  background: var(--accent);
  color: var(--on-accent);
}

.pager-next {
  gap: 4px;
  padding: 0 12px;
  color: var(--muted);
}

.pager-next .chevron {
  width: 18px;
  height: 18px;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 8px 0 36px;
  padding: 24px 20px;
  background: var(--accent-soft);
  box-shadow: none;
}

.cta .wordmark {
  margin: 0;
}

.cta p {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 800px) {
  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
  }
}

.empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 12px 0 28px;
  background: #f6ede1;
  border-top: 1px solid var(--line);
}

html[data-theme="dark"] .site-footer {
  background: #0c0c12;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  text-decoration: none;
  font-size: 15px;
}

.copyright {
  margin: 8px 0 0;
  text-align: center;
}

@media (min-width: 900px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 8px;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  order: 1;
  margin-block: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.hero {
  order: 2;
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
}

.toc {
  order: 3;
}

.prose {
  order: 4;
}

.toc-desktop {
  display: none;
}

.toc-mobile {
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 0 16px;
}

.toc-mobile .toc-label {
  display: none;
}

.toc-mobile summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-nav ol {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.toc-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.toc-label {
  margin: 0 0 8px;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 20px;
    align-items: start;
  }

  .article-head {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }

  .toc {
    grid-column: 1;
    grid-row: 1 / span 3;
    order: 0;
    align-self: stretch;
  }

  .hero {
    grid-column: 2;
    grid-row: 2;
    order: 0;
    min-height: 380px;
  }

  .prose {
    grid-column: 2;
    grid-row: 3;
    order: 0;
  }

  .toc-desktop {
    display: block;
    position: sticky;
    top: 96px;
    padding: 20px 18px 16px;
  }

  .toc-mobile {
    display: none;
  }
}

.prose {
  font-size: 18px;
  line-height: 1.85;
  max-width: 740px;
}

@media (min-width: 1024px) {
  .prose {
    font-size: 19px;
  }
}

.prose h2 {
  font-size: 25px;
  margin: 28px 0 12px;
  /* The sticky header is 65-73px; keep anchored headings visible below it. */
  scroll-margin-top: 96px;
}

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

blockquote {
  position: relative;
  margin: 20px 0;
  padding: 16px 20px;
  padding-inline-start: 56px;
  font-size: 24px;
  border-inline-start: 4px solid var(--accent);
  background: var(--accent-soft);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 16px;
  border-end-end-radius: 16px;
}

blockquote::before {
  content: "“";
  position: absolute;
  inset-inline-start: 14px;
  top: 2px;
  color: var(--accent);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

blockquote p {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: var(--accent);
}

.prose ul {
  margin: 0 0 16px;
  padding-inline-start: 1.2em;
}

.prose li {
  margin: 8px 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose ol {
  margin: 0 0 16px;
  padding-inline-start: 1.4em;
}

.prose ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

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

.prose .table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.6;
}

.prose th,
.prose td {
  padding: 10px 14px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--accent-soft);
  font-weight: 800;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 16px;
  line-height: 1.8;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: start;
}

.prose code {
  font: inherit;
}

.article-published .prose h2:first-child {
  margin-top: 0;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 28px 0;
}

.recipe-art {
  min-height: 140px;
}

.recipe-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 20px;
}

.recipe-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

@media (min-width: 700px) {
  .recipe-card {
    flex-direction: row;
    align-items: stretch;
  }

  .recipe-art {
    width: 180px;
    min-height: 100%;
  }

  .recipe-copy {
    flex: 1;
    justify-content: center;
    padding: 20px 22px;
  }
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.share-label {
  margin: 0;
  font-weight: 800;
  inline-size: 100%;
}

.share-btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.copy-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--accent-text);
  font-size: 14px;
}

.related {
  margin: 8px 0 36px;
}

.related h2 {
  font-size: 25px;
  margin: 0 0 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
