/* BizKit blog: the index at /blog and the posts at /blog/<slug>, on the site's own design
   system (bizkit-v3.css, loaded first). Only what the blog adds sits here: the index hero and
   cards, the article column, the comparison tables, the two call-to-action boxes and the note
   block at the end. Built from the approved mockup (website/pages/blog/_source/mockup/blog.css).
   Drawings follow the Drawn work block: line, 2.0, round, one Signal fill per drawing, flat
   paper ground. */

html { font-synthesis: none; }

/* Drawn kit, scoped from _os/templates/asset-kits/drawn.css */
.drawn { display: block; width: 100%; color: var(--graphite); --ink: var(--graphite); --ink-soft: var(--slate); --accent: var(--signal); }
.drawn svg { display: block; width: 100%; height: auto; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drawn svg * { vector-effect: non-scaling-stroke; }
.drawn .fill { fill: var(--accent); }
.drawn .paper { fill: var(--paper); }
.drawn .white { fill: var(--white); }
.drawn .soft { stroke: var(--ink-soft); }
.drawn .dash { stroke-dasharray: 7 6; }
.drawn rect.box { rx: 12px; }

/* Label component: Archivo, uppercase, tracked, Signal deep */
.label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 13px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-deep); }
.readtime { font-family: var(--font-mono); font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---------- Index ---------- */
.blog-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.blog-hero-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px; align-items: center; gap: clamp(32px, 4vw, 64px); }
.blog-hero-copy { text-align: center; }
.blog-hero-copy .lead { max-width: 640px; margin: 24px auto 0; }
.blog-hero-rack, .blog-hero-cal { width: 100%; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card:focus-visible { outline: 2px solid var(--signal-deep); outline-offset: 3px; }
.post-image { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.post-image .drawn { width: 100%; }
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card h2 { font-size: 21px; letter-spacing: -0.018em; line-height: 1.22; text-wrap: balance; }
.post-summary { font-size: 16px; line-height: 1.55; color: var(--graphite-700); }
.post-body .readtime { margin-top: auto; padding-top: 6px; }

/* Closing box on the index */
.close-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.close-photo { position: relative; min-height: 100%; }
.close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; filter: saturate(0.8); }
.close-copy { padding: clamp(36px, 4vw, 60px); display: flex; flex-direction: column; align-items: flex-start; }
.close-copy h2 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.028em; line-height: 1.1; text-wrap: balance; }
.close-copy .body { margin-top: 18px; font-size: 17.5px; }
.close-copy .btn { margin-top: 28px; }
.close-second { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); width: 100%; }
.close-second p { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--graphite); }
.close-second .btn { margin-top: 16px; }

.inline-link { color: var(--graphite); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Article ---------- */
.article-head { padding-top: clamp(40px, 6vw, 80px); }
.article-col { width: min(100%, calc(720px + 2 * var(--gutter))); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.article-wide { width: min(100%, calc(1040px + 2 * var(--gutter))); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.crumb { font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--slate); }
.crumb a { color: var(--graphite-700); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 8px; }
.article-head .label { margin-top: 28px; }
.article-title { margin-top: 14px; font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -0.032em; line-height: 1.06; text-wrap: balance; }
.article-note { margin-top: 20px; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--graphite-700); }
.byline { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.byline p { font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.45; color: var(--graphite); }
.byline .meta { margin-top: 8px; display: flex; gap: 18px; flex-wrap: wrap; }
.byline .meta span { font-family: var(--font-mono); font-size: 14px; color: var(--slate); }

.article-hero { margin-top: clamp(32px, 4vw, 48px); }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px); }
.hero-card .drawn { max-width: 720px; margin: 0 auto; }

.prose { padding-top: clamp(36px, 4vw, 52px); }
.prose > * + * { margin-top: 22px; }
.prose p, .prose li { font-family: var(--font-body); font-size: 19px; line-height: 1.68; color: var(--graphite); }
.prose h2 { margin-top: 56px; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.022em; line-height: 1.16; text-wrap: balance; }
.prose h3 { margin-top: 36px; font-size: 21px; letter-spacing: -0.016em; line-height: 1.25; text-wrap: balance; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }
.prose h2 + p { margin-top: 18px; }
.prose a { color: var(--graphite); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(31, 41, 51, 0.45); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); }

/* Comparison tables: wider than the text column on a laptop, scrolled inside their frame on a phone */
.prose .table-wrap { width: min(1040px, calc(100vw - 2 * var(--gutter))); position: relative; left: 50%; transform: translateX(-50%); margin-top: 32px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.prose .table-wrap:focus-visible { outline: 2px solid var(--signal-deep); outline-offset: 3px; }
.prose .table-wrap + * { margin-top: 32px; }
.prose table { width: 100%; min-width: 720px; border-collapse: collapse; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: 15.5px; line-height: 1.5; color: var(--graphite); }
.prose th { background: var(--paper); font-family: var(--font-head); font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.prose td a { text-decoration-color: rgba(31, 41, 51, 0.45); }
.prose table.table--rank td:last-child { min-width: 380px; }

/* The same tables as stacked cards, shown on a phone in place of the table */
.prose .table-cards { display: none; list-style: none; padding: 0; }
.prose .tcard { padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prose .tcard::before { display: none; }
.prose .tcard-name { padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; color: var(--graphite); }
.prose .tcard dl { margin: 0; }
.prose .tcard-row { padding: 12px 18px; border-top: 1px solid var(--line); }
.prose .tcard-row:first-child { border-top: 0; }
.prose .tcard dt { font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--graphite-700); }
.prose .tcard dd { margin: 4px 0 0; font-family: var(--font-body); font-size: 16.5px; line-height: 1.55; color: var(--graphite); }

/* The two call-to-action boxes */
.cta-box { margin: 52px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prose .cta-box + * { margin-top: 0; }
.cta-banner { position: relative; border-bottom: 1px solid var(--line); }
.cta-banner--drawn { background: var(--paper); height: 200px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; }
.cta-banner--drawn .rack { width: 190px; }
.cta-banner--drawn .cal { width: 160px; }
.cta-banner--drawn .mid { flex: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.cta-banner--drawn .mid .drawn { width: 150px; }
.cta-banner--photo { height: 240px; }
.cta-banner--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 42%; filter: saturate(0.8); }
.cta-banner--photo img.photo-stock { object-position: 60% 6%; }
.cta-banner--photo img.photo-papers { object-position: 50% 24%; }
.close-photo img.photo-papers { object-position: 80% 50%; }
.cta-copy-box { padding: 34px 40px 40px; }
.cta-copy-box h2 { margin: 0; font-size: clamp(24px, 2.3vw, 30px); letter-spacing: -0.022em; line-height: 1.15; text-wrap: balance; }
.prose .cta-copy-box p { margin-top: 14px; font-size: 17.5px; line-height: 1.6; color: var(--graphite-700); }
.cta-copy-box .btn { margin-top: 24px; }
.prose .cta-copy-box a.btn { text-decoration: none; color: inherit; }
.prose .cta-copy-box a.btn--dark { color: var(--paper); }
.prose .cta-copy-box .inline-link { color: var(--graphite); text-decoration-color: currentColor; }

/* The note block at the end: the post's own disclaimer, the trademark line */
.ai-note { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.ai-note .icon { width: 24px; height: 24px; color: var(--slate); margin-top: 2px; }
.ai-note .icon svg { width: 100%; height: 100%; fill: currentColor; }
.ai-note-text { display: grid; gap: 12px; }
.prose .ai-note p { font-size: 15.5px; line-height: 1.6; color: var(--slate); }
.prose .ai-note p + p { margin-top: 0; }

/* About the author */
.about { padding-top: 24px; border-top: 1px solid var(--line); }
.prose .about h2 { margin-top: 0; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; color: var(--signal-deep); }
.prose .about p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--graphite-700); }

.article-end { padding-bottom: clamp(72px, 8vw, 112px); }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .blog-hero-grid { grid-template-columns: 1fr 1fr; gap: 24px 40px; }
  .blog-hero-copy { grid-column: 1 / -1; grid-row: 1; }
  .blog-hero-rack { grid-row: 2; width: 150px; justify-self: end; }
  .blog-hero-cal { grid-row: 2; width: 130px; justify-self: start; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .close-box { grid-template-columns: 1fr; }
  .close-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .blog-hero-copy { text-align: left; }
  .blog-hero-copy .lead { margin-left: 0; }
  .blog-hero-grid { justify-items: start; }
  .blog-hero-rack { justify-self: start; width: 140px; }
  .blog-hero-cal { justify-self: end; width: 120px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-body { padding: 22px 22px 24px; }
  .close-copy { padding: 28px 22px 32px; }
  .close-copy .btn, .close-second .btn { width: 100%; white-space: normal; padding-top: 12px; padding-bottom: 12px; }
  .article-note { font-size: 16px; }
  .prose p, .prose li { font-size: 18px; }
  .prose h3 { font-size: 20px; }
  .prose .table-wrap { display: none; }
  .prose .table-cards { display: grid; gap: 14px; margin-top: 28px; }
  .prose .table-cards + * { margin-top: 32px; }
  .cta-banner--drawn { height: 150px; padding: 0 20px; }
  .cta-banner--drawn .rack { width: 130px; }
  .cta-banner--drawn .cal { width: 106px; }
  .cta-banner--drawn .mid { display: none; }
  .cta-banner--photo { height: 190px; }
  .cta-copy-box { padding: 26px 22px 28px; }
  .cta-copy-box .btn { width: 100%; white-space: normal; padding-top: 12px; padding-bottom: 12px; }
}
