/* Record blog: the list of posts and the post pages. Uses the colors, type and shapes of site.css and pages.css
   (warm paper, Instrument Sans, small calm headings, cards a little darker than the page, 6px corners).
   The parts a post can use in its text are at the end: figures, callouts, number cards, flows, step cards,
   bars, wide tables and the placeholder for a missing screenshot. */

/* --- The list at /blog ------------------------------------------------- */
.blog-list { padding-top: clamp(16px, 3vw, 32px); }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.post-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r); background: var(--card); color: inherit; text-decoration: none; overflow: hidden; transition: background-color .15s; }
.post-card a:hover { background: var(--card-2); }
.post-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--picture); }
.post-card-text { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.post-card-kind { font-size: 13px; color: var(--mut); }
.post-card h2, .post-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.008em; text-wrap: balance; }
.post-card a:hover h2, .post-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card-desc { color: var(--mut); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.post-card time { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--mut); }
.post-cards.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 18px; }
.post-cards.small .post-card-desc { display: none; }

/* --- One post ------------------------------------------------------------- */
.post-head { padding: clamp(36px, 5vw, 64px) 0 0; }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.024em; text-wrap: balance; }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 1.4; color: var(--mut); }
.byline img { flex: none; border-radius: 22.5%; }
.byline a { color: var(--ink); text-decoration: none; }
.byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-banner-wrap { width: min(1000px, 100% - 40px); margin-top: clamp(24px, 3.5vw, 40px); }
.post-banner { border-radius: var(--r); overflow: hidden; background: var(--picture); aspect-ratio: 1200 / 630; }
.post-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding-top: clamp(28px, 4vw, 44px); }
.post-body .answer { font-size: 19px; line-height: 1.5; }
.disclosure { font-size: 14.5px; color: var(--mut); }
.post-toc { font-size: 15.5px; }
.post-faq { margin-top: 20px; }
.post-foot { margin-top: 28px; padding-bottom: clamp(48px, 7vw, 80px); }
.post-related { padding: clamp(40px, 6vw, 64px) 0 0; border-top: 1px solid var(--line); }
.post-related h2 { font-size: var(--t-big); line-height: 1.28; letter-spacing: -.01em; }
.post-body h2 { scroll-margin-top: 72px; }
.post-body h2 + .fig, .post-body h3 + .fig { margin-top: 1em; }

/* A part that is wider than the reading column (tables with many columns, big pictures). */
.prose .breakout { width: min(1000px, 100vw - 40px); margin-inline: calc(50% - min(500px, 50vw - 20px)); }

/* --- Parts a post can use -----------------------------------------------------
   One look for all of them: a light card (--surface) with a thin line, 10px corners, small gray labels,
   ink for the facts, and ink (never a bright color) for "our app". */

/* A picture with a caption. .fig.shot: a screen of the app on one of the soft painted pictures. */
.fig { margin-top: 1.6em; }
.prose > .fig + * { margin-top: 1.6em; }
.fig picture, .fig > img, .fig > video, .fig-box { display: block; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--card); }
.fig img, .fig video { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--mut); text-wrap: pretty; }
.fig figcaption strong { color: var(--ink); font-weight: 500; }
.fig-box { padding: clamp(16px, 3vw, 28px); }
.fig.film-fig video { aspect-ratio: 16 / 9; background: #14130f; }

/* A screen that is still missing. It stays visible in the page so it is not forgotten. */
.placeholder { display: grid; place-items: center; min-height: 220px; padding: 24px; border: 1.5px dashed #c9c5b9; border-radius: var(--r); background: repeating-linear-gradient(-45deg, var(--card), var(--card) 12px, var(--surface) 12px, var(--surface) 24px); text-align: center; font: 500 14px/1.45 var(--mono); color: var(--mut); }

/* A box that stands out from the text: a tip, a warning, a short verdict. */
.callout { padding: 16px 20px; border-radius: 10px; background: var(--card); font-size: 16px; line-height: 1.5; color: var(--ink); }
.callout > * + * { margin-top: .6em; }
.callout-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--mut); }
.callout.tip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.callout.warn { background: #f5ecd3; box-shadow: inset 0 0 0 1px #e3d3a0; color: #574300; }
.callout.warn .callout-label { color: #7a5f00; }
.callout ul, .callout ol { margin-top: .4em; }

/* Small labels. .tag: "Our app" next to Record. .chip: a short fact on a card ("Free", "Built in"). */
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 500; line-height: 1.45; letter-spacing: .01em; vertical-align: 2px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; list-style: none !important; }
.chip, .chips > li { display: inline-flex; align-items: center; margin: 0 !important; padding: 3px 10px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; line-height: 1.35; color: var(--ink); white-space: nowrap; }

/* Round marks for yes / no / partly, in tables (td.yes, td.no, td.part) and in text (span.mark.yes). */
.mark, .post-body td.yes > .v::before, .post-body td.no > .v::before, .post-body td.part > .v::before { content: ""; display: inline-block; flex: none; width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; background: center / 16px no-repeat; }
.mark.yes, .post-body td.yes > .v::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%232f7a41'/><path d='M4.7 8.2l2.1 2.1 4.5-4.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.mark.no, .post-body td.no > .v::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%23e3e0d6'/><path d='M5 8h6' stroke='%23858176' stroke-width='1.8' stroke-linecap='round'/></svg>"); }
.mark.part, .post-body td.part > .v::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7.1' fill='none' stroke='%23b07f1c' stroke-width='1.8'/><path d='M8 .9a7.1 7.1 0 0 1 0 14.2z' fill='%23b07f1c'/></svg>"); }
.prose.post-body td.yes::before, .prose.post-body td.no::before, .prose.post-body td.part::before { content: none; }

/* --- Tables -------------------------------------------------------------------
   A light card with a gray header row. tr.us: our app's row, with an ink line on its left.
   .compare-many: many columns; the first column stays put while the rest scrolls sideways.
   On a phone every row becomes a card (the column names come from data-label, added by src/blog.mjs). */
.post-body .table-wrap { margin-top: 1.4em; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.post-body .table-wrap table { font-size: 15px; line-height: 1.45; }
.post-body .table-wrap th, .post-body .table-wrap td { padding: 14px 16px; }
.post-body .table-wrap thead th { padding-top: 13px; padding-bottom: 12px; background: var(--card); font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--mut); white-space: normal; }
.post-body .table-wrap thead th:first-child { border-top-left-radius: 10px; }
.post-body .table-wrap thead th:last-child { border-top-right-radius: 10px; }
.post-body .table-wrap tbody th { width: auto; font-weight: 500; color: var(--ink); }
.post-body .table-wrap tbody th small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--mut); }
.post-body .table-wrap td { color: #3a3832; }
.post-body .table-wrap tr.us > * { background: #f3efe6; }
.post-body .table-wrap tr.us > th:first-child { box-shadow: inset 3px 0 0 var(--ink); }
.compare-many table { min-width: 760px; }
.compare-many tbody th { min-width: 140px; }
.compare-many th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare-many thead th:first-child { background: var(--card); }
.compare-many td { white-space: normal; }

/* A small key under a table: what the marks mean. */
.legend { font-size: 13.5px; color: var(--mut); }
.legend .mark { width: 13px; height: 13px; margin: 0 4px 0 0; background-size: 13px; vertical-align: -2px; }

@media (max-width: 700px) {
  .post-body .table-wrap, .post-body .compare-many { width: auto; margin-inline: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .post-body .table-wrap table { display: block; min-width: 0; }
  .post-body .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .post-body .table-wrap tbody { display: grid; gap: 10px; }
  .post-body .table-wrap tr { display: block; padding: 14px 16px 6px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .post-body .table-wrap tr.us { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .post-body .table-wrap tr.us > * { background: none; }
  .post-body .table-wrap tr.us > th:first-child { box-shadow: none; }
  .post-body .table-wrap tbody th { display: block; position: static; min-width: 0; padding: 0 0 10px; border: 0; background: none; font-size: 16.5px; }
  .post-body .table-wrap td { display: grid; grid-template-columns: minmax(92px, 36%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
  .prose.post-body .table-wrap td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--mut); }
  .post-body .table-wrap tbody tr:first-child td { border-top: 1px solid var(--line); }
}

/* --- Big numbers in a row: "25 videos", "5 minutes", "720p". */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--gap); margin-top: 1.4em !important; padding: 0 !important; list-style: none !important; }
.stat-row li { margin: 0 !important; padding: 18px 18px 16px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat-row b { display: block; font-size: clamp(34px, 4.4vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-row span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--mut); }

/* --- Numbered steps on a line: "Stop → Upload → Link copied". li.done: the result, with a check.
   On a phone the line turns downwards. */
.track { counter-reset: track; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; margin-top: 1.4em !important; padding: clamp(16px, 3vw, 22px) !important; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); list-style: none !important; }
.track li { counter-increment: track; position: relative; margin: 0 !important; padding-top: 44px; font-size: 15px; line-height: 1.4; }
.track li::before { content: counter(track); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 600; color: var(--ink); }
.track li::after { content: ""; position: absolute; left: 40px; right: -8px; top: 15.5px; height: 1.5px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done::before { content: ""; background: var(--ink) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.3l2.6 2.6L12 5.4' fill='none' stroke='%23f6f5f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px no-repeat; box-shadow: none; }
.track li.stop::before { content: ""; background: #f3e3dc url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 5l6 6M11 5l-6 6' stroke='%23b6391a' stroke-width='2' stroke-linecap='round'/></svg>") center / 16px no-repeat; box-shadow: inset 0 0 0 1.5px var(--accent); }
.track b { display: block; font-weight: 500; color: var(--ink); }
.track span { display: block; margin-top: 3px; font-size: 14px; color: var(--mut); }
@media (max-width: 560px) {
  .track { grid-auto-flow: row; gap: 18px; }
  .track li { min-height: 32px; padding: 5px 0 0 46px; }
  .track li::after { left: 15.25px; right: auto; top: 38px; bottom: -14px; width: 1.5px; height: auto; }
}

/* --- Bars that compare amounts. The label and the amount sit above each bar. li.ours: our app, in ink. */
.bars { display: grid; gap: 16px; margin-top: 1.4em !important; padding: clamp(16px, 3vw, 22px) !important; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); list-style: none !important; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; margin: 0 !important; font-size: 15px; line-height: 1.35; color: var(--ink); }
.bars .bar-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.bars .bar { grid-column: 1 / -1; height: 12px; border-radius: 999px; background: var(--card); overflow: hidden; }
.bars .bar i { display: block; height: 100%; min-width: 8px; border-radius: 999px; background: var(--picture); }
.bars li.ours .bar i { background: var(--ink); }

/* --- A boxed visual made for one post (.visual), and its key underneath (.visual-key). */
.visual { margin-top: 1.4em !important; padding: clamp(16px, 3vw, 24px); border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.visual-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--mut); }
.visual-key > span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 733px) {
  .post-body .answer { font-size: 17.5px; }
}

/* --- Numbered steps as cards, each with an optional small picture. */
.step-cards { counter-reset: step; display: grid; gap: 10px; margin-top: 1.2em !important; padding: 0 !important; list-style: none !important; }
.step-cards > li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; margin: 0 !important; padding: 16px 18px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step-cards > li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; }
.step-cards h3, .step-cards h4 { margin: 4px 0 0 !important; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.step-cards p { margin: 0 !important; font-size: 16px; color: #3a3832; }
.step-cards .fig { grid-column: 2; margin-top: 12px; }
@media (max-width: 733px) {
  .step-cards > li { grid-template-columns: 26px minmax(0, 1fr); padding: 14px; }
  .step-cards > li::before { width: 26px; height: 26px; font-size: 13px; }
}

/* --- A ruled list to pick from: when it fits, what to use, the price, and how much setup it takes.
   Each row can be a link down to its part of the post (a.picker-row) or plain (div.picker-row) when it holds
   links of its own. .picker.no-setup: without the setup column. li.us: our app. */
.picker { margin-top: 1.4em !important; padding: 0 !important; border-top: 1.5px solid var(--ink); list-style: none !important; }
.picker > li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.picker-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2.1fr) 108px 150px 16px; gap: 20px; align-items: center; padding: 18px 10px; color: inherit; text-decoration: none; transition: background-color .15s; }
.picker.no-setup .picker-row { grid-template-columns: minmax(140px, 1fr) minmax(0, 2.1fr) 150px; }
.prose .picker a.picker-row { color: inherit; text-decoration: none; }
.prose .picker a.picker-row:hover { background: var(--card); }
.picker > li.picker-head { border-bottom: 1px solid var(--line); }
.picker-head .picker-row { padding-top: 10px; padding-bottom: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--mut); }
.picker-when { font-size: 14px; line-height: 1.4; color: var(--mut); }
.picker-what b { display: block; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.picker-what b .tag { margin-left: 8px; vertical-align: 2px; }
.picker-what > span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: #3a3832; }
.picker-cost { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; }
.picker-setup { display: grid; gap: 7px; font-size: 13px; line-height: 1.3; color: var(--mut); }
.picker-setup .meter { display: flex; gap: 3px; }
.picker-setup .meter i { width: 18px; height: 5px; border-radius: 3px; background: var(--card-2); }
.picker-setup[data-level="1"] .meter i:nth-child(-n+1), .picker-setup[data-level="2"] .meter i:nth-child(-n+2), .picker-setup[data-level="3"] .meter i { background: var(--ink); }
.picker-go { width: 16px; height: 16px; color: var(--mut); transition: transform .15s, color .15s; }
a.picker-row:hover .picker-go { transform: translateX(3px); color: var(--ink); }
.picker > li.us .picker-row { background: #f3efe6; }
.prose .picker > li.us a.picker-row:hover { background: #ece6da; }
@media (max-width: 700px) {
  .picker-head { display: none; }
  .picker-row, .picker.no-setup .picker-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 4px; }
  .picker > li.us .picker-row { padding-inline: 12px; }
  .picker-when, .picker-what { grid-column: 1 / -1; }
  .picker-setup { display: flex; align-items: center; gap: 8px; justify-self: end; }
  .picker-go { display: none; }
}

/* --- A grid that compares ways or apps, one column each, with our app's column outlined in ink.
   Cells hold a round mark (td.yes / .no / .part, with the word for screen readers) and a short note (small),
   or a few words (td.txt). On a phone the grid is replaced by one card per column (.matrix-cards). */
.matrix-wrap { margin-top: 1.4em !important; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14.5px; line-height: 1.4; }
.prose .matrix th, .prose .matrix td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.prose .matrix thead th { padding: 14px 10px; border-top: 0; vertical-align: bottom; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); white-space: normal; }
.matrix thead th small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--mut); }
.prose .matrix tbody th { width: 21%; text-align: left; font-weight: 500; color: var(--ink); }
.matrix td .mark { display: block; width: 20px; height: 20px; margin: 0 auto; background-size: 20px; }
.matrix td small { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.3; color: var(--mut); }
.matrix td.txt { font-size: 13.5px; color: #3a3832; }
.prose .matrix .us { background: #f3efe6; border-top-color: #e2dccd; box-shadow: inset 1.5px 0 0 var(--ink), inset -1.5px 0 0 var(--ink); }
.prose .matrix thead th.us { border-radius: 10px 10px 0 0; background: var(--ink); color: var(--bg); box-shadow: none; }
.matrix thead th.us small { color: #c9c5b9; }
.matrix thead th.us .tag { margin: 6px 0 0; background: var(--bg); color: var(--ink); }
.prose .matrix tbody tr:last-child .us { border-radius: 0 0 10px 10px; box-shadow: inset 1.5px 0 0 var(--ink), inset -1.5px 0 0 var(--ink), inset 0 -1.5px 0 var(--ink); }
.matrix td.us.txt { font-weight: 600; color: var(--ink); }
.matrix-cards { display: none; }
@media (max-width: 700px) {
  .matrix-wrap .matrix { display: none; }
  .matrix-cards { display: grid; gap: 10px; }
  .matrix-card { padding: 16px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .matrix-card.us { box-shadow: inset 0 0 0 1.5px var(--ink); background: #f7f3eb; }
  .prose .matrix-card p { margin: 0; }
  .matrix-card .mc-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--ink); }
  .matrix-card .mc-name .tag { margin: 0; }
  .matrix-card .mc-sub { margin-top: 2px !important; font-size: 13.5px; color: var(--mut); }
  .prose .matrix-card ul { display: grid; gap: 7px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
  .prose .matrix-card li { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14.5px; line-height: 1.4; color: #3a3832; }
  .matrix-card li .mark { margin: 1px 0 0; }
  .matrix-card li small { color: var(--mut); }
  .matrix-card li.no { color: var(--mut); }
}
