/* ═══════════════════════════════════════════════════════════
   Andemora Cleaning — The Journal (blog index + single post)
   Extends ../styles.css (tokens, nav, buttons, footer, cursor).
   Long-form reading: Jost 400 at 18px, ~68ch measure, 1.8 leading.
   ═══════════════════════════════════════════════════════════ */

.bl-preview-banner {
  position: relative;
  z-index: 90;
  margin: 0;
  padding: 92px 20px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--plum-ink);
  background: repeating-linear-gradient(135deg, rgba(253, 174, 111, 0.35) 0 14px, rgba(253, 174, 111, 0.2) 14px 28px);
}
.bl-preview-banner + .bl-hero,
.bl-preview-banner + .po-hero { padding-top: 60px; }

/* ═══════════ INDEX HERO ═══════════ */
.bl-hero { padding: 160px 28px 40px; }
.bl-hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.bl-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.12;
  margin-bottom: 24px;
}
.bl-hero h1 em { font-style: normal; color: var(--terracotta-text); }
.bl-hero__body { font-size: 18px; color: var(--mauve); max-width: 60ch; margin: 0 auto; }

/* ═══════════ LIST ═══════════ */
.bl-list { padding: 40px 28px 110px; }
.bl-list__inner { max-width: var(--maxw); margin: 0 auto; }

.bl-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.bl-chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--graphite);
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.bl-chip:hover { border-color: var(--peach); background: rgba(253, 174, 111, 0.1); }
.bl-chip.is-active { background: var(--plum); border-color: var(--plum); color: var(--linen); }

/* Brand covers — no stock photos: gradient + sparkle + topic */
.bl-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-soft);
}
.bl-cover--2 { background: linear-gradient(135deg, #2A0A2C 0%, #48084A 60%, #7a2140 120%); }
.bl-cover--3 { background: linear-gradient(135deg, #7a2140 0%, #D65C2F 70%, #FDAE6F 130%); }
.bl-cover--4 { background: linear-gradient(160deg, #48084A 0%, #2A0A2C 55%, #D65C2F 140%); }
.bl-cover::after {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  right: -25%;
  bottom: -40%;
  background: radial-gradient(circle, rgba(253, 174, 111, 0.3), transparent 65%);
}
.bl-cover img {
  position: relative;
  z-index: 1;
  width: 18%;
  min-width: 34px;
  max-width: 76px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bl-cover__cluster {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 248, 245, 0.8);
}
.bl-cover--sm { aspect-ratio: 16 / 9; }
.bl-cover--lg { aspect-ratio: auto; min-height: 100%; }

/* Featured photo (generated per post) replaces the gradient cover */
.bl-cover--photo { background: var(--sand); }
.bl-cover--photo::after { display: none; }
.bl-cover--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  object-fit: cover;
  filter: none;
  z-index: 0;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Gallery mat: a linen frame that draws in from the edges */
.bl-cover--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(251, 248, 245, 0.92);
  transition: box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.po-hero:has(+ .po-figure) { border-bottom: 0; padding-bottom: 40px; }
.po-figure {
  width: min(calc(var(--maxw) - 56px), calc(100% - 56px));
  margin: 0 auto;
  padding: 0;
}
.po-figure img {
  width: 100%;
  height: auto; /* the height="900" attribute would otherwise win over aspect-ratio */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--sand);
}

/* Featured */
.bl-feature { margin-bottom: 30px; }
.bl-feature__link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: #FFFDFC;
  border: 1px solid var(--sand);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}
/* Hover — calm and editorial: nothing jumps. The photo settles into
   its frame, a linen mat draws in, the title is underlined in terracotta. */
@media (hover: hover) and (pointer: fine) {
  .bl-feature__link:hover,
  .bl-card__link:hover { box-shadow: var(--shadow-soft); border-color: #E3D3C7; }
  .bl-feature__link:hover .bl-cover:not(.bl-cover--photo) img,
  .bl-card__link:hover .bl-cover:not(.bl-cover--photo) img { transform: rotate(18deg) scale(1.08); }
  .bl-feature__link:hover .bl-cover--photo img,
  .bl-card__link:hover .bl-cover--photo img { transform: scale(1); }
  .bl-card__link:hover .bl-cover--photo::before { box-shadow: inset 0 0 0 10px rgba(251, 248, 245, 0.92); }
  .bl-feature__link:hover .bl-cover--photo::before { box-shadow: inset 0 0 0 14px rgba(251, 248, 245, 0.92); }
  .bl-feature__link:hover .bl-title,
  .bl-card__link:hover .bl-title { background-size: 100% 1px; }
  .bl-feature__link:hover .bl-readmore span { transform: translateX(5px); }
}
.bl-title {
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.bl-readmore span { display: inline-block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.bl-feature__link:focus-visible,
.bl-card__link:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.bl-feature .bl-cover { min-height: 340px; }
.bl-feature__body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.bl-feature h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.bl-feature__body h2 + .bl-feature__excerpt { margin-top: 16px; }
.bl-feature__excerpt { font-size: 17px; color: var(--mauve); margin-bottom: 20px; }
.bl-readmore {
  margin-top: 22px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--terracotta-text);
}

/* Cards */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bl-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFDFC;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}
.bl-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.bl-card__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 10px;
}
.bl-card h3 { font-size: 21px; line-height: 1.3; }
.bl-card__body h3 + .bl-card__excerpt { margin-top: 10px; }
.bl-card__excerpt { font-size: 15px; line-height: 1.65; color: var(--mauve); margin-bottom: 18px; }
.bl-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--mauve);
}
.bl-card[hidden], .bl-feature[hidden] { display: none; }
.bl-noresults { text-align: center; color: var(--mauve); margin-top: 30px; }

/* Empty state */
.bl-empty {
  max-width: 640px;
  margin: 10px auto 0;
  text-align: center;
  background: rgba(253, 174, 111, 0.1);
  border: 1px dashed var(--peach);
  border-radius: 24px;
  padding: 54px 40px;
}
.bl-empty img { margin: 0 auto 20px; }
.bl-empty h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.bl-empty p { color: var(--mauve); margin-bottom: 28px; }

/* ═══════════ CTA BAND ═══════════ */
.bl-cta {
  background: var(--gradient-soft);
  color: var(--linen);
  padding: 96px 28px;
  text-align: center;
}
.bl-cta__inner { max-width: 640px; margin: 0 auto; }
.bl-cta__inner img { margin: 0 auto 22px; }
.bl-cta h2 { color: var(--linen); margin-bottom: 16px; }
.bl-cta p:not(.label) { color: rgba(251, 248, 245, 0.8); font-size: 17px; margin-bottom: 30px; }

/* ═══════════ SINGLE POST ═══════════ */
.po-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 150;
  pointer-events: none;
}
.po-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.po-hero { padding: 150px 28px 56px; border-bottom: 1px solid var(--sand); }
/* Same left edge as the article column below */
.po-hero__inner { max-width: calc(var(--maxw) - 56px); margin: 0 auto; }
.po-hero__inner > * { max-width: 860px; }
.po-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--mauve);
  margin-bottom: 28px;
}
.po-crumbs a { color: var(--mauve); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.po-crumbs a:hover { color: var(--terracotta-text); border-bottom-color: currentColor; }
.po-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.14;
  margin-bottom: 22px;
}
.po-dek { font-size: 20px; line-height: 1.6; color: var(--mauve); max-width: 60ch; }
.po-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 400;
  color: var(--mauve);
}

.po-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: start;
}
.po-article { max-width: 720px; min-width: 0; }

.po-takeaways {
  background: #F7EFE9;
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  margin-bottom: 44px;
}
.po-takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.po-takeaways li {
  position: relative;
  padding-left: 24px;
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--plum-ink);
}
.po-takeaways li::before { content: '✦'; position: absolute; left: 0; color: var(--terracotta); font-size: 12px; top: 3px; }

/* Prose */
.prose {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--graphite);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.25;
  margin-top: 2.2em;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: clamp(20px, 2.2vw, 23px);
  margin-top: 1.8em;
  scroll-margin-top: 100px;
}
.prose h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-top: 1.8em;
}
.prose a {
  color: var(--terracotta-text);
  border-bottom: 1px solid rgba(214, 92, 47, 0.35);
  transition: border-color 0.2s ease;
}
.prose a:hover { border-bottom-color: var(--terracotta); }
.prose strong { font-weight: 600; color: var(--plum-ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: 0.5em; }
.prose ul > li::before { content: '✦'; position: absolute; left: 2px; top: 0.15em; color: var(--peach); font-size: 12px; }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; }
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-display);
  color: var(--terracotta-text);
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--peach);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.5;
  color: var(--plum-ink);
}
.prose hr { border: 0; height: 1px; background: var(--sand); margin: 2.4em 0; }
.prose code {
  font-size: 0.88em;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 6px;
}
.callout {
  border: 1px solid var(--sand);
  background: #FFFDFC;
  border-radius: var(--radius);
  padding: 22px 26px;
}
.callout--tip { border-color: rgba(253, 174, 111, 0.6); background: rgba(253, 174, 111, 0.1); }
.callout--important { border-color: rgba(214, 92, 47, 0.45); background: rgba(214, 92, 47, 0.06); }
.callout__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 8px;
}
.callout p + p { margin-top: 0.8em; }
.callout p:not(.callout__title) { font-size: 16.5px; line-height: 1.7; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.prose th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum-ink);
  background: #F7EFE9;
  padding: 14px 16px;
}
.prose td { padding: 13px 16px; border-top: 1px solid var(--sand); vertical-align: top; }

/* FAQ */
.po-faq { margin-top: 64px; }
.po-faq h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 22px; scroll-margin-top: 100px; }
.po-faq__item { border-top: 1px solid var(--sand); }
.po-faq__item:last-child { border-bottom: 1px solid var(--sand); }
.po-faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  color: var(--plum-ink);
}
.po-faq__item summary::-webkit-details-marker { display: none; }
.po-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 26px;
  color: var(--terracotta);
  transition: transform 0.3s ease;
}
.po-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.po-faq__item summary:hover { color: var(--terracotta-text); }
.po-faq__answer { padding: 0 0 22px; font-size: 17px; line-height: 1.75; }

/* Sources */
.po-sources {
  margin-top: 56px;
  padding: 28px 30px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: #FFFDFC;
}
.po-sources ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.6; }
.po-sources li::marker { color: var(--terracotta-text); }
.po-sources a { color: var(--plum-ink); border-bottom: 1px solid var(--sand); word-break: break-word; }
.po-sources a:hover { border-bottom-color: var(--terracotta); }
.po-sources span { color: var(--mauve); }

/* Author */
.po-author {
  margin-top: 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 30px;
  background: #F7EFE9;
  border-radius: var(--radius);
}
.po-author img { flex-shrink: 0; margin-top: 4px; }
.po-author__name { font-family: var(--font-display); font-size: 18px; color: var(--plum-ink); margin-bottom: 6px; }
.po-author p:not(.po-author__name) { font-size: 15px; color: var(--mauve); line-height: 1.65; }

/* Aside */
.po-aside__sticky { position: sticky; top: 104px; display: grid; gap: 22px; }
.po-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--sand); }
.po-toc a {
  display: block;
  padding: 7px 0 7px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--mauve);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.po-toc a:hover { color: var(--plum-ink); }
.po-toc a.is-active { color: var(--terracotta-text); border-left-color: var(--terracotta); }
.po-aside__cta {
  background: var(--gradient-soft);
  color: var(--linen);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.po-aside__cta .label { margin-bottom: 10px; }
.po-aside__title { font-family: var(--font-display); font-size: 21px; line-height: 1.3; color: var(--linen); margin-bottom: 10px; }
.po-aside__cta p:not(.label):not(.po-aside__title) { font-size: 14.5px; line-height: 1.6; color: rgba(251, 248, 245, 0.8); margin-bottom: 20px; }

/* Related */
.po-related { background: #F7EFE9; padding: 96px 28px; }
.po-related__inner { max-width: var(--maxw); margin: 0 auto; }
.po-related h2 { margin-bottom: 40px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1080px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .po-article { margin: 0 auto; }
  .po-aside { max-width: 720px; width: 100%; margin: 48px auto 0; }
  .po-aside__sticky { position: static; }
  .po-toc { display: none; }
}

@media (max-width: 900px) {
  .bl-hero { padding-top: 130px; }
  .po-hero { padding-top: 124px; }
  .bl-feature__link { grid-template-columns: minmax(0, 1fr); }
  .bl-feature .bl-cover { min-height: 220px; }
  .bl-feature__body { padding: 32px 28px; }
}

@media (max-width: 620px) {
  .bl-hero, .bl-list, .po-hero, .bl-cta, .po-related { padding-left: 20px; padding-right: 20px; }
  .po-layout { padding: 44px 20px 70px; }
  .po-figure { width: calc(100% - 40px); }
  .po-figure img { border-radius: 16px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 36px; padding: 0 20px 6px; }
  .bl-chip { flex-shrink: 0; }
  .prose { font-size: 17px; }
  .po-dek { font-size: 18px; }
  .po-takeaways, .po-sources, .po-author { padding: 22px 20px; }
  .po-author { flex-direction: column; gap: 12px; }
  .bl-empty { padding: 40px 24px; }
}
