/* Articles: list page, article pages and the homepage block. Builds on landing.css. */

.illo { display: block; width: 100%; height: auto; }

/* article cards */
.a-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.a-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.a-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.a-card .a-art { aspect-ratio: 400 / 240; overflow: hidden; border-radius: 20px; }
.a-card .a-art .illo { height: 100%; transition: transform .5s ease; }
.a-card:hover .a-art .illo { transform: scale(1.04); }
.a-card .a-txt { padding: 18px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.a-tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.tag-peach { background: var(--orange-50); color: var(--orange-ink); }
.tag-teal { background: #E5F5EC; color: #177A4A; }
.tag-sky { background: var(--cloud); color: var(--ink-2); }
.a-card h3, .a-card h2 { font-size: 21px; font-weight: 600; margin-top: 12px; line-height: 1.2; }
.a-card p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.a-meta { margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.a-meta svg { width: 15px; height: 15px; }

/* free download banner */
.dl { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 30px; margin-top: 22px; padding: 38px 42px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.dl::before { content: ''; position: absolute; right: -100px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: rgba(255, 122, 26, .4); filter: blur(80px); pointer-events: none; }
.dl > * { position: relative; }
.dl h3 { font-size: clamp(24px, 2.6vw, 32px); color: #fff; font-weight: 600; }
.dl p { color: rgba(255,255,255,.72); margin-top: 10px; font-size: 16px; max-width: 30em; }
.dl .btn { margin-top: 22px; }
.dl-note { display: block; margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.dl-preview { position: relative; height: 250px; }
.dl-preview img { position: absolute; width: 190px; height: auto; border-radius: 10px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); }
.dl-preview img:first-child { right: 150px; top: 30px; transform: rotate(-7deg); opacity: .85; }
.dl-preview img:last-child { right: 30px; top: 6px; transform: rotate(4deg); }

/* list page */
.a-hero { position: relative; overflow: hidden; margin-top: -76px; padding: 160px 0 20px; text-align: center; background: linear-gradient(180deg, var(--snow), var(--white)); }
.a-hero::before { content: ''; position: absolute; left: 50%; top: 40px; width: 640px; height: 320px; margin-left: -320px; border-radius: 50%; background: rgba(255, 160, 80, .25); filter: blur(80px); pointer-events: none; }
.a-hero .wrap { position: relative; }
.a-hero h1 { font-size: clamp(40px, 5vw, 64px); max-width: 13em; margin: 0 auto; }
.a-hero p { color: var(--ink-2); font-size: 18px; max-width: 34em; margin: 16px auto 0; }
.a-list { padding: 10px 0 100px; }

/* article page */
.art-head { padding-top: 60px; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.art-head h1 { font-size: clamp(36px, 4.6vw, 56px); margin-top: 16px; max-width: 15em; }
.art-head .dek { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 36em; line-height: 1.6; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }
.byline .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.byline b { color: var(--ink); display: block; font-weight: 600; }
.byline span { display: block; }
.byline .when { margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--line); line-height: 1.45; }
.art-art { margin-top: 34px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 400 / 160; }
.art-art .illo { height: 100%; object-fit: cover; }
.art-art svg.illo { width: 100%; height: 100%; }

.prose { max-width: 700px; margin: 0 auto; padding: 50px 0 30px; font-size: 18px; line-height: 1.75; color: #2C3A33; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 30px; font-weight: 600; margin-top: 54px; color: var(--ink); line-height: 1.15; }
.prose h3 { font-size: 21px; font-weight: 600; margin-top: 36px; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose a { color: var(--orange-ink); text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; color: #fff; }
.prose strong { color: var(--ink); }
.step { display: flex; gap: 16px; align-items: flex-start; margin-top: 50px; }
.step .n { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--orange-50); color: var(--orange-ink); border: 1px solid var(--orange-100); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 19px; }
.step h2 { margin: 4px 0 0; font-size: 26px; }
.step-body { margin-top: 12px !important; }

.tip { background: var(--snow); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; font-size: 16.5px; color: var(--ink); }
.warn { background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: 18px; padding: 18px 22px; font-size: 16.5px; color: var(--ink); }

/* message bubbles */
.msgs { background: var(--snow); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 14px 16px; max-width: 540px; font-size: 16px; line-height: 1.55; box-shadow: var(--shadow-sm); }
.msg .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.msg.bad { border-color: #F2C9BE; }
.msg.bad .lbl { color: #A3402A; }
.msg.good { border-color: #BFE6CF; }
.msg.good .lbl { color: var(--ok); }
.msg mark { background: var(--orange-50); color: var(--orange-ink); border-radius: 5px; padding: 0 4px; font-weight: 600; }

.qa { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.qa div { padding: 14px 18px; }
.qa div + div { border-top: 1px solid var(--line); background: var(--snow); }
.qa b { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 2px; font-weight: 600; }

.tally { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tally th, .tally td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tally th { background: var(--snow); font-size: 14px; color: var(--ink-2); font-weight: 600; }
.tally td:last-child { color: var(--orange-ink); font-weight: 600; letter-spacing: 3px; }

.soft-cta { margin: 54px auto 0; max-width: 700px; display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, var(--orange-50), var(--snow)); border: 1px solid var(--orange-100); }
.soft-cta .logo-blob { width: 46px; height: 46px; flex-shrink: 0; }
.soft-cta p { font-size: 16px; color: var(--ink-2); }
.soft-cta p b { color: var(--ink); display: block; font-size: 17px; font-weight: 600; }
.soft-cta .btn { margin-left: auto; flex-shrink: 0; }

.next { padding: 80px 0 100px; background: var(--snow); }
.next h2 { font-size: 32px; }
.next .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }

@media (max-width: 960px) {
  .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl-preview { display: none; }
}
@media (max-width: 640px) {
  .a-grid, .next .a-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; padding-top: 36px; }
  .prose h2 { font-size: 25px; }
  .step h2 { font-size: 22px; }
  .step .n { width: 38px; height: 38px; font-size: 17px; }
  .art-art { aspect-ratio: 400 / 230; }
  .byline { flex-wrap: wrap; }
  .byline .when { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
  .dl { padding: 28px 22px; }
  .dl .btn { width: 100%; }
  .msgs { padding: 14px; }
  .soft-cta { flex-direction: column; align-items: flex-start; }
  .soft-cta .btn { margin-left: 0; width: 100%; }
}
