/* Bea Elea — single post ("Soft Premium")
   Layout: airy white page, centred 680px reading column, slim sticky
   contents rail on the left, tools rail on the right; one blush wash
   behind the hero. Colour is used sparingly: rose for actions, gold for detail. */

:root {
  --bp-paper: #FFFFFF;
  --bp-blush: #FBF3F6;        /* soft wash, panels */
  --bp-mist: #EEF6F5;         /* teal-tinted panel */
  --bp-ink: #2B2130;          /* plum-black text */
  --bp-ink-soft: #6E6273;     /* secondary text */
  --bp-line: #EDE3E8;         /* hairlines */
  --bp-rose: #C2477A;         /* softened brand magenta: links, actions */
  --bp-rose-tint: #F6DCE6;
  --bp-gold: #B8914A;         /* rich gold detail, never yellow */
  --bp-teal: #2E7F86;

  --bp-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --bp-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --bp-text: 1.125rem;        /* changed by the A− / A+ control */
  --bp-radius: 18px;
  --bp-shadow: 0 1px 2px rgba(43, 33, 48, .04), 0 12px 32px -12px rgba(43, 33, 48, .10);
}
.bp { background: var(--bp-paper); color: var(--bp-ink); font-family: var(--bp-body); }
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
.bp a { color: var(--bp-rose); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bp :focus-visible { outline: 2px solid var(--bp-rose); outline-offset: 3px; border-radius: 6px; }

/* Reading progress */
.bp-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.bp-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bp-rose), var(--bp-gold)); border-radius: 0 3px 3px 0; transition: width .1s linear; }

/* Hero */
.bp-hero { background: linear-gradient(180deg, var(--bp-blush) 0%, var(--bp-paper) 100%); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: clamp(40px, 7vw, 88px) 0; }
.bp-hero__inner { max-width: 920px; margin: 0 auto; text-align: center; display: grid; gap: 20px; justify-items: center; }
.bp-crumbs { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-ink-soft); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.bp-crumbs a { color: var(--bp-ink-soft); text-decoration: none; }
.bp-crumbs a:hover { color: var(--bp-rose); }
.bp-cat { color: var(--bp-rose) !important; font-weight: 600; }
.bp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bp-gold); }
.bp-title { font-family: var(--bp-display); font-weight: 500; font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.015em; margin: 0; text-wrap: balance; max-width: 16ch; }
.bp-title em { font-style: italic; color: var(--bp-rose); }
.bp-dek { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--bp-ink-soft); margin: 0; max-width: 56ch; text-wrap: pretty; }
.bp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: .92rem; color: var(--bp-ink-soft); }
.bp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bp-rose-tint); border: 2px solid var(--bp-paper); box-shadow: 0 0 0 1px var(--bp-line); display: grid; place-items: center; font-family: var(--bp-display); color: var(--bp-rose); font-style: italic; }
.bp-meta strong { color: var(--bp-ink); font-weight: 600; }
.bp-figure { margin: clamp(28px, 4vw, 48px) auto 0; max-width: 1120px; width: 100%; }
.bp-figure img, .bp-figure .bp-art { width: 100%; max-width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px; display: block; }
.bp-figure figcaption { font-size: .82rem; color: var(--bp-ink-soft); margin-top: 12px; text-align: center; }

/* Three-column body */
.bp-body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: clamp(36px, 5vw, 64px); }
.bp-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 680px) 220px; justify-content: center; gap: clamp(28px, 4vw, 64px); align-items: start; }
.bp-rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 18px; font-size: .88rem; }
.bp-rail__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bp-gold); font-weight: 600; }

/* Contents */
.bp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--bp-line); }
.bp-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--bp-ink-soft); text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.bp-toc a:hover { color: var(--bp-ink); }
.bp-toc a.is-active { color: var(--bp-ink); border-left-color: var(--bp-rose); font-weight: 600; }

/* Tools */
.bp-tools { display: grid; gap: 8px; }
.bp-btn { appearance: none; border: 1px solid var(--bp-line); background: var(--bp-paper); color: var(--bp-ink); font: inherit; font-size: .88rem; padding: 10px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.bp-btn:hover { border-color: var(--bp-rose); color: var(--bp-rose); }
.bp-btn svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp-btn[aria-pressed="true"] { background: var(--bp-rose-tint); border-color: var(--bp-rose); color: var(--bp-rose); }
.bp-btn[aria-pressed="true"] svg { fill: currentColor; }
.bp-size { display: flex; border: 1px solid var(--bp-line); border-radius: 999px; overflow: hidden; }
.bp-size button { flex: 1; appearance: none; border: 0; background: transparent; color: var(--bp-ink); font: inherit; padding: 9px 0; cursor: pointer; }
.bp-size button + button { border-left: 1px solid var(--bp-line); }
.bp-size button:hover { background: var(--bp-blush); color: var(--bp-rose); }
.bp-share { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-share a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bp-line); display: grid; place-items: center; color: var(--bp-ink-soft); text-decoration: none; font-size: .78rem; font-weight: 600; }
.bp-share a:hover { border-color: var(--bp-rose); color: var(--bp-rose); }

/* Service card in the rail (services come first on Bea Elea) */
.bp-promo { background: var(--bp-mist); border-radius: var(--bp-radius); padding: 18px; display: grid; gap: 10px; }
.bp-promo h4 { font-family: var(--bp-display); font-weight: 500; font-size: 1.2rem; line-height: 1.2; margin: 0; }
.bp-promo p { margin: 0; color: var(--bp-ink-soft); line-height: 1.5; }
.bp-promo a { font-weight: 600; color: var(--bp-teal); text-decoration: none; }

/* Article typography */
.bp-content { font-size: var(--bp-text); line-height: 1.78; min-width: 0; }
.bp-content > * { margin-block: 0 1.25em; }
.bp-content > p:first-of-type::first-letter { font-family: var(--bp-display); float: left; font-size: 4.2em; line-height: .82; padding: .06em .1em 0 0; color: var(--bp-rose); }
.bp-content h2 { font-family: var(--bp-display); font-weight: 500; font-size: 1.85em; line-height: 1.15; letter-spacing: -.01em; margin-top: 2.1em; text-wrap: balance; scroll-margin-top: 110px; }
.bp-content h2 em { color: var(--bp-rose); }
.bp-content h3 { font-size: 1.12em; font-weight: 600; margin-top: 1.8em; }
.bp-content ul, .bp-content ol { padding-left: 1.3em; }
.bp-content li { margin-bottom: .4em; }
.bp-content li::marker { color: var(--bp-gold); }
.bp-content blockquote, .bp-quote { margin: 2.2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--bp-gold); font-family: var(--bp-display); font-style: italic; font-size: 1.55em; line-height: 1.35; color: var(--bp-ink); }
.bp-content blockquote cite, .bp-quote cite { display: block; font-family: var(--bp-body); font-style: normal; font-size: .52em; letter-spacing: .12em; text-transform: uppercase; color: var(--bp-ink-soft); margin-top: 14px; }
.bp-content img { border-radius: var(--bp-radius); height: auto; }

/* Key takeaways */
.bp-takeaways { background: var(--bp-blush); border-radius: var(--bp-radius); padding: clamp(20px, 3vw, 30px); font-size: .95em; }
.bp-takeaways h3 { margin: 0 0 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bp-rose); font-family: var(--bp-body); }
.bp-takeaways ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

/* Interactive checklist */
.bp-check { border: 1px solid var(--bp-line); border-radius: var(--bp-radius); padding: clamp(18px, 3vw, 26px); font-size: .95em; }
.bp-check__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bp-check__head strong { font-family: var(--bp-display); font-weight: 500; font-size: 1.3em; }
.bp-check__count { font-size: .82rem; color: var(--bp-ink-soft); font-variant-numeric: tabular-nums; }
.bp-check__bar { height: 4px; background: var(--bp-line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.bp-check__bar span { display: block; height: 100%; width: 0; background: var(--bp-teal); transition: width .3s; }
.bp-check label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--bp-line); cursor: pointer; line-height: 1.5; }
.bp-check input { appearance: none; width: 20px; height: 20px; flex: none; margin-top: 3px; border: 1.5px solid var(--bp-ink-soft); border-radius: 6px; display: grid; place-items: center; cursor: pointer; background: var(--bp-paper); }
.bp-check input:checked { background: var(--bp-teal); border-color: var(--bp-teal); }
.bp-check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--bp-paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bp-check input:checked + span { color: var(--bp-ink-soft); text-decoration: line-through; text-decoration-color: var(--bp-line); }

/* Tags + end-of-article */
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 1.4em; border-top: 1px solid var(--bp-line); }
.bp-tags a { font-size: .82rem; padding: 6px 14px; border-radius: 999px; background: var(--bp-blush); color: var(--bp-ink); text-decoration: none; }
.bp-tags a:hover { color: var(--bp-rose); }
.bp-author { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: center; padding: clamp(20px, 3vw, 28px); border-radius: var(--bp-radius); background: var(--bp-paper); box-shadow: var(--bp-shadow); border: 1px solid var(--bp-line); font-size: 1rem; }
.bp-author .bp-avatar { width: 88px; height: 88px; font-size: 2rem; }
.bp-author h3 { font-family: var(--bp-display); font-weight: 500; font-size: 1.35rem; margin: 0 0 4px; }
.bp-author p { margin: 0 0 10px; color: var(--bp-ink-soft); line-height: 1.55; }
.bp-author nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
.bp-author nav a { text-decoration: none; font-weight: 600; }

/* Related + newsletter */
.bp-more { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: clamp(48px, 6vw, 80px); background: var(--bp-blush); }
.bp-more__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
.bp-more h2 { font-family: var(--bp-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.bp-more h2 em { color: var(--bp-rose); }
.bp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.bp-card { display: grid; gap: 12px; text-decoration: none; color: var(--bp-ink) !important; }
.bp-card__img { aspect-ratio: 4 / 3; border-radius: var(--bp-radius); overflow: hidden; background: var(--bp-paper); max-width: 100%; }
.bp-card__img img, .bp-card__img .bp-art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bp-card:hover .bp-card__img img, .bp-card:hover .bp-card__img .bp-art { transform: scale(1.04); }
.bp-card__cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-rose); font-weight: 600; }
.bp-card h3 { font-family: var(--bp-display); font-weight: 500; font-size: 1.3rem; line-height: 1.22; margin: 0; text-wrap: balance; }
.bp-card__meta { font-size: .84rem; color: var(--bp-ink-soft); }
.bp-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--bp-paper); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--bp-shadow); }
.bp-news h3 { font-family: var(--bp-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 6px; line-height: 1.15; }
.bp-news h3 em { color: var(--bp-rose); }
.bp-news p { margin: 0; color: var(--bp-ink-soft); line-height: 1.55; }
.bp-news form { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-news input[type="email"] { flex: 1 1 200px; min-width: 0; font: inherit; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--bp-line); background: var(--bp-paper); color: var(--bp-ink); }
.bp-news input[type="email"]:focus { outline: none; border-color: var(--bp-rose); box-shadow: 0 0 0 3px var(--bp-rose-tint); }
.bp-cta { appearance: none; border: 0; font: inherit; font-weight: 600; padding: 14px 24px; border-radius: 999px; background: var(--bp-ink); color: var(--bp-paper); cursor: pointer; transition: background .2s; }
.bp-cta:hover { background: var(--bp-rose); }
.bp-news__msg { font-size: .88rem; color: var(--bp-teal); margin-top: 8px; min-height: 1.3em; }

/* Back to top + toast */
.bp-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--bp-line); background: var(--bp-paper); color: var(--bp-ink); box-shadow: var(--bp-shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; z-index: 50; }
.bp-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.bp-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bp-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--bp-ink); color: var(--bp-paper); padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 70; }
.bp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Mobile tool bar replaces the side rails */
.bp-mobilebar { display: none; }

@media (max-width: 1100px) {
  .bp-grid { grid-template-columns: minmax(0, 680px) 220px; }
  .bp-rail--toc { display: none; }
}
@media (max-width: 820px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-rail--tools { position: static; }
  .bp-rail--tools .bp-tools, .bp-rail--tools .bp-share-wrap { display: none; }
  .bp-cards { grid-template-columns: minmax(0, 1fr); }
  .bp-news { grid-template-columns: minmax(0, 1fr); }
  .bp-mobilebar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
  .bp-author { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .bp-author nav { justify-content: center; }
}
@media (min-width: 560px) and (max-width: 820px) {
  .bp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-cards > :nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bp *, .bp-progress span, .bp-top, .bp-toast { transition: none !important; }
  html { scroll-behavior: auto !important; }
}
