/* MovieFlow blog, editorial template v2 (2026-12). Light reading surface, brand gradient accents. */
:root {
  --ink: #111318;
  --ink-2: #3d4250;
  --muted: #6b7180;
  --line: #e6e8ee;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --accent: #6d5cff;
  --accent-ink: #4b3df0;
  --cyan: #19b8e6;
  --grad: linear-gradient(90deg, #2bd3fd 0%, #7b8cff 55%, #c650ff 100%);
  --radius: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand img { width: 130px; height: auto; }
.site-nav { display: flex; gap: 1.4rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.site-nav a { color: var(--ink-2); font-size: .93rem; font-weight: 500; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { color: #fff; background: var(--ink); box-shadow: 0 6px 18px rgba(17,19,24,.18); }
.btn-primary:hover { background: #000; }

/* Breadcrumb and hero */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1.4rem 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink-2); max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-hero { max-width: 860px; padding: 2rem 0 1.25rem; }
.post-hero h1, .blog-hero h1, .author-hero h1 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.05rem); line-height: 1.12; letter-spacing: -.02em; }
.post-dek { margin: 1rem 0 0; font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.byline { display: flex; align-items: center; gap: .85rem; margin-top: 1.6rem; }
.byline p { margin: 0; }
.byline-names { font-weight: 600; }
.byline-names a { color: var(--ink); }
.byline-dates { font-size: .88rem; color: var(--muted); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar-md { width: 44px; height: 44px; font-size: .9rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.8rem; }
.summarize { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.3rem; }
.summarize-label { font-size: .85rem; color: var(--muted); margin-right: .2rem; }
.chip { display: inline-flex; align-items: center; padding: .32rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: var(--ink-2); background: #fff; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.post-cover { margin-top: .5rem; margin-bottom: 0; }
.post-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* Article layout */
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; padding: 2.5rem 0 1rem; }
.post-aside { position: relative; }
.aside-sticky { position: sticky; top: 88px; }
.toc { padding-bottom: 1.2rem; }
.toc-title, .box-title { margin: 0 0 .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .9rem; line-height: 1.35; }
.toc li a:hover { border-left-color: var(--accent); color: var(--ink); text-decoration: none; }
.aside-cta { margin-top: 1rem; padding: 1.1rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.aside-cta p { margin: 0 0 .8rem; font-size: .9rem; color: var(--ink-2); }
.aside-cta .aside-cta-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.post-body { max-width: 740px; }
.takeaways { padding: 1.25rem 1.4rem; margin-bottom: 2rem; border-radius: var(--radius); background: linear-gradient(180deg, #f6f4ff 0%, #f3fbff 100%); border: 1px solid #e4e0ff; }
.takeaways ul { margin: 0; padding-left: 1.15rem; }
.takeaways li { margin: .35rem 0; }

/* Prose */
.prose { font-family: var(--serif); font-size: 1.135rem; line-height: 1.78; color: #1c1f26; }
.prose h2 { font-family: var(--sans); font-size: 1.6rem; line-height: 1.25; letter-spacing: -.01em; margin: 2.6rem 0 .8rem; }
.prose h3 { font-family: var(--sans); font-size: 1.22rem; margin: 2rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
.prose a { text-decoration: underline; text-decoration-color: rgba(75,61,240,.35); text-underline-offset: 3px; }
.prose a.ext::after { content: "↗"; font-size: .75em; margin-left: .15em; text-decoration: none; display: inline-block; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6rem 0; font-family: var(--sans); font-size: .93rem; line-height: 1.45; }
.prose th, .prose td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 120px; }
.prose thead th { background: var(--soft); font-weight: 700; border-bottom: 2px solid var(--line); }
.prose tbody tr:hover { background: #fafbfe; }
.prose code { font-size: .88em; background: var(--soft); padding: .1em .35em; border-radius: 6px; }
.prose img { border-radius: 10px; margin: 1.5rem 0; }
.video video { width: 100%; border-radius: var(--radius); background: #000; }
.video figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 2.5rem 0; padding: 1.5rem 1.6rem; border-radius: var(--radius); color: #fff; background: #0e0f14; position: relative; overflow: hidden; }
.inline-cta::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .22; }
.inline-cta > * { position: relative; }
.inline-cta p { margin: 0; color: rgba(255,255,255,.82); }
.inline-cta .inline-cta-title { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: .25rem; }
.inline-cta .btn-primary { background: #fff; color: var(--ink); }

.sources, .faq, .related, .author-box { margin-top: 2.8rem; }
.sources h2, .faq h2, .related h2, .discover h2, .topic h2 { font-size: 1.45rem; margin: 0 0 .9rem; letter-spacing: -.01em; }
.sources ol { padding-left: 1.2rem; margin: 0; }
.sources li { margin: .5rem 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 1.1rem; margin: .6rem 0; background: #fff; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; position: relative; padding-right: 1.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .9rem; color: var(--muted); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-2); }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.link-grid a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 500; }
.link-grid a:hover { border-color: var(--accent); text-decoration: none; }
.author-box { display: flex; gap: 1.2rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); }
.author-box p { margin: 0 0 .4rem; }
.author-box .author-name { font-weight: 700; font-size: 1.1rem; }
.author-box .author-name a { color: var(--ink); }

/* Cards */
.discover, .topic { padding: 2.5rem 0; }
.discover { border-top: 1px solid var(--line); margin-top: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 14px 36px rgba(17,19,24,.08); transform: translateY(-2px); }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 .5rem; font-size: 1.08rem; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card-desc { margin: 0 0 1rem; color: var(--ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--muted); }
.card-meta a, .card-author { color: var(--ink-2); font-weight: 600; }

/* Index */
.blog-hero { padding: 3.5rem 0 1.5rem; max-width: 860px; }
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.featured { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; padding: 1rem 0 2rem; }
.card-featured h3 { font-size: 1.55rem; }
.card-featured .card-media img { aspect-ratio: 1200 / 630; }
.latest { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.latest ol { margin: 0; padding-left: 1.1rem; }
.latest li { margin: 0 0 .9rem; }
.latest li a { color: var(--ink); font-weight: 600; display: block; line-height: 1.35; }
.latest .muted { font-size: .82rem; }
.topic { border-top: 1px solid var(--line); }
.topic-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.topic-head p { margin: 0; }
.more { font-weight: 600; white-space: nowrap; }
.author-hero { display: flex; gap: 1.6rem; align-items: flex-start; padding: 2.5rem 0 1rem; max-width: 900px; }
.author-hero p { margin: .4rem 0; }
.social { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Footer */
.site-footer { margin-top: 3rem; background: #0b0c10; color: rgba(255,255,255,.72); font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand img { width: 140px; margin-bottom: 1rem; }
.footer-brand p { margin: 0 0 1rem; max-width: 34ch; }
.footer-col h2 { margin: 0 0 .9rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .45rem 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.4rem 0 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-aside { order: 2; }
  .aside-sticky { position: static; }
  .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
  .aside-cta { display: none; }
  .post-aside { order: -1; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .header-row { gap: 1rem; }
  .site-nav { display: none; }
  .header-row .header-cta { margin-left: auto; }
  .card-grid, .link-grid { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .author-box, .author-hero { flex-direction: column; }
  .prose { font-size: 1.06rem; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
