/*
 * blurto.ai/blog (pages written by scripts/blog.mjs). Loaded after pages.css,
 * which gives the paper, the ink cards and the buttons. Light only.
 */
body.blog { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; font-size: 18px; line-height: 1.65; }
.blog-top, .blog-foot, .blog-home, .post { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
.blog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.blog-top nav { display: flex; align-items: center; gap: 18px; }
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lang-pick summary::after { content: "▾"; font-size: 12px; }
.lang-pick ul { position: absolute; inset-inline-end: 0; top: 100%; z-index: 10; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border: 3px solid var(--ink, #1A1A2E); border-radius: 14px; box-shadow: 6px 7px 0 rgba(26, 26, 46, .14); min-width: 170px; }
.lang-pick li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink, #1A1A2E); text-decoration: none; font-weight: 600; }
.lang-pick li a:hover, .lang-pick li a[aria-current="page"] { background: rgba(58, 175, 169, .14); }
.blog-top nav > a:not(.cta) { color: var(--ink-soft); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.blog-top .cta, .post-cta .cta { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; text-decoration: none; font-size: 15px; }
.cta.secondary { background: var(--card); }
.blog-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding-block: 40px 56px; margin-top: 56px; font-size: 15px; }
.blog-foot a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }

h1, h2, h3 { color: var(--ink); }
.swash {
  font-style: normal; color: var(--teal); white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M8 34 C 120 22, 260 16, 400 18 S 560 24, 592 20' fill='none' stroke='%23F08C7C' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 0 bottom -0.02em / 100% 0.22em;
}

/* the list */
.blog-home h1 { font-size: clamp(44px, 9vw, 72px); letter-spacing: -0.035em; margin: 24px 0 8px; }
.lede { font-size: 20px; color: var(--ink-soft); margin: 0 0 32px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.post-card { display: flex; gap: 20px; align-items: center; padding: 16px; text-decoration: none; color: var(--ink); transition: translate .12s, box-shadow .12s; }
.post-card:hover { translate: -1px -2px; box-shadow: 8px 10px 0 rgba(26, 26, 46, 0.18); }
.post-list li:nth-child(odd) .post-card { rotate: -0.4deg; }
.post-list li:nth-child(even) .post-card { rotate: 0.4deg; }
.post-card .thumb { flex: none; width: 220px; height: auto; aspect-ratio: 1200 / 630; border-radius: 12px; border: 3px solid var(--ink); }
.post-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-card-title { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.post-card-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.post-meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.post-meta a { color: var(--link); }

/* a post */
.post h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1.05; letter-spacing: -0.03em; margin: 10px 0 16px; }
.post-hero { display: block; width: 100%; height: auto; padding: 0; margin: 0 0 34px; rotate: -0.6deg; overflow: hidden; }
.post-by { margin: 0 0 22px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 24px; color: var(--teal-dark); }
.post-by:has(+ .post-langs) { margin-bottom: 6px; }
.post-langs { margin: 0 0 22px; font-size: 14px; color: var(--ink-soft, #4A5757); }
.post-langs a { color: inherit; text-decoration: underline; text-decoration-color: rgba(58, 175, 169, .5); text-underline-offset: 3px; }
.post-body h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 44px 0 12px; }
.post-body h3 { font-size: 22px; line-height: 1.2; margin: 30px 0 8px; }
.post-body p, .post-body li { color: #2C2C40; }
.post-body a { color: var(--link); text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-inline-start: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  margin: 28px 0; padding: 18px 22px; background: var(--card); rotate: -0.5deg;
  border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 rgba(26, 26, 46, 0.14);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.35;
}
.post-body blockquote p { margin: 0; }
.post-body h2#references { font-size: 22px; margin-top: 56px; padding-top: 24px; border-top: 3px dashed var(--line); }
.post-body ul.refs { list-style: none; padding: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.post-body ul.refs li { margin-bottom: 12px; padding-inline-start: 1.5em; text-indent: -1.5em; color: var(--ink-soft); }
.post-cta { display: flex; gap: 18px; align-items: center; margin: 48px 0 0; padding: 22px; rotate: -0.6deg; }
.post-cta .bird { flex: none; width: 92px; height: 92px; object-fit: contain; }
.post-cta p { margin: 0 0 8px; }
.post-cta-title { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 24px; }
.post-cta-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px !important; }
@media (max-width: 560px) {
  .post-card { flex-direction: column; align-items: stretch; }
  .post-card .thumb { width: 100%; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .blog-top nav > a:not(.cta) { display: none; }
}

/* who wrote it (blurto-jbh): a quiet note under the text */
.author-box { margin: 48px 0 0; padding: 18px 20px; border: 3px dashed var(--line); border-radius: 16px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.author-box p { margin: 0; }
.author-title { font-family: 'Caveat', cursive; font-weight: 700; font-size: 26px; color: var(--teal-dark); margin-bottom: 4px !important; }
.author-box a { color: var(--link); text-underline-offset: 2px; }

/* more posts in the same language */
.related { margin: 56px 0 0; }
.related h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
.related .post-card .thumb { width: 160px; }
@media (max-width: 560px) { .related .post-card .thumb { width: 100%; } }

/* analytics consent (src/blog/main.ts), same bar as the home page's */
.consent-settings-link { background: none; border: none; padding: 0; min-height: 40px; cursor: pointer; font: inherit; color: inherit; }
.consent-settings-link[hidden] { display: none; }
.consent-banner {
  position: fixed; z-index: 90;
  inset-inline: 16px;
  inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 600px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 16px;
  background: var(--card); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 7px 0 rgba(26, 26, 46, 0.18);
  animation: consent-in .25s ease-out;
}
.consent-banner:focus { outline: none; }
.consent-text { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.45; }
.consent-text a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-soft); }
.consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.consent-button {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 96px; padding: 8px 16px;
  background: transparent; color: var(--ink);
  font: 800 15px/1 'Bricolage Grotesque', system-ui, sans-serif;
  border: 3px solid var(--ink); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
}
.consent-button:hover { background: var(--paper); }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .consent-banner { inset-inline: 12px; inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .consent-actions { flex: 1 1 100%; }
}

/* the direct answer under the title (front matter `answer:`, blurto-jbh): the first thing a reader or an answer engine sees */
.post-answer { margin: 0 0 28px; padding: 16px 20px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 6px 0 rgba(26, 26, 46, 0.14); font-size: 17px; line-height: 1.55; }
.post-answer p { margin: 0; }
.post-answer strong { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; color: var(--teal-dark); margin-inline-end: 4px; }
