/* Flow: the blog (from the Flow site's blog/blog.css), then the post editor's blocks.
   Generated by source/flow/wp/build_theme.py. */
/* ================================================================ the blog: one list, five categories, plain articles
   Same room as the site: Ink ground with fine grain, white type, mint for actions. The blog's head is a
   dark panel with the symbol cropped large off its edge, beside the headline (brand guidelines: symbol
   crop, soft teal glow, fine grain). Each category keeps one colour, shown as the dot on its button.
   Article pictures are empty slots until real images arrive. */
.c-mint { --c: var(--mint); } .c-sea { --c: var(--sea); } .c-teal { --c: var(--teal); } .c-deep { --c: var(--deep); } .c-fog { --c: var(--fog); }

/* ---------------------------------------------------------------- blog and category heads */
.bhero { padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 8px); }
.bhero__panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 22px 170px; border-radius: var(--r); background: var(--panel) var(--grain);
}
.bhero__panel::before {
  content: ""; position: absolute; z-index: -2; right: -55%; bottom: -70%; width: 150%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(56 167 155 / 0.26), transparent); pointer-events: none; /* taste-skill-ignore: brand guidelines: a soft teal glow on dark */
}
.bhero__crop { position: absolute; z-index: -1; right: -16px; bottom: -190px; width: 150px; height: auto; aspect-ratio: 73.5 / 172.5; }
.bhero__copy { max-width: 900px; }
.bhero h1 { font-size: var(--s-xl); line-height: 1.02; letter-spacing: -0.035em; }
.bhero__lead { margin-top: 14px; max-width: 40ch; color: var(--fog); }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cats a {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--panel-2); border-radius: 999px; color: var(--white);
  font-size: var(--s-small); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.cats a[class*="c-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cats a[aria-current] { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.cats a[aria-current]::before { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cats a:not([aria-current]):hover { border-color: var(--fog); } }

/* ---------------------------------------------------------------- the list */
.posts { padding-block: 48px var(--sect); }
.posts__h { margin-bottom: 24px; font-size: var(--s-m); letter-spacing: -0.02em; }
.empty { margin-bottom: 48px; max-width: 46ch; }
.empty b { display: block; margin-bottom: 4px; font-size: var(--s-m); line-height: 1.25; letter-spacing: -0.02em; color: var(--white); }
.empty p { color: var(--fog); }
.empty p + p { margin-top: 8px; }

.cards { display: grid; gap: 44px; }
.card a { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.card__art { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card__meta { font-family: var(--f-mono); font-size: 13px; color: var(--fog); } /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
.card__title { font-size: var(--s-m); line-height: 1.22; letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .card a:hover .card__title { text-decoration-color: var(--mint); }
  .card a:hover .card__art img { transform: scale(1.035); }
}
.card a:focus-visible { outline-offset: 6px; border-radius: calc(var(--r) + 4px); }

/* ---------------------------------------------------------------- an article */
.post__head { padding-top: calc(var(--head-h) + env(safe-area-inset-top, 0px) + 40px); }
.post__head h1 { max-width: 920px; font-size: var(--s-xl); line-height: 1.04; letter-spacing: -0.035em; }
.post__lead { margin-top: 20px; max-width: 40em; font-size: var(--s-m); line-height: 1.45; letter-spacing: -0.01em; color: var(--mist); }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--fog); } /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
.post__meta a { color: var(--white); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
.post__meta span[aria-hidden] { color: var(--slate); }
.post__art { display: block; margin-top: 36px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.post__art img { width: 100%; height: 100%; object-fit: cover; }
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 44px var(--sect); }
.toc { display: none; }

.post__main { min-width: 0; max-width: 720px; }
.short { padding: 22px 22px 24px; border-radius: var(--r); background: var(--panel); color: var(--mist); line-height: 1.6; }
.short h2 { font-size: var(--s-m); letter-spacing: -0.02em; color: var(--white); }
.short ul { margin-top: 14px; }
.short + .prose { margin-top: 52px; }

.prose { color: var(--mist); line-height: 1.7; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; color: var(--white); scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 16px; }
:is(.prose, .short) strong { color: var(--white); font-weight: 700; }
.prose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; transition: text-decoration-thickness 160ms ease; }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-thickness: 3px; } }
:is(.prose, .short) li { position: relative; padding-left: 30px; }
:is(.prose, .short) li + li { margin-top: 12px; }
:is(.prose, .short) ul > li::before { content: ""; position: absolute; left: 6px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; padding-left: 40px; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.12em; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); color: var(--mint);
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; line-height: 1; /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
}
.prose ul.checks > li::before { left: 3px; top: 0.5em; width: 13px; height: 7px; border-radius: 0; background: none; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg); }
.short ul > li::before { top: 0.62em; }

.tbl { overflow-x: auto; margin-inline: calc(-1 * var(--gut)) calc(-1 * var(--gut-r)); padding-inline: var(--gut) var(--gut-r); }
.tbl table { width: 100%; border-collapse: collapse; font-size: var(--s-small); line-height: 1.45; }
.tbl table:has(th:nth-child(4)) { min-width: 620px; }
.tbl th, .tbl td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--panel-2); text-align: left; vertical-align: top; }
.tbl thead th { padding-top: 0; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); } /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
.tbl tbody th { color: var(--white); font-weight: 700; }
.tbl tbody td { color: var(--mist); }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }

.post__note { font-size: var(--s-small); color: var(--fog); }
.sources { margin-top: 64px; }
.sources h2 { margin: 0; font-size: var(--s-m); }
.sources ol { margin-top: 16px; }
.sources ol > li { font-size: var(--s-small); line-height: 1.55; color: var(--fog); }
.sources ol > li::before { width: 22px; height: 22px; font-size: 12px; top: 0; }
.sources ol > li + li { margin-top: 10px; }

.related { padding-block: var(--sect); }

/* ---------------------------------------------------------------- tablet */
@media (min-width: 700px) {
  .bhero__panel { min-height: 300px; padding: 40px 40px 40px; }
  .bhero__panel::before { right: -30%; bottom: auto; top: 50%; width: 90%; transform: translateY(-50%); }
  .bhero__crop { right: -4%; bottom: auto; top: 50%; width: 34%; transform: translateY(-50%); }
  .bhero__copy { max-width: 60%; }
  .posts { padding-top: 56px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 32px; }
  .post__art { aspect-ratio: 1200 / 560; }
  .short { padding: 28px 32px 30px; }
  .prose h2 { font-size: 32px; }
  .tbl { margin-inline: 0; padding-inline: 0; }
}

/* ---------------------------------------------------------------- desktop: the contents beside the text */
@media (min-width: 1080px) {
  .bhero { padding-top: calc(var(--head-h) + 8px); }
  .bhero__panel { min-height: 380px; padding: 56px; }
  .bhero__crop { right: -5%; width: 38%; }
  .bhero__copy { max-width: 58%; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px; }
  .post__head { padding-top: calc(var(--head-h) + 56px); }
  .post__art { margin-top: 48px; aspect-ratio: 1200 / 480; }
  .post__grid { grid-template-columns: 220px minmax(0, 720px); gap: 0 clamp(56px, 7vw, 120px); padding-top: 64px; }
  .toc { display: block; position: sticky; top: 120px; align-self: start; }
  .toc h2 { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); } /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
  .toc ol { margin-top: 12px; }
  .toc a { position: relative; display: block; padding: 7px 0 7px 16px; font-size: var(--s-small); line-height: 1.4; color: var(--fog); text-decoration: none; transition: color 180ms ease; }
  .toc a[aria-current] { color: var(--white); }
  .toc a[aria-current]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--mint); }
  .toc a:hover { color: var(--white); }
  .related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- the call to action after an article */
.bcta .book__grid { display: flex; flex-direction: column; gap: 28px; }
.bcta .call { margin-top: 0; }
.bcta .call .btn { margin-top: 0; }
@media (min-width: 700px) {
  .bcta .book__grid { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
}

/* ---------------------------------------------------------------- wide tables stack on phones: one block per row */
@media (max-width: 699px) {
  .tbl--stack { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .tbl--stack table, .tbl--stack tbody, .tbl--stack tr, .tbl--stack th, .tbl--stack td { display: block; }
  .tbl--stack table { min-width: 0 !important; }
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--stack tr { padding: 16px 18px; border-radius: 14px; background: var(--panel); }
  .tbl--stack tr + tr { margin-top: 10px; }
  .tbl--stack th, .tbl--stack td { padding: 0; border: 0; }
  .tbl--stack tbody th { margin-bottom: 8px; font-size: var(--s-body); }
  .tbl--stack td { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding-block: 4px; }
  .tbl--stack td::before { content: attr(data-label); padding-top: 2px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); } /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
}

/* ================================================================ WordPress: what the post editor writes
   Articles written in the dashboard come out as editor blocks: pictures, sub-headings, quotes, tables.
   They take the article's type and colours. */
.prose h3 { margin-top: 36px; font-size: var(--s-m); line-height: 1.25; letter-spacing: -0.02em; color: var(--white); }
.prose h2 + h3 { margin-top: 20px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); }
.prose figure { margin-inline: 0; margin-bottom: 0; }
.prose :is(figure, .wp-block-image) + * { margin-top: 28px; }
.prose :is(figcaption, .wp-element-caption) { margin-top: 10px; font-size: var(--s-small); color: var(--fog); }
.prose blockquote { margin-inline: 0; margin-bottom: 0; padding-left: 22px; border-left: 3px solid var(--mint); color: var(--white); font-size: var(--s-m); line-height: 1.45; }
.prose blockquote cite { display: block; margin-top: 10px; font-size: var(--s-small); font-style: normal; color: var(--fog); }
.prose hr { border: 0; border-top: 1px solid var(--panel-2); }
.prose :is(iframe, video, embed) { max-width: 100%; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: var(--s-small); line-height: 1.45; }
.prose .wp-block-table thead { border: 0; }
.prose .wp-block-table :is(th, td) { padding: 14px 18px 14px 0; border: 0; border-bottom: 1px solid var(--panel-2); text-align: left; vertical-align: top; }
.prose .wp-block-table thead th { padding-top: 0; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); } /* taste-skill-ignore: brand guidelines: Geist Mono sets labels and data */
.prose .wp-block-table tbody td { color: var(--mist); }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--mint); color: var(--ink); font-weight: 700; text-decoration: none; }
.bhero__lead a { color: var(--white); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }

/* ---------------------------------------------------------------- more than one page of articles */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--panel-2); border-radius: 999px; color: var(--white);
  font-size: var(--s-small); font-weight: 600; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.pagination .page-numbers.dots { border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .pagination a.page-numbers:hover { border-color: var(--fog); } }
