/* ==========================================================================
   Foodstories Journal: stories, pages, archives and errors.
   Loaded on every page except the homepage; builds on the tokens in screen.css.
   ========================================================================== */

.site-main {
    --sprig-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 320' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M96 318c2-78 4-158 22-298'/%3E%3Cpath d='M97 262c-27-8-47-30-51-58 28 4 48 24 51 58Z'/%3E%3Cpath d='M99 214c28-8 48-30 54-58-29 5-49 26-54 58Z'/%3E%3Cpath d='M102 160c-26-9-43-31-45-58 27 6 44 27 45 58Z'/%3E%3Cpath d='M107 110c25-10 41-32 44-58-27 7-42 28-44 58Z'/%3E%3Cpath d='M112 62c-20-10-31-28-31-50 21 7 32 26 31 50Z'/%3E%3Cpath d='M97 262 62 222m37-8 38-42m-35-12-30-40m35-10 31-40'/%3E%3C/svg%3E");
    --accent: var(--fig);
    --measure: 680px;
    --ghost-accent-color: var(--fig);
    --quote-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 36'%3E%3Cpath d='M0 36V22C0 9 7 2 19 0l2 4C13 7 10 12 10 18h9v18H0Zm27 0V22C27 9 34 2 46 0l2 4c-8 3-11 8-11 14h9v18H27Z'/%3E%3C/svg%3E");
}
.article--farm { --accent: var(--olive); }

/* ---------- Breadcrumb ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; margin-inline: 12px; border-radius: 50%; background: currentColor; opacity: .5; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--fig); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Reading progress (scroll-driven; absent where unsupported) ---------- */
.read-progress { display: none; position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--fig); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: view()) and (timeline-scope: --story) {
    body { timeline-scope: --story; }
    .article__content { view-timeline: --story block; }
    .read-progress { display: block; animation: read-progress linear both; animation-timeline: --story; animation-range: contain 0% contain 100%; }
}
@keyframes read-progress { to { transform: scaleX(1); } }

/* ---------- Story header ---------- */
.article-head { position: relative; isolation: isolate; padding-bottom: clamp(48px, 6vw, 88px); }
.article-head .crumbs { padding-top: 8px; margin-bottom: clamp(20px, 3.5vw, 48px); }
.article-head__grid { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 1024px) {
    /* The image column shrinks to portrait images, giving the headline the room. */
    .article:not(.article--text) .article-head__grid { grid-template-columns: minmax(0, 1fr) fit-content(600px); }
}
.article--text .article-head__text { max-width: 920px; }
.article-head__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-bottom: 12px; }
.article-head__kicker .kicker { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.article-head__label { padding-left: 14px; border-left: 1px solid currentColor; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); line-height: 1; }
.article-head__title { font: 400 var(--t-h1)/1.04 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.article-head__lede { max-width: 34em; margin-top: 24px; font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.article-head__media img { width: auto; max-width: 100%; max-height: min(78vh, 720px); margin-inline: auto; border-radius: var(--r-lg); background: var(--paper-2); }
@media (min-width: 1024px) { .article-head__media img { margin-right: 0; } .article-head__media figcaption { text-align: right; } }

figcaption { margin-top: 12px; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); text-align: center; }
figcaption a { text-decoration: underline; text-underline-offset: .2em; }

/* Byline */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: clamp(28px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--line); }
.byline__text { flex: 1 1 auto; min-width: 0; }
.byline__name { font-weight: 600; }
.byline__name a { transition: color .2s; }
.byline__name a:hover { color: var(--fig); }
.byline .meta { margin-top: 2px; }

.avatar { flex: none; display: inline-block; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--fig-tint); color: var(--fig); font: 400 0/44px var(--font-display); text-align: center; }
.avatar::first-letter { font-size: 1.5rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 64px; height: 64px; line-height: 64px; }
.avatar--lg::first-letter { font-size: 2.125rem; }
.article--farm .avatar { background: var(--olive-tint); color: var(--olive); }

/* Share */
.share { display: flex; gap: 8px; }
.share__btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.share__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: var(--t-xs); font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.share__btn.is-copied .share__tip { opacity: 1; transform: translate(-50%, 0); }

/* Farm stories: olive band with a botanical sprig */
.article--farm .article-head, .archive-head--farm { overflow: hidden; color: #fff; background: radial-gradient(70% 110% at 100% 0%, rgba(140, 160, 90, .45), transparent 60%), linear-gradient(160deg, var(--olive) 0%, var(--olive-dark) 100%); }
.article--farm .article-head { margin-bottom: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 120px); }
.article-head__motif { position: absolute; z-index: -1; right: clamp(-60px, 2vw, 80px); bottom: -8%; width: auto; height: 112%; fill: none; stroke: #c9d6a4; stroke-opacity: .32; stroke-linecap: round; stroke-linejoin: round; }
.article-head__motif path { stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
@media (max-width: 1023px) { .article-head__motif { right: -48px; bottom: -4%; height: 62%; stroke-opacity: .18; } }
:is(.article--farm .article-head, .archive-head--farm) .crumbs ol,
:is(.article--farm .article-head, .archive-head--farm) .crumbs [aria-current],
.article--farm .article-head__label,
.article--farm .byline .meta { color: rgba(255, 255, 255, .78); }
:is(.article--farm .article-head, .archive-head--farm) .crumbs a:hover,
.article--farm .byline__name a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
:is(.article--farm .article-head, .archive-head--farm) .kicker { color: #dfe8c2; }
.article--farm .article-head__lede, .archive-head--farm .archive-head__desc { color: rgba(255, 255, 255, .86); }
.article--farm .byline { border-top-color: rgba(255, 255, 255, .2); }
.article--farm .article-head .avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.share--light .share__btn { border-color: rgba(255, 255, 255, .3); color: #fff; }
.share--light .share__btn:hover { background: #fff; border-color: #fff; color: var(--olive-dark); }

/* ---------- Story body ---------- */
.article__content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 180px)
        [main-start] min(var(--measure), calc(100% - 2 * var(--gutter)))
        [main-end] minmax(0, 180px)
        [wide-end] minmax(var(--gutter), 1fr) [full-end];
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--ink);
}
.article__content > * { grid-column: main; min-width: 0; }
.article__content > .kg-width-wide { grid-column: wide; }
.article__content > .kg-width-full { grid-column: full; }
.article__content > * + * { margin-top: 1.4em; }

.article__content > h2 { margin-top: clamp(44px, 4.5vw, 60px); font: 400 clamp(2rem, 1.6rem + 1.3vw, 2.625rem)/1.1 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.article__content > h2::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 24px; background: var(--accent); }
.article__content > h3 { margin-top: 2.2em; font: 700 1.3125rem/1.35 var(--font-sans); }
.article__content > h4 { margin-top: 2.4em; font: 700 .8125rem/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.article__content > h2 + * { margin-top: 20px; }
.article__content > :is(h3, h4) + * { margin-top: 10px; }

.article__content a:not([class]) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color .2s; }
.article__content a:not([class]):hover { text-decoration-color: currentColor; }
.article__content strong { font-weight: 700; }
.article__content :is(ul, ol):not([class]) { padding-left: 1.4em; }
.article__content li + li { margin-top: .5em; }
.article__content li > :is(ul, ol) { margin-top: .5em; }
.article__content li::marker { color: var(--accent); font-weight: 700; }

/* Drop cap on stories (not static pages) */
.article:not(.article--page) .article__content > p:first-child::first-letter { float: left; margin: .1em .08em 0 -.02em; font: 400 3.9em/.78 var(--font-display); color: var(--accent); }

/* Quotes */
.article__content blockquote:not([class]) { padding-left: 1.2em; border-left: 2px solid var(--accent); font-size: 1.25rem; line-height: 1.6; }
.article__content > .kg-blockquote-alt { grid-column: wide; position: relative; margin-block: clamp(48px, 6vw, 80px); padding: clamp(48px, 5vw, 64px) clamp(0px, 5vw, 64px) clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--line); background: linear-gradient(var(--line), var(--line)) 0 0 / calc(50% - 44px) 1px no-repeat, linear-gradient(var(--line), var(--line)) 100% 0 / calc(50% - 44px) 1px no-repeat; font: 400 clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem)/1.22 var(--font-display); font-style: normal; letter-spacing: -.005em; text-align: center; text-wrap: balance; color: var(--ink); }
.article__content > .kg-blockquote-alt::before { content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 23px; transform: translate(-50%, -50%); background: var(--accent); -webkit-mask: var(--quote-mark) center / contain no-repeat; mask: var(--quote-mark) center / contain no-repeat; }
.article__content > .kg-blockquote-alt:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.article__content > .kg-blockquote-alt + * { margin-top: 0; }

/* Media */
.article__content > :is(figure, .kg-card) { margin-top: clamp(32px, 4vw, 48px); }
.article__content > :is(figure, .kg-card) + * { margin-top: clamp(32px, 4vw, 48px); }
.article__content figure img { margin-inline: auto; border-radius: var(--r); }
.article__content .kg-width-full img { width: 100%; border-radius: 0; }
.article__content .kg-width-full figcaption { padding-inline: var(--gutter); }
.article__content .kg-gallery-image img { border-radius: var(--r-sm); }
.article__content .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.article__content .kg-embed-card iframe { max-width: 100%; }
.article__content .kg-embed-card iframe:is([src*="youtube"], [src*="vimeo"]) { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r); }
.article__content .kg-video-card { overflow: hidden; border-radius: var(--r); }

.article__content hr { height: auto; margin-block: clamp(40px, 5vw, 64px); border: 0; text-align: center; overflow: visible; }
.article__content hr::after { content: "\2022\2002\2022\2002\2022"; color: var(--accent); font-size: .875rem; letter-spacing: .2em; }
.article__content > hr + * { margin-top: 0; }

.article__content :not(pre) > code { padding: .12em .4em; border-radius: 6px; background: var(--paper-2); font-size: .875em; }
.article__content pre { overflow-x: auto; padding: 20px 24px; border-radius: var(--r); background: var(--ink); color: var(--paper-2); font-size: .875rem; line-height: 1.6; }
.article__content table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.article__content :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* ---------- Ghost cards, in brand ---------- */
.article__content .kg-callout-card { padding: 20px 24px; border-radius: var(--r); background: var(--paper-2); }
.article__content .kg-callout-card-white { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.article__content .kg-callout-card-green { background: var(--olive-tint); }
.article__content :is(.kg-callout-card-red, .kg-callout-card-pink) { background: var(--fig-tint); }
.article__content .kg-callout-card-yellow { background: #f8efd9; }
.article__content .kg-callout-card div.kg-callout-text { font-size: 1rem; line-height: 1.65; }

.article__content .kg-toggle-card { padding: 0; border-block: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.article__content > .kg-toggle-card + .kg-toggle-card { margin-top: 0; border-top: 0; }
.article__content .kg-toggle-heading { align-items: center; padding-block: 12px; }
.article__content .kg-toggle-card h4.kg-toggle-heading-text { font: 600 1.125rem/1.4 var(--font-sans); }
.article__content .kg-toggle-card-icon { width: 44px; height: 44px; margin-right: -12px; }
.article__content .kg-toggle-heading svg { width: 14px; color: var(--accent); }
.article__content .kg-toggle-content { padding-bottom: 20px; }

.article__content .kg-button-card a.kg-btn { height: auto; min-height: 48px; padding: 12px 28px; border-radius: 999px; font: 600 var(--t-sm)/1.2 var(--font-sans); transition: background .25s var(--ease); }
.article__content .kg-button-card a.kg-btn-accent:hover { opacity: 1; background: var(--fig-dark); }

.article__content .kg-header-card { overflow: hidden; border-radius: var(--r-lg); }
.article__content .kg-header-card.kg-width-full { border-radius: 0; }
.article__content .kg-header-card.kg-style-light { background-color: var(--paper-2); }
.article__content .kg-header-card.kg-style-dark { background-color: var(--ink); }
.article__content .kg-header-card h2.kg-header-card-header { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
.article__content .kg-header-card h3.kg-header-card-subheader { font-family: var(--font-sans); font-weight: 400; }
.article__content .kg-header-card a.kg-header-card-button { border-radius: 999px; font-family: var(--font-sans); font-weight: 600; }

/* Bookmark (a link that is not a shop product) */
.article__content .kg-bookmark-card a.kg-bookmark-container { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.article__content .kg-bookmark-card a.kg-bookmark-container:hover { border-color: #d8cdbf; box-shadow: var(--shadow); }
.article__content .kg-bookmark-content { padding: 20px 24px; font-family: var(--font-sans); }
.article__content .kg-bookmark-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.article__content .kg-bookmark-description { margin-top: 6px; font-size: var(--t-sm); color: var(--ink-2); opacity: 1; }
.article__content .kg-bookmark-metadata { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-2); }
.article__content .kg-bookmark-thumbnail img { border-radius: 0; }

/* Product card left in the body (e.g. not a foodstories.shop product) */
.article__content .kg-product-card-container { max-width: 100%; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: var(--font-sans); }
.article__content .kg-product-card-image { border-radius: var(--r-sm); }
.article__content .kg-product-card h4.kg-product-card-title { font: 600 var(--t-card)/1.25 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.article__content .kg-product-card a.kg-product-card-button { height: 44px; border-radius: 999px; font-family: var(--font-sans); }

/* ---------- Shop the Story ---------- */
.shop { margin-top: clamp(56px, 7vw, 96px); padding-inline: var(--gutter); }
.shop__panel { display: grid; gap: clamp(24px, 3vw, 40px); max-width: 1040px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.shop--farm .shop__panel { border-color: transparent; background: var(--olive-tint); }
.shop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.shop__head .kicker { margin-bottom: 10px; color: var(--accent); }
.shop__title { font: 400 clamp(2.25rem, 1.8rem + 1.4vw, 3rem)/1.04 var(--font-display); letter-spacing: -.01em; }
.shop__desc { max-width: 44ch; margin-top: 12px; color: var(--ink-2); }
.shop__head .link-arrow { min-height: 44px; }

.shop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.shop[data-count="1"] .shop__grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) {
    .shop__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .shop:not([data-count="1"]) .kg-product-card-description { display: none; }
}
@media (min-width: 900px) {
    .shop:is([data-count="1"], [data-count="2"]) .shop__panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
    .shop:is([data-count="1"], [data-count="2"]) .shop__head { flex-direction: column; align-items: flex-start; }
    .shop[data-count="3"] .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop:not([data-count="1"], [data-count="2"], [data-count="3"]) .shop__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Both product card types share one look: a warm tile (white on farm stories) where the
   product photo's white background melts away (multiply), title, then the call to action. */
.shop { --tile: var(--paper-2); }
.shop--farm { --tile: var(--white); }
.shop .kg-card { margin: 0; }
.shop .product-card a.kg-bookmark-container,
.shop .kg-product-card-container { display: flex; flex-direction: column; align-items: stretch; height: 100%; overflow: hidden; border: 0; border-radius: var(--r); background: var(--tile); color: var(--ink); box-shadow: none; font-family: var(--font-sans); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.shop .product-card a.kg-bookmark-container:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop .kg-bookmark-thumbnail { order: -1; position: relative; flex: none; min-width: 0; aspect-ratio: 3 / 2; }
.shop .kg-bookmark-thumbnail img,
.shop .kg-product-card-image { width: 100%; height: 100%; padding: 8% 10% 2%; object-fit: contain; border-radius: 0; filter: brightness(1.03); mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.shop .product-card a:hover .kg-bookmark-thumbnail img { transform: scale(1.04); }
.shop .kg-bookmark-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px clamp(14px, 2vw, 22px) clamp(16px, 2vw, 22px); font-family: var(--font-sans); }
.shop .kg-bookmark-title,
.shop .kg-product-card h4.kg-product-card-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font: 600 clamp(1.0625rem, 1rem + .3vw, 1.3125rem)/1.3 var(--font-display); text-wrap: balance; }
.shop :is(.kg-bookmark-description, .kg-bookmark-metadata) { display: none; }
.shop .product-card__cta { margin-top: auto; }
.shop .product-card a:hover .product-card__cta { background: var(--fig-dark); }

.shop .kg-product-card { display: block; width: auto; }
.shop .kg-product-card-container { max-width: none; padding: 0 0 clamp(16px, 2vw, 22px); gap: 0; }
.shop .kg-product-card-image { aspect-ratio: 3 / 2; height: auto; }
.shop .kg-product-card-container > :not(img) { margin-inline: clamp(14px, 2vw, 22px); }
.shop .kg-product-card-title-container { margin-top: 16px; }
.shop .kg-product-card-description { margin-top: 6px; }
.shop .kg-product-card .kg-product-card-description p { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); opacity: 1; }
.shop .kg-product-card-rating { display: none; }
.shop .kg-product-card a.kg-product-card-button { align-self: flex-start; width: auto; height: auto; min-height: 40px; margin-top: 16px; padding: 8px 20px; border-radius: 999px; background: var(--fig); color: #fff; font: 600 var(--t-sm)/1.2 var(--font-sans); transition: background .25s var(--ease); }
.shop .kg-product-card a.kg-product-card-button:hover { opacity: 1; background: var(--fig-dark); }

/* One product: a larger card beside the intro; title and button share a row */
@media (min-width: 640px) {
    .shop[data-count="1"] .kg-bookmark-content { flex-direction: row; align-items: center; justify-content: space-between; padding: 20px 24px 24px; }
    .shop[data-count="1"] .product-card__cta { flex: none; margin-top: 0; }
    .shop[data-count="1"] :is(.kg-bookmark-title, .kg-product-card h4.kg-product-card-title) { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
}

/* ---------- End of story: author + share ---------- */
.article-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; width: min(var(--measure), 100% - 2 * var(--gutter)); margin: clamp(56px, 7vw, 96px) auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.article-end__author { display: flex; align-items: center; gap: 16px; }
.article-end__label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.article-end__name { margin-top: 2px; font: 600 1.375rem/1.25 var(--font-display); }
.article-end__name a:hover { color: var(--fig); }
.article-end__bio { margin-top: 6px; max-width: 40ch; font-size: var(--t-sm); color: var(--ink-2); }
.article-end__share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ---------- Cards without a photo (farm stories): the botanical sprig, large ---------- */
.site-main .card__media--empty::after { inset: auto 6% -6% auto; width: 46%; height: 92%; margin: 0; opacity: .42; background: var(--sprig, #c9d6a4); -webkit-mask: var(--sprig-svg) right bottom / contain no-repeat; mask: var(--sprig-svg) right bottom / contain no-repeat; }
.site-main .card.tag-farm-stories .card__kicker { color: var(--olive); }
/* Vary the tone so a row of photo-less stories doesn't read as one block */
.site-main .card:nth-child(3n+2) .card__media--empty { --sprig: var(--olive); background: radial-gradient(110% 90% at 85% 0%, #fbfcf6 0, transparent 60%), var(--olive-tint); }
.site-main .card:nth-child(3n) .card__media--empty { --sprig: #f4f6ea; background: radial-gradient(110% 90% at 85% 0%, #b6c08e 0, transparent 60%), linear-gradient(160deg, #8d9a62, #66763d); }

/* ---------- Keep reading ---------- */
.related { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.related .section-head { flex-wrap: wrap; }
@media (min-width: 640px) and (max-width: 1023px) { .related__grid > :nth-child(3) { display: none; } }
.related .link-arrow { min-height: 44px; white-space: nowrap; }
.related + .related--fallback { display: none; }
@media (min-width: 1024px) {
    .related__grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related__grid:has(> :nth-child(2):last-child) .card__media { --ratio: 16 / 9; }
}

/* ---------- Write for us ---------- */
.write-cta-wrap { padding-bottom: var(--section); }
.write-cta { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); }
.write-cta__text { position: relative; padding: clamp(28px, 5vw, 64px); }
.write-cta__title { margin-block: 12px 14px; font: 400 var(--t-h2)/1.04 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.write-cta__text p:not(.kicker) { max-width: 40ch; margin-bottom: 28px; color: var(--ink-2); }
/* Avocado cut-out (transparent PNG) resting on the card's bottom edge. */
.write-cta__img { align-self: flex-end; width: auto; height: 150px; margin: -24px 16px 0 0; mix-blend-mode: multiply; }
@media (min-width: 900px) {
    .write-cta { display: block; }
    .write-cta__text { max-width: 640px; }
    .write-cta__img { position: absolute; z-index: -1; right: clamp(24px, 6vw, 96px); bottom: 0; height: min(78%, 250px); margin: 0; }
}

/* ---------- Static pages ---------- */
.article--page { padding-bottom: var(--section); }
.page-head { padding-block: clamp(32px, 6vw, 96px) clamp(36px, 5vw, 64px); text-align: center; }
.page-head__title { margin-top: 12px; font: 400 var(--t-hero)/1.02 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.page-head__lede { max-width: 36em; margin: 20px auto 0; }
.page-head__media { max-width: calc(1040px + 2 * var(--gutter)); margin-top: clamp(32px, 5vw, 64px); }
.page-head__media img { width: 100%; border-radius: var(--r-lg); }

/* ---------- Archives (tag, author, paged) ---------- */
.archive-head { position: relative; isolation: isolate; padding-bottom: clamp(28px, 3vw, 44px); }
.archive-head--farm .article-head__motif { right: -56px; stroke-opacity: .2; }
.archive-head--farm .archive-head__aside { padding-right: clamp(0px, 5vw, 72px); }
.archive-head .crumbs { padding-top: 8px; }
.archive-head__body { display: grid; gap: 16px 64px; margin-top: clamp(16px, 3vw, 40px); }
.archive-head__title { font: 400 var(--t-hero)/1 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.archive-head__desc { max-width: 36em; font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.archive-head__count { margin-top: 14px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.archive-head--farm { padding-bottom: clamp(56px, 7vw, 104px); }
.archive-head--farm .archive-head__count { color: rgba(255, 255, 255, .78); }
@media (min-width: 1024px) {
    .archive-head__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
    .archive-head__body > .kicker { grid-column: 1 / -1; }
    .archive-head__aside { padding-bottom: 10px; }
}

.archive-nav { margin-top: clamp(24px, 3vw, 40px); }
.archive-nav .chips { padding: 2px 0 24px; border-bottom: 1px solid var(--line); }
@media (max-width: 767px) { .archive-nav .chips { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.archive-nav .chip { display: inline-flex; align-items: center; min-height: 44px; background: transparent; }
.archive-nav .chip[aria-current] { background: var(--ink); }
.archive { padding-block: clamp(32px, 4vw, 56px) var(--section); }

@media (min-width: 768px) {
    .archive__grid--lead > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
    .archive__grid--lead > .card:first-child .card__body { padding-top: 0; gap: 12px; }
    .archive__grid--lead > .card:first-child .card__title { font: 400 clamp(2rem, 1.3rem + 1.9vw, 3.25rem)/1.06 var(--font-display); letter-spacing: -.01em; }
    .archive__grid--lead > .card:first-child .card__excerpt { font-size: var(--t-body); -webkit-line-clamp: 4; }
}
@media (min-width: 1024px) {
    .archive__grid--lead:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Error ---------- */
.error { padding-block: clamp(40px, 7vw, 112px) clamp(48px, 6vw, 96px); text-align: center; }
.error__inner { display: flex; flex-direction: column; align-items: center; }
.error__code { margin-bottom: clamp(8px, 2vw, 24px); font: 400 clamp(7rem, 3rem + 16vw, 15rem)/.85 var(--font-display); letter-spacing: -.03em; color: var(--fig); }
.error__title { margin-top: 14px; font: 400 var(--t-h1)/1.04 var(--font-display); letter-spacing: -.01em; }
.error__text { max-width: 34em; margin-top: 18px; }
.error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.error__actions .icon { width: 18px; height: 18px; }
.error + .related { margin-top: 0; }

/* Photo credit on the olive farm header */
.article--farm .article-head figcaption { position: relative; color: rgba(255, 255, 255, .72); }
