/* The blog (/blog/ and its articles, built by app/src/Services/Blog.php). Same colors and fonts as pricing.html.
   Sizes in rem so the reader's own text size is respected. When this file changes, bump Blog::CSS_VERSION. */
:root{--bg:#F4EFE6;--card:#FFFDF8;--fg:#1B1F1A;--sub:#5B6157;--brand:#1F5C45;--brand-fg:#fff;--line:#DDD3C2;--tint:#E3EDE6;
  --cta-bg:#1F5C45;--cta-fg:#F6F1E7;--cta-sub:#CFE0D5;--cta-line:#1F5C45}
:root[data-theme="dark"]{--bg:#1C1F1B;--card:#252923;--fg:#EDE8DE;--sub:#B4B0A4;--brand:#8CC9A6;--brand-fg:#10241A;--line:#3E443B;--tint:#24352B;
  --cta-bg:#24352B;--cta-fg:#EDE8DE;--cta-sub:#B9C9BE;--cta-line:#3F5A4A}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:1rem/1.6 Figtree,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
main{max-width:54rem;margin:0 auto;padding:1.25rem 1rem 4rem}
a{color:var(--brand)}
img{max-width:100%;height:auto}
h1,h2,h3{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;text-wrap:balance}
a:focus-visible,.btn:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:.375rem}

/* top: the blog's name on the left, the site's links on the right */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.25rem 1rem;margin-bottom:clamp(1.75rem,1rem + 3vw,3.25rem)}
/* the links keep to the right edge, also on their own line under the name (narrow screens) */
.top .site-page-actions{margin:0 0 0 auto}
.brand{display:inline-flex;align-items:center;gap:.625rem;min-height:2.75rem;color:var(--fg);text-decoration:none;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:800;font-size:1.125rem;letter-spacing:-.02em}
.brand img{display:block;width:2.25rem;height:2.25rem}
.brand b{color:var(--brand);font-weight:800}

/* shared small pieces */
.eyebrow,.cat{margin:0 0 .5rem;font-size:.8125rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--brand)}
.meta,.when{margin:0;font-size:.9375rem;color:var(--sub);font-variant-numeric:tabular-nums}
.soon{display:inline-block;margin-left:.375rem;padding:.0625rem .5rem;border:1px solid currentColor;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.preview-note{margin:0 0 1.5rem;padding:.625rem .875rem;border:1.5px dashed var(--brand);border-radius:.75rem;background:var(--tint);font-size:.9375rem;font-weight:600}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:3rem;padding:0 1.375rem;border:2px solid var(--brand);border-radius:999px;background:transparent;color:var(--brand);font-weight:700;text-decoration:none;transition:background-color .15s,filter .15s}
.btn:hover{background:var(--tint)}
.btn.primary{background:var(--brand);color:var(--brand-fg)}
.btn.primary:hover{background:var(--brand);filter:brightness(1.08)}

/* the list page */
.hero{max-width:44rem;margin:0 0 2.5rem}
.hero h1{margin:0 0 .875rem;font-size:clamp(2rem,1.3rem + 3vw,3.25rem);line-height:1.08}
.hero .lead{margin:0 0 1.25rem;font-size:1.1875rem;color:var(--sub);text-wrap:pretty}
.empty{color:var(--sub)}
.feature{padding:clamp(1.5rem,1rem + 2.5vw,2.75rem);border:1px solid var(--line);border-radius:1.375rem;background:var(--card)}
.feature h2{margin:0 0 .75rem;font-size:clamp(1.625rem,1.2rem + 1.9vw,2.5rem);line-height:1.12}
.feature h2 a,.list h3 a,.more h3 a{color:inherit;text-decoration:none}
.feature h2 a:hover,.list h3 a:hover,.more h3 a:hover{color:var(--brand);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.16em}
.feature .dek{max-width:40rem;margin:0 0 1rem;font-size:1.125rem;color:var(--sub);text-wrap:pretty}
.feature .meta{margin-bottom:1.5rem}
.feature p:last-child{margin:0}
.list{margin-top:3rem}
.list>h2{margin:0 0 .75rem;font-size:1.5rem}
.list ul,.more ul{margin:0;padding:0;list-style:none}
.list li{display:grid;grid-template-columns:11.5rem minmax(0,1fr);gap:.25rem 1.5rem;padding:1.5rem 0;border-top:1px solid var(--line)}
/* beside a title the date and the reading time sit on a line each */
.list .when{padding-top:.125rem;line-height:1.5}
.list .when time,.list .when .mins{display:block}
.list .when .sep{display:none}
.list .when .soon{margin:.375rem 0 0}
.list h3{margin:0 0 .375rem;font-size:1.375rem;line-height:1.2}
.list li div p:last-child{margin:0;color:var(--sub);text-wrap:pretty}

/* an article */
.post{max-width:44rem;margin:0 auto}
.crumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;font-size:.875rem;font-weight:600;color:var(--sub)}
.crumbs a{font-weight:700;text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.post-head{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line)}
.post-head h1{margin:0 0 1rem;font-size:clamp(2rem,1.25rem + 3.2vw,3.25rem);line-height:1.08}
.post-head .dek{margin:0 0 1.125rem;font-size:1.25rem;line-height:1.5;color:var(--sub);text-wrap:pretty}

.prose{font-size:1.125rem;line-height:1.7;overflow-wrap:break-word}
.prose::after{content:"";display:block;clear:both}
.prose p{margin:0 0 1.25em;text-wrap:pretty}
.prose h2{margin:2.1em 0 .55em;font-size:1.625rem;line-height:1.2}
.prose h3{margin:1.8em 0 .5em;font-size:1.25rem;line-height:1.25}
.prose ul,.prose ol{margin:0 0 1.25em;padding-left:1.375em}
.prose li{margin:0 0 .45em;text-wrap:pretty}
.prose li::marker{color:var(--brand);font-weight:700}
.prose a{text-decoration-thickness:.07em;text-underline-offset:.17em}
.prose a:hover{text-decoration-thickness:.12em}
.prose strong{font-weight:700}
/* a worked example or a short checklist, set apart from the running text */
.prose .note{clear:both;margin:1.75em 0;padding:1.125rem 1.25rem;border-radius:1rem;background:var(--tint);font-size:1.0625rem;line-height:1.6}
.prose .note h3{margin:0 0 .375rem;font-family:inherit;font-size:1.0625rem;font-weight:700;letter-spacing:0}
.prose .note>:last-child{margin-bottom:0}
.table-wrap{margin:0 0 1.5em;overflow-x:auto}
.prose table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.45;font-variant-numeric:tabular-nums}
.prose th,.prose td{padding:.625rem .75rem .625rem 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.prose th{font-size:.875rem;font-weight:700;color:var(--sub)}
.prose .n{padding-right:0;text-align:right;white-space:nowrap}
.prose tfoot td{border-bottom:0;font-weight:700}
/* a screenshot of the app: beside the text on wide screens (reaching into the margin), centered on phones */
.shot{float:right;width:16.25rem;margin:.375rem -5rem 1.25rem 2rem}
.shot img{display:block;width:100%;border:1px solid var(--line);border-radius:1.25rem}
.shot figcaption{margin-top:.5rem;font-size:.875rem;line-height:1.45;color:var(--sub);text-wrap:pretty}

/* the product box under an article and on the list */
.product{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem 2rem;align-items:center;margin-top:3.5rem;padding:clamp(1.375rem,1rem + 1.8vw,2.25rem);border:1px solid var(--cta-line);border-radius:1.375rem;background:var(--cta-bg);color:var(--cta-fg)}
.product h2{margin:0 0 .375rem;font-size:1.5rem;line-height:1.2}
.product p{margin:0;color:var(--cta-sub);text-wrap:pretty}
.product .row{display:flex;flex-wrap:wrap;gap:.75rem}
.product .btn{border-color:var(--cta-fg);color:var(--cta-fg)}
.product .btn:hover{background:rgba(255,255,255,.12)}
.product .btn.primary{background:var(--cta-fg);color:var(--cta-bg)}
.product .btn.primary:hover{background:var(--cta-fg);filter:brightness(1.06)}
.product .btn:focus-visible{outline-color:var(--cta-fg)}
.post~.product,.post~.more{max-width:44rem;margin-inline:auto}

.more{margin-top:3rem}
.more>h2{margin:0 0 .25rem;font-size:1.375rem}
.more ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(12.5rem,1fr));gap:0 1.5rem}
.more li{padding:1.125rem 0;border-top:1px solid var(--line)}
.more ul{margin-top:.875rem}
.more .cat{margin-bottom:.25rem;font-size:.75rem}
.more h3{margin:0 0 .375rem;font-size:1.125rem;line-height:1.25}

.foot{margin-top:3.5rem;text-align:center;font-size:.875rem;color:var(--sub)}
.foot .links{margin:0}
.foot .links a{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .5rem}
.foot .mark{max-width:40rem;margin:.75rem auto 0;font-size:.8125rem;line-height:1.5;text-wrap:pretty}

@media (max-width:62rem){
  .shot{margin-right:0}
}
@media (max-width:44rem){
  .list li{grid-template-columns:1fr}
  .list .when time,.list .when .mins{display:inline}
  .list .when .sep{display:inline}
  .list .when .soon{margin:0 0 0 .375rem}
  .product{grid-template-columns:1fr}
}
@media (max-width:36rem){
  .prose{font-size:1.0625rem}
  .shot{float:none;width:auto;max-width:17rem;margin:1.75rem auto}
  .shot figcaption{text-align:center}
}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}
@media print{
  .top .site-page-actions,.product,.more,.foot .links{display:none}
  body{background:#fff;color:#000}
  .shot{margin-right:0}
}
