/* CLAUDIA'S GARDEN · the blog (/blog/ and /blog/<slug>/). Hope's design (blog-spec.md, 2026-11-11): paper page, forest
   header, Cormorant Garamond Italic titles, Inter text. Motion: card lift only (2px, .3s, the site easing); none when the
   reader asks for reduced motion. */
.blog-page {
  --paper: #F8F2E4; --card: #FFFCF5; --line: #E3D9C3; --forest: #143D2E; --gold: #F0D58E; --rose: #9E2550;
  --ink2: #3E4A44; --body: #26332D; --muted: #5F6B64; --mist: #E6F0E9;
  --bl-g: clamp(16px, 4vw, 32px);
}
/* the shared bar sits on a solid forest band here (the page under it is light) */
.blog-page .bar { background: var(--forest); padding-top: 14px; padding-bottom: 14px; }
.blog-page .bar::before { display: none; }
@media (max-width: 899px) {
  .blog-page .dock { background: rgba(20, 61, 46, .94); }
}

.bl-main { background: var(--paper); color: var(--forest); color-scheme: light; padding: 132px 0 88px; font-size: 16px; line-height: 1.6; }
@media (max-width: 899px) { .bl-main { padding-top: 92px; } }
.bl-wrap { max-width: calc(1120px + 2 * var(--bl-g)); margin: 0 auto; padding: 0 var(--bl-g); }
.bl-main :focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.bl-main h1, .bl-main h2, .bl-main h3 { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--forest); letter-spacing: 0; }
.bl-main [tabindex="-1"]:focus { outline: none; }
.bl-eyebrow { margin: 0; font: 600 11.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.bl-status { color: var(--muted); margin: 24px 0; }

/* ---------- index head + chips ---------- */
.bl-head h1 { font-size: clamp(44px, 6.2vw, 72px); line-height: 1.03; margin: 14px 0 12px; }
.bl-intro { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.47; color: var(--ink2); max-width: 36em; margin: 0; }
.bl-chips ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 34px; padding: 0; }
.bl-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font: 600 14px/1 var(--sans); color: var(--forest); text-decoration: none; white-space: nowrap; transition: border-color .3s var(--ease); }
.bl-chips a:hover { border-color: var(--forest); }
.bl-chips a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--gold); }
@media (max-width: 640px) {
  .bl-chips ul { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--bl-g); margin: 20px calc(-1 * var(--bl-g)) 26px; padding: 2px var(--bl-g) 6px; scrollbar-width: none; }
  .bl-chips ul::-webkit-scrollbar { display: none; }
  .bl-chips li { scroll-snap-align: start; flex: none; }
}

/* ---------- meta line (clock · read time · date) ---------- */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .45em; margin: 0; font: 500 13px/1.5 var(--sans); color: var(--muted); }
.bl-meta > :not(:last-child)::after { content: "·"; margin-left: .45em; }
.bl-meta__time { position: relative; padding-left: 17px; }
.bl-meta > :has(+ .bl-ai-tag)::after { content: none; }
.bl-ai-tag { margin-left: .2em; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--forest); font: 600 11.5px/1.6 var(--sans); white-space: nowrap; }
.bl-meta__time::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; box-sizing: border-box; border: 1.4px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) 4.3px 1.6px / 1.3px 4.2px no-repeat, linear-gradient(currentColor, currentColor) 4.3px 4.6px / 3px 1.3px no-repeat; }

/* ---------- cards: one link (the title), stretched over the card ---------- */
.bl-card, .bl-feat { position: relative; }
.bl-card__title a::after, .bl-feat__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bl-card__title a, .bl-feat__title a { text-decoration: none; }
.bl-card__title a:focus-visible, .bl-feat__title a:focus-visible { outline: none; }
.bl-card:focus-within, .bl-feat:focus-within { outline: 2px solid var(--forest); outline-offset: 6px; border-radius: 18px; }
.bl-card { display: flex; flex-direction: column; border-radius: 18px; transition: transform .3s var(--ease); }
.bl-card:hover, .bl-feat:hover { transform: translateY(-2px); }
.bl-card:hover .bl-card__title a, .bl-feat:hover .bl-feat__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bl-card__img { order: 0; aspect-ratio: 16 / 9.5; border-radius: 18px; overflow: hidden; background: var(--mist); margin-bottom: 18px; }
.bl-card__img img, .bl-feat__img img { width: 100%; height: 100%; object-fit: cover; }
.bl-card .bl-eyebrow { order: 1; }
.bl-card__title { order: 2; font-size: clamp(26px, 2.4vw, 30px); line-height: 1.07; margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__desc { order: 3; margin: 0 0 10px; font-size: 15px; line-height: 23px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card .bl-meta { order: 4; }
.bl-noimg { background: linear-gradient(135deg, #2f5a45, #143D2E); }

.bl-feat { display: grid; grid-template-columns: 57fr 43fr; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 44px; transition: transform .3s var(--ease); }
.bl-feat__img { min-height: 400px; background: var(--mist); }
.bl-feat__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; }
.bl-feat .bl-eyebrow { order: 1; }
.bl-feat__title { order: 2; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; margin: 14px 0 16px; }
.bl-feat__desc { order: 3; font-size: 17px; line-height: 1.55; color: var(--ink2); margin: 0 0 16px; }
.bl-feat .bl-meta { order: 4; margin-bottom: 26px; }
.bl-feat .bl-btn { order: 5; }
@media (max-width: 860px) {
  .bl-feat { grid-template-columns: 1fr; }
  .bl-feat__img { min-height: 0; aspect-ratio: 16 / 10; }
  .bl-feat__copy { padding: 24px 22px 26px; }
}

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 1024px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; } }
/* While the posts load: the shape of one featured card and one grid row (sizes measured from the real ones at 1280 and
   375), so the scan band below is already where the posts will push it and nothing moves when they arrive. Static: no
   shimmer, so nothing to switch off for reduced motion. Hidden without JS (a <noscript> style in the head). "Loading
   posts…" sits inside it, where the featured copy will be, so hiding that line moves nothing either. */
.bl-skel__feat { position: relative; display: grid; grid-template-columns: 57fr 43fr; min-height: 409px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 44px; }
.bl-skel__feat span { background: var(--mist); }
.bl-skel__feat .bl-status { position: absolute; left: 57%; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0 24px; text-align: center; }
.bl-skel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.bl-skel__grid span { aspect-ratio: 16 / 9.5; border-radius: 18px; background: var(--mist); margin-bottom: 193px; }
@media (max-width: 1024px) { .bl-skel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl-skel__grid span:nth-child(3) { display: none; } }
@media (max-width: 860px) { .bl-skel__feat { grid-template-columns: 1fr; min-height: 0; } .bl-skel__feat span { aspect-ratio: 16 / 10; margin-bottom: 376px; }
  .bl-skel__feat .bl-status { left: 0; top: auto; bottom: 170px; transform: none; } }
@media (max-width: 640px) { .bl-skel__grid { grid-template-columns: minmax(0, 1fr); } .bl-skel__grid span:nth-child(2) { display: none; } .bl-skel__grid span { margin-bottom: 184px; } }
.bl-pager { display: flex; justify-content: center; gap: 12px; margin: 44px 0 0; }

/* ---------- buttons ---------- */
.bl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }
.bl-btn:hover { transform: translateY(-2px); }
.bl-btn--forest { background: var(--forest); color: var(--gold); }
.bl-btn--forest::after { content: "›"; font-size: 18px; line-height: 1; margin-top: -2px; }
.bl-btn--line { background: var(--card); border-color: var(--line); color: var(--forest); }
.bl-btn--line:hover { border-color: var(--forest); }
.bl-btn--gold { background: var(--gold); color: var(--forest); }
.bl-btn--ghost { border-color: rgba(240, 213, 142, .55); color: var(--paper); }
.bl-btn--ghost:hover { border-color: var(--gold); }
.bl-btn--scan::before { content: ""; width: 17px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143D2E' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 9V6a2 2 0 0 1 2-2h3M15 4h3a2 2 0 0 1 2 2v3M20 15v3a2 2 0 0 1-2 2h-3M9 20H6a2 2 0 0 1-2-2v-3'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- empty / message states ---------- */
.bl-empty { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.bl-empty h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 0 0 12px; }
.bl-empty p { color: var(--ink2); max-width: 34em; margin: 0 auto 0; }
.bl-empty .bl-empty__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ---------- the scan band (index + post) ---------- */
.bl-scan { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--forest); color: var(--paper); border-radius: 26px; overflow: hidden; margin-top: 64px; }
.bl-scan__copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 40px); }
.bl-scan h2 { color: var(--gold); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.06; margin: 0 0 10px; }
.bl-scan p { color: #EAE4D4; font-size: 16px; line-height: 1.5; max-width: 30em; margin: 0; }
.bl-scan .bl-scan__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bl-scan :focus-visible { outline-color: var(--gold); }
.bl-scan__img { background: url(img/scan-1280.webp) 70% 40% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
@media (max-width: 760px) {
  .bl-scan { grid-template-columns: 1fr; }
  .bl-scan__img { order: -1; height: 170px; background-image: url(img/scan-p.webp); background-position: center 38%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .bl-scan__copy { padding-top: 6px; }
}

/* ---------- the post ---------- */
.bl-post__head { text-align: center; max-width: calc(920px + 2 * var(--bl-g)); }
.bl-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; list-style: none; margin: 0 0 6px; padding: 0; font: 500 13.5px/1 var(--sans); color: var(--muted); }
.bl-crumbs li { display: inline-flex; align-items: center; }
.bl-crumbs li + li::before { content: "›"; margin: 0 2px; color: var(--muted); }
.bl-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; text-decoration: none; }
.bl-crumbs li:first-child a { padding-left: 0; }
.bl-crumbs li + li a { color: var(--rose); font-weight: 600; }
.bl-crumbs a:hover { text-decoration: underline; }
.bl-post__head h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.03; margin: 0 0 14px; }
.bl-post__dek { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink2); max-width: 34em; margin: 0 auto 12px; }
.bl-post__head .bl-meta { justify-content: center; font-size: 13.5px; }
.bl-post__head + .bl-wrap { margin-top: 28px; }
.bl-hero { margin: 0 0 26px; }
.bl-hero img { width: 100%; height: auto; aspect-ratio: 1120 / 540; object-fit: cover; border-radius: 24px; background: var(--mist); }
.bl-credit { margin-top: 10px; font: 400 12.5px/18px var(--sans); color: var(--muted); }
.bl-credit a { text-decoration: underline; text-underline-offset: 2px; }
.bl-ai, .bl-prose, .bl-safety, .bl-plants { max-width: 680px; margin-left: auto; margin-right: auto; }
.bl-ai { position: relative; background: var(--mist); border-radius: 14px; padding: 12px 18px 12px 46px; margin-bottom: 30px; font-size: 14px; line-height: 1.5; color: var(--body); }
.bl-ai p { margin: 0; }
.bl-ai::before { content: "✦"; position: absolute; left: 18px; top: 11px; font-size: 16px; color: var(--forest); }
.bl-ai a { text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 12px 2px; margin: -12px 0; }
.bl-prose { font-size: 18px; line-height: 30px; color: var(--body); }
.bl-prose p { margin: 0 0 1.1em; }
.bl-prose h2 { font-size: clamp(28px, 2.8vw, 32px); line-height: 1.12; margin: 1.5em 0 .5em; }
.bl-prose h3 { font-size: clamp(23px, 2.2vw, 26px); line-height: 1.15; margin: 1.3em 0 .4em; }
.bl-prose ul, .bl-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.bl-prose li { margin: 0 0 .5em; }
.bl-prose a { color: var(--forest); text-decoration: underline; text-decoration-color: rgba(158, 37, 80, .55); text-underline-offset: 3px; }
.bl-prose a:hover { color: var(--rose); }
.bl-prose strong { font-weight: 600; color: var(--forest); }
@media (max-width: 640px) {
  .bl-post__head { text-align: left; }
  .bl-crumbs ol { justify-content: flex-start; }
  .bl-post__dek { margin-left: 0; }
  .bl-post__head .bl-meta { justify-content: flex-start; }
  .bl-hero { margin-left: calc(-1 * var(--bl-g)); margin-right: calc(-1 * var(--bl-g)); }
  .bl-hero img { height: 250px; aspect-ratio: auto; border-radius: 0; }
  .bl-credit { padding: 0 var(--bl-g); }
  .bl-prose { font-size: 16.5px; line-height: 27px; }
}

/* ---------- the plant-safety note (every post, after the body) ---------- */
.bl-safety { margin-top: 28px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 18px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.bl-safety p { margin: 0; }

/* ---------- plants in this post ---------- */
.bl-plants { margin-top: 40px; }
.bl-plants h2 { font-size: 30px; line-height: 1.1; margin: 0 0 14px; }
.bl-plants__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.bl-plant a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.bl-plant a:hover { transform: translateY(-2px); border-color: var(--forest); }
.bl-plant__pic { height: 110px; background: var(--mist) center / 46px no-repeat; position: relative; }
.bl-plant__pic::after { content: ""; position: absolute; inset: 0; background: var(--forest); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19c0-8 5-13 14-14-1 9-6 14-14 14Zm0 0 8-8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19c0-8 5-13 14-14-1 9-6 14-14 14Zm0 0 8-8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px no-repeat; }
.bl-plant__name { padding: 12px 14px 0; font: 600 15.5px/1.3 var(--sans); color: var(--forest); }
.bl-plant__sci { padding: 2px 14px 0; font: italic 400 13.5px/1.35 var(--sans); color: var(--muted); }
.bl-plant__go { padding: 8px 14px 14px; margin-top: auto; font: 600 13.5px/1 var(--sans); color: var(--rose); }
.bl-plant__go::after { content: " ›"; }
.bl-plants__hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.bl-plants__hint a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 12px 0; margin: -12px 0; }
@media (max-width: 640px) {
  .bl-plants__row { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--bl-g); margin: 0 calc(-1 * var(--bl-g)); padding: 2px var(--bl-g) 8px; scrollbar-width: none; }
  .bl-plants__row::-webkit-scrollbar { display: none; }
  .bl-plant { flex: none; width: 170px; scroll-snap-align: start; }
}

/* ---------- keep reading ---------- */
.bl-more { margin-top: 64px; }
.bl-more > h2 { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 22px; }

@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-feat, .bl-btn, .bl-plant a, .bl-chips a { transition: none; }
  .bl-card:hover, .bl-feat:hover, .bl-btn:hover, .bl-plant a:hover { transform: none; }
}
