/* Made by app-landing-seo blog.py from blog.json: change the theme there, not here. */
:root {
  --bk-accent: #2B6A4E;
  --bk-accent-soft: #E3EFE8;
  --bk-ink: #1B1B1B;
  --bk-muted: #5E5E5A;
  --bk-card: #FFFFFF;
  --bk-line: #DEDEDA;
  --bk-paper: #F4F4F2;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bk-accent: #74C69D;
  --bk-accent-soft: #1F3529;
  --bk-ink: #ECECEA;
  --bk-muted: #A8A8A4;
  --bk-card: #1C1D1D;
  --bk-line: #343636;
  --bk-paper: #121313;
} }
:root[data-theme="dark"] {
  --bk-accent: #74C69D;
  --bk-accent-soft: #1F3529;
  --bk-ink: #ECECEA;
  --bk-muted: #A8A8A4;
  --bk-card: #1C1D1D;
  --bk-line: #343636;
  --bk-paper: #121313;
}
/* Posts, sources, the doctor box and motion icons. The site's own stylesheet sets the font, the
   header and the footer; this only styles what's inside <article class="bk-post">. No inline styles
   anywhere, so it works under style-src 'self'. */

.bk-post { max-width: 680px; margin: 0 auto; padding: 8px 0 48px; color: var(--bk-ink); }
.bk-post h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.12; margin: 8px 0 14px; letter-spacing: -0.01em; }
.bk-post h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; scroll-margin-top: 80px; }
.bk-post h3 { font-size: 18px; margin: 26px 0 6px; }
.bk-post p, .bk-post li { font-size: 18px; line-height: 1.6; }
.bk-post ul, .bk-post ol { padding-left: 1.3em; }
.bk-post li { margin: 4px 0; }
.bk-post a { color: var(--bk-accent); text-underline-offset: 3px; }
.bk-crumbs { font-size: 15px; color: var(--bk-muted); }
.bk-crumbs a { color: var(--bk-muted); }
.bk-lead { font-size: 20px !important; color: var(--bk-ink); }
.bk-byline { font-size: 15px !important; color: var(--bk-muted); border-bottom: 1px solid var(--bk-line); padding-bottom: 18px; margin-bottom: 8px; }
.bk-note { background: var(--bk-card); border-left: 4px solid var(--bk-line); padding: 12px 16px; border-radius: 0 12px 12px 0; }

/* Notes and sources */
.bk-cite { font-size: 0.68em; line-height: 0; margin-left: 1px; }
.bk-cite a { text-decoration: none; font-weight: 700; padding: 0 2px; }
.bk-cite a:focus-visible, .bk-back:focus-visible { outline: 2px solid var(--bk-accent); border-radius: 4px; }
.bk-sources { margin-top: 48px; border-top: 1px solid var(--bk-line); }
.bk-sources h2 { font-size: 19px; }
.bk-sources li { font-size: 15px !important; line-height: 1.5; color: var(--bk-muted); margin: 8px 0; overflow-wrap: anywhere; }
.bk-sources li:target { background: var(--bk-accent-soft); border-radius: 8px; }
.bk-back { text-decoration: none; margin-left: 4px; }
.bk-back a { text-decoration: none; margin: 0 2px; }
.bk-disclaimer { font-size: 14px !important; color: var(--bk-muted); margin-top: 18px; }

/* The doctor box */
.bk-doctor { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 20px; padding: 4px 22px 10px; margin: 32px 0; }
.bk-doctor h2 { margin-top: 18px; font-size: 20px; }

/* Colour chart (`::: colours`): swatches drawn as SVG fills; a keyline so black and pale show on any page */
.bk-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 24px 0 8px; }
@media (max-width: 520px) { .bk-colours { grid-template-columns: 1fr 1fr; } }
.bk-colour span { min-width: 0; overflow-wrap: anywhere; }
.bk-colour { min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 16px; padding: 10px 12px; text-decoration: none; color: var(--bk-ink) !important; font-size: 16px; font-weight: 600; line-height: 1.25; }
a.bk-colour:hover { border-color: var(--bk-accent); }
.bk-swatch { flex: none; overflow: visible; }
.bk-swatch circle { stroke: var(--bk-line); stroke-width: 1.5; }
.bk-colour-h { display: flex; align-items: center; gap: 10px; }
@media print { .bk-colours { grid-template-columns: repeat(4, 1fr); } .bk-swatch circle { stroke: #999; } }

/* App and related */
.bk-cta { background: var(--bk-accent-soft); border-radius: 22px; padding: 6px 24px 18px; margin: 40px 0; }
.bk-cta h2 { margin-top: 20px; }
.bk-button { display: inline-block; background: var(--bk-accent); color: var(--bk-card) !important; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; }
.bk-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bk-card { display: flex; flex-direction: column; gap: 6px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--bk-ink) !important; }
.bk-card small { color: var(--bk-muted); font-size: 14px; }
.bk-card strong { font-size: 18px; line-height: 1.3; }
.bk-card span { color: var(--bk-muted); font-size: 15px; line-height: 1.45; }
.bk-card:hover { border-color: var(--bk-accent); }
.bk-index { max-width: 900px; }
.bk-table { overflow-x: auto; margin: 18px 0; }
.bk-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.bk-table th, .bk-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bk-line); vertical-align: top; }

/* Motion icons. The resting state is the final frame (every step lit); the animation only adds
   the dark moments before each step lights. Plays once, under 5 seconds (WCAG 2.2.2), or follows
   the scroll where the browser can; nothing moves with Reduce Motion. */
.bk-motion { margin: 28px 0; padding: 22px 16px 14px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 22px; text-align: center; }
.bk-motion svg { width: 100%; max-height: 150px; overflow: visible; }
.bk-appear svg { max-height: 110px; }
.bk-motion figcaption { font-size: 15px; color: var(--bk-muted); margin-top: 10px; line-height: 1.45; }
.bk-tile { fill: var(--bk-accent-soft); stroke: var(--bk-accent); stroke-width: 2; }
.bk-icon { fill: var(--bk-accent); }
.bk-arrow { fill: none; stroke: var(--bk-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bk-label { font-family: inherit; font-size: 15px; font-weight: 600; fill: var(--bk-ink); text-anchor: middle; }

@media (prefers-reduced-motion: no-preference) {
  .bk-motion .bk-tile, .bk-motion .bk-icon, .bk-motion .bk-arrow, .bk-motion .bk-label {
    animation-duration: 4.2s; animation-delay: .5s; animation-timing-function: ease-out; animation-fill-mode: both; animation-iteration-count: 1;
  }
  .bk-s1 .bk-tile { animation-name: bk-tile-1; } .bk-s1 .bk-icon, .bk-s1 .bk-label { animation-name: bk-ink-1; }
  .bk-s2 .bk-tile { animation-name: bk-tile-2; } .bk-s2 .bk-icon, .bk-s2 .bk-label { animation-name: bk-ink-2; } .bk-a2 { animation-name: bk-arrow-2; }
  .bk-s3 .bk-tile { animation-name: bk-tile-3; } .bk-s3 .bk-icon, .bk-s3 .bk-label { animation-name: bk-ink-3; } .bk-a3 { animation-name: bk-arrow-3; }
  .bk-s4 .bk-tile { animation-name: bk-tile-4; } .bk-s4 .bk-icon, .bk-s4 .bk-label { animation-name: bk-ink-4; } .bk-a4 { animation-name: bk-arrow-4; }
  .bk-appear .bk-step { animation: bk-arrive 1.4s .4s ease-out both; transform-box: fill-box; transform-origin: center; }
  .bk-appear .bk-tile, .bk-appear .bk-icon { animation: none; }

  @supports (animation-timeline: view()) {
    .bk-motion .bk-tile, .bk-motion .bk-icon, .bk-motion .bk-arrow, .bk-motion .bk-label, .bk-appear .bk-step {
      animation-timeline: view(); animation-range: entry 40% cover 50%; animation-delay: 0s; animation-duration: auto;
    }
  }
}

@keyframes bk-tile-1 { 0%, 6% { fill: var(--bk-card); stroke: var(--bk-line); } 14%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-1 { 0%, 6% { fill: var(--bk-muted); opacity: .45; } 14%, 100% { fill-opacity: 1; opacity: 1; } }
@keyframes bk-tile-2 { 0%, 30% { fill: var(--bk-card); stroke: var(--bk-line); } 38%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-2 { 0%, 30% { fill: var(--bk-muted); opacity: .45; } 38%, 100% { opacity: 1; } }
@keyframes bk-arrow-2 { 0%, 22% { stroke-dasharray: 60; stroke-dashoffset: 60; stroke: var(--bk-line); } 32%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
@keyframes bk-tile-3 { 0%, 54% { fill: var(--bk-card); stroke: var(--bk-line); } 62%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-3 { 0%, 54% { fill: var(--bk-muted); opacity: .45; } 62%, 100% { opacity: 1; } }
@keyframes bk-arrow-3 { 0%, 46% { stroke-dasharray: 60; stroke-dashoffset: 60; stroke: var(--bk-line); } 56%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
@keyframes bk-tile-4 { 0%, 76% { fill: var(--bk-card); stroke: var(--bk-line); } 84%, 100% { fill: var(--bk-accent-soft); stroke: var(--bk-accent); } }
@keyframes bk-ink-4 { 0%, 76% { fill: var(--bk-muted); opacity: .45; } 84%, 100% { opacity: 1; } }
@keyframes bk-arrow-4 { 0%, 68% { stroke-dasharray: 60; stroke-dashoffset: 60; stroke: var(--bk-line); } 78%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
@keyframes bk-arrive { 0% { opacity: 0; transform: translateY(10px) scale(.85); } 60% { opacity: 1; transform: translateY(0) scale(1.04); } 100% { opacity: 1; transform: none; } }

@media print {
  .bk-motion, .bk-cta, .bk-related { display: none; }
  .bk-sources a::after { content: " (" attr(href) ")"; }
}
