/* ── single post layout (aesthetic article + sticky rails) ── */
    .article-breadcrumb {
      width: min(1280px, 96vw);
      margin: 0 auto 20px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--ink-soft-0);
    }
    .article-breadcrumb a {
      color: inherit;
      text-decoration: none;
      transition: color .2s var(--ease);
    }
    .article-breadcrumb a:hover {
      color: var(--brand-violet);
    }
    .article-breadcrumb .sep {
      opacity: .5;
    }
    .article-breadcrumb .curr {
      color: var(--ink-0);
      font-weight: 600;
    }

    .post {
      padding: 32px var(--gutter) clamp(60px, 9vw, 120px);
      background: rgb(var(--chip-rgb) / .28);
      border-top: 1px solid var(--hair-0);
    }
    .post__layout {
      width: min(1280px, 96vw);
      margin-inline: auto;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr) 260px;
      gap: clamp(28px, 3.5vw, 48px);
      align-items: start;
    }

    /* left rail */
    .rail {
      position: sticky;
      top: 96px;
      display: flex;
      flex-direction: column;
      gap: 28px;
    }
    .rail__label {
      font-family: var(--font-display);
      font-size: var(--fs-xs);
      font-weight: 700;
      letter-spacing: var(--tr-wide);
      text-transform: uppercase;
      color: var(--ink-soft-0);
      margin-bottom: 10px;
    }
    .share {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .share__btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 11px 16px;
      background: var(--surface-0);
      border: 1px solid var(--hair-0);
      border-radius: var(--r-md);
      font-size: 13px;
      font-weight: 600;
      color: var(--ink-0);
      transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    }
    .share__btn:hover {
      border-color: var(--brand-violet);
      transform: translateY(-2px);
      box-shadow: var(--sh-2);
    }
    .share__btn svg { width: 16px; height: 16px; color: var(--brand-violet); }

    .toc a {
      display: block;
      padding: 7px 0;
      font-size: 13px;
      color: var(--ink-soft-0);
      border-left: 2px solid transparent;
      padding-left: 12px;
      transition: color .2s, border-color .2s;
    }
    .toc a:hover, .toc a.is-active {
      color: var(--ink-0);
      border-left-color: var(--brand-violet);
    }

    /* main article */
    .article {
      background: var(--surface-0);
      border: 1px solid var(--hair-0);
      border-radius: var(--r-xl);
      overflow: hidden;
      box-shadow: var(--sh-2);
    }
    .article__hero {
      position: relative;
      aspect-ratio: 16 / 9;
      background: #1a1228;
      overflow: hidden;
    }
    .article__hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .article__hero-shade {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(18,14,28,.55) 0%, transparent 55%);
    }
    .article__body {
      padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 44px) clamp(36px, 5vw, 56px);
    }
    .article__meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 18px;
      margin-bottom: 22px;
      font-size: 12.5px;
      color: var(--ink-soft-0);
    }
    .article__cat {
      display: inline-flex;
      align-items: center;
      padding: 5px 12px;
      background: rgb(var(--chip-rgb) / .7);
      border-radius: 6px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
      font-size: 10.5px;
      color: var(--brand-violet);
    }
    .article__title {
      font-family: var(--font-display);
      font-size: clamp(28px, 4.2vw, 42px);
      font-weight: 900;
      line-height: 1.12;
      letter-spacing: -.02em;
      margin-bottom: 18px;
      color: var(--ink-0);
    }
    .article__lead {
      font-size: clamp(17px, 1.3vw, 20px);
      line-height: 1.65;
      color: var(--ink-soft-0);
      font-weight: 500;
      margin-bottom: 24px;
      max-width: 64ch;
    }
    .article__author {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 0 24px;
      border-top: 1px solid var(--hair-0);
      border-bottom: 1px solid var(--hair-0);
      margin-bottom: 32px;
    }
    .article__author img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--hair-0);
    }
    .article__author strong {
      display: block;
      font-size: 14.5px;
      font-weight: 700;
      color: var(--ink-0);
    }
    .article__author span {
      font-size: 12.5px;
      color: var(--ink-soft-0);
    }

    .prose {
      font-size: clamp(16px, 1.08vw, 17.5px);
      line-height: 1.8;
      color: var(--ink-0);
      letter-spacing: normal;
    }
    .prose > * + * { margin-top: 1.35em; }
    .prose h2 {
      font-family: var(--font-display);
      font-size: var(--fs-xl);
      font-weight: 800;
      margin-top: 2.1em;
      margin-bottom: .6em;
      letter-spacing: -.01em;
    }
    .prose h3 {
      font-size: var(--fs-lg);
      font-weight: 700;
      margin-top: 1.7em;
    }
    .prose p { max-width: 68ch; }
    .prose a {
      color: var(--brand-violet);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .prose blockquote {
      margin: 1.8em 0;
      padding: 18px 22px;
      border-left: 4px solid var(--brand-violet);
      background: rgb(var(--chip-rgb) / .45);
      border-radius: 0 var(--r-md) var(--r-md) 0;
      font-size: 1.05em;
      color: var(--ink-0);
    }
    .prose ul, .prose ol {
      padding-left: 1.35em;
      max-width: 68ch;
    }
    .prose li + li { margin-top: .45em; }
    .prose img {
      border-radius: var(--r-lg);
      margin: 1.8em 0;
      border: 1px solid var(--hair-0);
    }
    .prose .callout {
      display: flex;
      gap: 14px;
      padding: 18px 20px;
      background: linear-gradient(135deg, rgb(123 47 247 / .08), rgb(240 83 43 / .06));
      border: 1px solid rgb(123 47 247 / .18);
      border-radius: var(--r-lg);
      margin: 2em 0;
    }
    .prose .callout svg {
      flex: none;
      width: 22px;
      height: 22px;
      color: var(--brand-violet);
      margin-top: 2px;
    }

    .article__tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 40px;
      padding-top: 28px;
      border-top: 1px solid var(--hair-0);
    }
    .article__tag {
      padding: 7px 14px;
      background: rgb(var(--chip-rgb) / .6);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
      color: var(--ink-soft-0);
      transition: background .2s, color .2s;
    }
    .article__tag:hover {
      background: var(--brand-violet);
      color: #fff;
    }

    /* right sidebar */
    .aside {
      position: sticky;
      top: 96px;
      display: flex;
      flex-direction: column;
      gap: 28px;
    }
    .aside__card {
      background: var(--surface-0);
      border: 1px solid var(--hair-0);
      border-radius: var(--r-lg);
      padding: 22px;
      box-shadow: var(--sh-1);
    }
    .aside__card h4 {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 16px;
      letter-spacing: -.01em;
    }
    .related {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .related__item {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 12px;
      text-decoration: none;
      color: inherit;
      transition: opacity .2s;
    }
    .related__item:hover { opacity: .85; }
    .related__item img {
      width: 72px;
      height: 56px;
      object-fit: cover;
      border-radius: 10px;
      border: 1px solid var(--hair-0);
    }
    .related__item strong {
      display: block;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.35;
      color: var(--ink-0);
      margin-bottom: 4px;
    }
    .related__item span {
      font-size: 11.5px;
      color: var(--ink-soft-0);
    }

    .newsletter p {
      font-size: 13px;
      color: var(--ink-soft-0);
      margin-bottom: 14px;
      line-height: 1.5;
    }
    .newsletter input {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--hair-0);
      border-radius: var(--r-md);
      background: rgb(var(--chip-rgb) / .4);
      margin-bottom: 10px;
      font-size: 13.5px;
    }
    .newsletter button {
      width: 100%;
      padding: 12px;
      background: var(--brand-grad);
      color: #fff;
      border-radius: var(--r-md);
      font-size: 13px;
      font-weight: 700;
      transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    }
    .newsletter button:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px -10px rgba(240,83,43,.5);
    }

    /* mobile */
    @media (max-width: 980px) {
      .post__layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
      }
      .article {
        order: 1;
      }
      .rail {
        order: 2;
        position: static;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      .rail .share {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .rail .toc { display: none; }
      .aside {
        order: 3;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }
    }
    @media (max-width: 640px) {
      .aside { grid-template-columns: 1fr; }
      .article__body { padding: 24px 18px 32px; }
      .article-breadcrumb { margin-bottom: 14px; font-size: 12px; }
    }

    @media (prefers-reduced-motion: reduce) {
      * { animation: none !important; transition-duration: .01ms !important; }
    }