/* Video House: Video Editing Trends (blog home and articles). Loads after site.css. */

/* ---------- shared pieces ---------- */
.tag { display: inline-block; padding: 0.35em 0.8em; border-radius: 999px; background: var(--accent); color: var(--white); font-size: var(--step-small); font-weight: 600; line-height: 1.2; }
.tag--soft { background: var(--paper); color: var(--ink); }
.field-night .tag--soft { background: var(--night-tone); color: var(--white); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); color: var(--muted); }
.field-night .post-meta { color: var(--night-soft); }
.post-meta span + span::before { content: "·"; margin-right: 18px; }

/* article card, used on the blog home and under each article */
.post-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: var(--white); text-decoration: none; color: inherit; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-tone); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: grid; align-content: start; gap: 10px; padding: clamp(18px, 2vw, 26px); }
.post-card__title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.post-card__excerpt { color: var(--muted); }
.post-card__more { font-weight: 600; margin-top: 4px; }
.post-card__more::after { content: " →"; }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.28); }
  .post-card:hover .post-card__more { text-decoration: underline; text-underline-offset: 0.2em; }
}

/* ---------- blog home ---------- */
.bhero { padding-top: clamp(56px, 8vw, 128px); padding-bottom: clamp(56px, 7vw, 104px); }
.bhero .crumbs { color: var(--night-soft); }
.bhero__title { font-size: var(--step-head); max-width: 13ch; }
.bhero__title em { font-style: normal; color: transparent; background: var(--ig); -webkit-background-clip: text; background-clip: text; }
.bhero__lead { max-width: 40ch; margin-top: clamp(18px, 2.2vw, 28px); color: var(--night-soft); }
.bsearch { position: relative; max-width: 560px; margin-top: clamp(28px, 3.4vw, 44px); }
.bsearch input { width: 100%; min-height: 56px; padding: 14px 18px 14px 50px; border: 2px solid transparent; border-radius: 999px; background: var(--white); color: var(--ink); }
.bsearch input:focus { outline: none; border-color: var(--accent); }
.bsearch svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bfilters { margin-top: 18px; }
.bfilters .chip span { opacity: 0.65; margin-left: 4px; font-variant-numeric: tabular-nums; }

.bfeature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: var(--r); overflow: hidden; background: var(--white); text-decoration: none; color: inherit; }
.bfeature__img { min-height: 340px; background: var(--night-tone); }
.bfeature__img img { width: 100%; height: 100%; object-fit: cover; }
.bfeature__body { display: grid; align-content: center; gap: 16px; padding: clamp(24px, 3.4vw, 52px); }
.bfeature__title { font-size: clamp(1.8rem, 1rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.bfeature__excerpt { color: var(--muted); font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; }
.bfeature .btn { justify-self: start; }
@media (hover: hover) and (pointer: fine) { .bfeature:hover .bfeature__title { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; } }

.bgrid__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-top: clamp(56px, 7vw, 104px); }
.bgrid__count { color: var(--muted); font-weight: 600; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(24px, 3vw, 40px); }
.bgrid .post-card[hidden] { display: none; }
.bempty { margin-top: 28px; color: var(--muted); }

.btopics__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(28px, 3.4vw, 48px); }
.btopics__list a { display: grid; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--paper); text-decoration: none; }
.btopics__list b { font-size: var(--step-body); letter-spacing: -0.02em; }
.btopics__list span { color: var(--muted); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .btopics__list a:hover { background: var(--ink); color: var(--white); } .btopics__list a:hover span { color: var(--night-soft); } }

/* ---------- article ---------- */
.read-progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; background: var(--ig); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

.ahero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 80px); }
.ahero .crumbs { color: var(--night-soft); }
.ahero__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: clamp(16px, 2vw, 24px); }
.ahero__title { font-size: clamp(2.2rem, 1rem + 4.2vw, 5rem); max-width: 20ch; }
.ahero__lead { max-width: 52ch; margin-top: clamp(18px, 2.2vw, 28px); color: var(--night-soft); }
.ahero__meta { margin-top: clamp(20px, 2.4vw, 32px); }
.ahero__cover { margin-top: clamp(32px, 4vw, 56px); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; background: var(--night-tone); }
.ahero__cover img { width: 100%; height: 100%; object-fit: cover; }

.alayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(40px, 5vw, 72px); }
.atoc { position: sticky; top: 96px; display: grid; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--paper); font-size: var(--step-small); }
.atoc__title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.atoc ol { display: grid; gap: 2px; counter-reset: toc; }
.atoc li { counter-increment: toc; }
.atoc a { display: grid; grid-template-columns: 1.8em 1fr; padding: 7px 8px; border-radius: 8px; text-decoration: none; line-height: 1.35; }
.atoc a::before { content: counter(toc); color: var(--accent); font-weight: 800; }
.atoc a:hover { background: var(--white); }
.atoc a.is-active { background: var(--white); font-weight: 600; }
.atoc__cta { margin-top: 8px; }
.atoc__cta .btn { width: 100%; }

.abody { max-width: 72ch; font-size: clamp(1.06rem, 1rem + 0.25vw, 1.18rem); line-height: 1.65; }
.abody > * + * { margin-top: 1.1em; }
.abody h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin-top: 2.2em; scroll-margin-top: 96px; }
.abody h2 .num { color: var(--accent); margin-right: 0.3em; }
.abody h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 1.6em; }
.abody ul, .abody ol { padding-left: 1.3em; display: grid; gap: 0.45em; }
.abody ul { list-style: disc; }
.abody ol { list-style: decimal; }
.abody a { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
.abody strong { font-weight: 700; }

.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--paper); }
.abody table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95em; }
.abody th, .abody td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4e4e4; }
.abody thead th { font-weight: 800; background: var(--ink); color: var(--white); }
.abody tbody tr:last-child td { border-bottom: 0; }
.abody td:nth-child(2) { font-weight: 800; white-space: nowrap; }

.takeaways { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r); background: var(--night); color: var(--white); }
.takeaways__title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step-small); color: var(--night-soft); }
.takeaways ul { margin-top: 12px; list-style: none; padding: 0; }
.takeaways li { display: grid; grid-template-columns: 1.4em 1fr; }
.takeaways li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.callout { padding: 18px 22px; border-radius: var(--r); background: var(--paper); border-left: 4px solid var(--accent); }
.callout b { display: block; margin-bottom: 4px; }
.callout--tip { border-left-color: var(--ig-purple); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 18px; border-radius: var(--r); background: var(--paper); }
.fact b { display: block; font-size: var(--step-body); letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: var(--step-small); line-height: 1.45; display: block; margin-top: 4px; }

.svc-promo { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--ig-magenta) var(--ig); color: var(--white); text-decoration: none; }
.svc-promo img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.svc-promo__kind, .svc-promo__title, .svc-promo__go { display: block; }
.svc-promo__kind { font-size: var(--step-small); font-weight: 600; opacity: 0.85; }
.svc-promo__title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.svc-promo__go { font-weight: 600; margin-top: 4px; display: block; }
.svc-promo__go::after { content: " →"; }

.acta { display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 2.8vw, 36px); border-radius: var(--r); background: var(--night); color: var(--white); }
.acta h3 { margin: 0; font-size: var(--step-lead); }
.acta p { color: var(--night-soft); }
.acta__btns { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.acta .link { color: var(--white); }

.afaq details { border-top: 1px solid #e4e4e4; }
.afaq details:last-child { border-bottom: 1px solid #e4e4e4; }
.afaq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; line-height: 1.35; }
.afaq summary::-webkit-details-marker { display: none; }
.afaq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.3em; line-height: 1; }
.afaq details[open] summary::after { content: "–"; }
.afaq details p { padding-bottom: 18px; color: var(--muted); }

.atags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.4em !important; }
.ashare { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 22px; border-top: 1px solid #e4e4e4; }
.ashare__label { font-weight: 600; margin-right: 6px; }
.ashare a, .ashare button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: var(--step-small); text-decoration: none; cursor: pointer; }
.ashare a:hover, .ashare button:hover { background: var(--ink); color: var(--white); }

.author { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r); background: var(--paper); }
.author__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.04em; }
.author__kind { font-size: var(--step-small); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.author__name { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; }
.author p { color: var(--muted); margin-top: 6px; }

.apager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.apager a { display: grid; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--paper); text-decoration: none; }
.apager a:last-child { text-align: right; }
.apager span { color: var(--muted); font-size: var(--step-small); font-weight: 600; }
.apager b { letter-spacing: -0.02em; line-height: 1.25; }
.apager a:hover { background: var(--ink); color: var(--white); }
.apager a:hover span { color: var(--night-soft); }

.arelated .bgrid { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bfeature { grid-template-columns: minmax(0, 1fr); }
  .bfeature__img { min-height: 0; aspect-ratio: 16 / 9; }
  .bgrid, .btopics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alayout { grid-template-columns: minmax(0, 1fr); }
  .atoc { position: static; order: -1; }
  .atoc__cta { display: none; }
  .ahero__cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .bgrid, .btopics__list, .facts, .apager { grid-template-columns: minmax(0, 1fr); }
  .apager a:last-child { text-align: left; }
  .svc-promo { grid-template-columns: 72px 1fr; gap: 14px; }
  .svc-promo img { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } }
