/* ==========================================================================
   Ruut Journal — blog index, articles and contributor pages.
   Styles the Inkwell content vocabulary (ink-* classes) in Ruut's language:
   near-black canvas, Onest display type, Inter text, lilac accents.
   ========================================================================== */

@font-face { font-family: "Onest"; src: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/assets/fonts.gstatic.com/s/onest/v9/gNMZW3F-SZuj7zOT0IfSjTS16cPh9R-ZtxFMQWXgSQ.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 100 900; }
@font-face { font-family: "Inter"; src: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/assets/framerusercontent.com/assets/vQyevYAyHtARFwPqUzQGpnDs.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+20A6, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/assets/framerusercontent.com/assets/d3tHnaQIAeqiE5hGcRw4mmgWYU.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 500; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+20A6, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/assets/framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 600; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+20A6, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/assets/framerusercontent.com/assets/syRNPWzAMIrcJ3wIlPIP43KjQs.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 700; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+20A6, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/assets/framerusercontent.com/assets/vFzuJY0c65av44uhEKB6vyjFMg.woff2") format("woff2"); font-display: swap; font-style: italic; font-weight: 400; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+20A6, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --j-bg: #0b0b0e;
  --j-surface: #131217;
  --j-surface-2: #1a1920;
  --j-surface-3: #22202a;
  --j-line: rgba(255, 255, 255, .08);
  --j-line-strong: rgba(255, 255, 255, .14);
  --j-text: #f4f2f7;
  --j-text-2: #cfcad6;
  --j-muted: #9a94a3;
  --j-lilac: #cfa8ff;
  --j-lilac-strong: #b07cff;
  --j-violet: #7c3aed;
  --j-lilac-wash: rgba(176, 124, 255, .12);
  --j-green: #4ade80;
  --j-amber: #fbbf24;
  --j-red: #f87171;
  --j-blue: #7cc4ff;
  --j-radius: 14px;
  --j-radius-sm: 12px;
  --j-display: "Onest", var(--ruut-font-heading, "Onest"), ui-sans-serif, system-ui, sans-serif;
  --j-body: "Inter", var(--ruut-font-body, "Inter"), ui-sans-serif, system-ui, sans-serif;
  --j-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --j-page: min(1240px, calc(100% - 2 * var(--j-gutter)));
  --j-gutter: clamp(20px, 4vw, 40px);
  --j-measure: 700px;
  --j-ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--j-bg);
}

.ruut-journal { margin: 0; background: var(--j-bg); color: var(--j-text); font: 400 16px/1.6 var(--j-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ruut-journal *, .ruut-journal *::before, .ruut-journal *::after { box-sizing: border-box; }
.ruut-journal img { max-width: 100%; height: auto; }
.ruut-journal a { color: inherit; }
.ruut-journal :focus-visible { outline: 2px solid var(--j-lilac); outline-offset: 3px; border-radius: 6px; }
.journal-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ruut-journal ::selection { background: rgba(176, 124, 255, .35); color: #fff; }

.journal { width: var(--j-page); margin-inline: auto; padding-block: clamp(112px, 14vw, 156px) clamp(64px, 8vw, 112px); }

/* ---------- shared atoms ---------- */
.journal-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--j-lilac); font: 500 13px/1 var(--j-body); letter-spacing: .14em; text-transform: uppercase; }
.journal-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--j-lilac); }
.journal-eyebrow--dark { color: #4b2b80; }
.ink-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(207, 168, 255, .22); background: rgba(176, 124, 255, .08); color: var(--j-lilac) !important; font: 500 12px/1 var(--j-body); letter-spacing: .01em; text-decoration: none; transition: background .2s, border-color .2s; }
.ink-chip:hover { background: rgba(176, 124, 255, .18); border-color: rgba(207, 168, 255, .45); }
.journal-link { display: inline-flex; gap: 6px; color: var(--j-text-2); font-weight: 500; text-decoration: none; }
.journal-link:hover { color: var(--j-lilac); }
.journal-link span { transition: transform .25s var(--j-ease); }
.journal-link:hover span { transform: translateX(3px); }
.journal-button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--j-body); text-decoration: none; transition: transform .2s var(--j-ease), background .2s, box-shadow .2s; }
.journal-button:hover { transform: translateY(-1px); }
.journal-button--dark { background: #0b0b0e; color: #fff !important; box-shadow: 0 10px 30px -12px rgba(11, 11, 14, .6); }
.journal-button--ghost { color: #1b1030 !important; background: rgba(255, 255, 255, .55); border: 1px solid rgba(27, 16, 48, .12); backdrop-filter: blur(6px); }
.journal-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.journal-section-head h2 { margin: 0; font: 500 clamp(26px, 3vw, 34px)/1.1 var(--j-display); letter-spacing: -.03em; }

/* ---------- index hero ---------- */
.journal-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: end; gap: 32px 48px; padding-bottom: clamp(32px, 4vw, 48px); }
.journal-hero h1 { margin: 22px 0 18px; max-width: 13ch; font: 500 clamp(44px, 7vw, 88px)/.98 var(--j-display); letter-spacing: -.055em; color: var(--j-text); text-wrap: balance; }
.journal-hero h1 span { color: var(--j-muted); }
.journal-hero__lede { max-width: 56ch; margin: 0; color: var(--j-text-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.journal-search { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 16px; border: 1px solid var(--j-line-strong); border-radius: 999px; background: var(--j-surface); color: var(--j-muted); transition: border-color .2s, box-shadow .2s; }
.journal-search:focus-within { border-color: rgba(207, 168, 255, .55); box-shadow: 0 0 0 4px rgba(176, 124, 255, .14); }
.journal-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--j-text); font: 400 15px var(--j-body); outline: none; }
.journal-search input::placeholder { color: var(--j-muted); }
.journal-search input::-webkit-search-cancel-button { filter: invert(.7); }
.journal-search kbd { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--j-line-strong); border-radius: 7px; font: 500 12px var(--j-body); color: var(--j-muted); }

/* ---------- category tabs ---------- */
.journal-toolbar { position: sticky; top: 76px; z-index: 20; margin: 0 calc(-1 * var(--j-gutter)) clamp(28px, 4vw, 44px); padding: 12px var(--j-gutter); background: linear-gradient(var(--j-bg) 70%, rgba(11, 11, 14, 0)); }
.ink-categories ul { display: flex; gap: 6px; margin: 0; padding: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--j-line); border-radius: 999px; background: rgba(19, 18, 23, .8); backdrop-filter: blur(14px); width: max-content; max-width: 100%; }
.ink-categories ul::-webkit-scrollbar { display: none; }
.ink-categories__link { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--j-text-2) !important; font: 500 14px/1 var(--j-body); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.ink-categories__link:hover { color: var(--j-text) !important; background: rgba(255, 255, 255, .05); }
.ink-categories__link[aria-current="page"] { background: var(--j-text); color: #111 !important; }

/* ---------- post cards ---------- */
.ink-region-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(20px, 2.4vw, 32px); }
.ink-post-card { position: relative; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; border: 0; background: none; isolation: isolate; }
.ink-post-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--j-radius); background: var(--j-surface-2); box-shadow: inset 0 0 0 1px var(--j-line); }
.ink-post-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--j-line); pointer-events: none; }
.ink-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; aspect-ratio: auto !important; transition: transform .8s var(--j-ease), filter .4s; }
.ink-post-card:hover .ink-post-card__media img { transform: scale(1.035); }
.ink-post-card__media--placeholder { display: grid; place-items: end start; padding: 22px; text-decoration: none; background: radial-gradient(120% 90% at 85% 10%, rgba(143, 184, 255, .55), transparent 60%), radial-gradient(90% 80% at 10% 100%, rgba(207, 168, 255, .7), transparent 65%), linear-gradient(135deg, #2a1f45, #15131c); }
.ink-region-posts > :nth-child(3n+2) .ink-post-card__media--placeholder { background: radial-gradient(110% 90% at 15% 0%, rgba(255, 190, 120, .55), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(207, 168, 255, .6), transparent 60%), linear-gradient(135deg, #2b1d2a, #141218); }
.ink-region-posts > :nth-child(3n) .ink-post-card__media--placeholder { background: radial-gradient(110% 90% at 90% 90%, rgba(110, 231, 183, .45), transparent 60%), radial-gradient(90% 90% at 0% 0%, rgba(124, 196, 255, .55), transparent 60%), linear-gradient(135deg, #142427, #121418); }
.ink-post-card__media--placeholder span { color: rgba(255, 255, 255, .92); font: 500 clamp(22px, 2.4vw, 30px)/1.05 var(--j-display); letter-spacing: -.03em; max-width: 12ch; }
.ink-post-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ink-post-card__eyebrow { margin: 0; }
.ink-post-card__title { margin: 0; font: 500 clamp(20px, 1.8vw, 23px)/1.22 var(--j-display); letter-spacing: -.022em; color: var(--j-text); text-wrap: pretty; }
.ink-post-card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--j-ease); }
.ink-post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--j-radius); }
.ink-post-card:hover .ink-post-card__title a { background-size: 100% 1px; }
.ink-post-card__excerpt { margin: 0; color: var(--j-muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ink-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--j-muted); font-size: 13.5px; line-height: 1.3; }
.ink-post-meta__author { color: var(--j-text-2); font-weight: 500; }
.ink-post-meta__reading::before { content: "·"; margin-right: 8px; }
.ink-byline-avatar, .ink-avatar { flex: none; width: var(--ink-avatar-size, 28px); height: var(--ink-avatar-size, 28px); border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
img.ink-byline-avatar { width: 28px; height: 28px; }
.ink-avatar-placeholder { display: inline-grid; place-items: center; background: linear-gradient(135deg, #3a2a5c, #241c35); color: var(--j-lilac); font: 600 calc(var(--ink-avatar-size, 28px) * .36)/1 var(--j-body); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(207, 168, 255, .2); }
.ink-byline-avatar.ink-avatar-placeholder { width: 28px; height: 28px; font-size: 10px; }

/* featured story */
.ink-region-posts--feature > .ink-post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--j-line); margin-bottom: 4px; }
.ink-post-card--featured .ink-post-card__media { aspect-ratio: 16 / 10.5; border-radius: 16px; }
.ink-post-card--featured .ink-post-card__body { gap: 16px; }
.ink-post-card--featured .ink-post-card__title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.ink-post-card--featured .ink-post-card__excerpt { font-size: 17px; color: var(--j-text-2); -webkit-line-clamp: 3; }
.ink-post-card--featured .ink-post-meta { margin-top: 6px; }
.ink-post-card--featured .ink-post-card__title a::after { border-radius: 16px; }

.ink-region-empty { padding: clamp(40px, 6vw, 72px); border: 1px dashed var(--j-line-strong); border-radius: var(--j-radius); text-align: center; color: var(--j-muted); }
.ink-region-empty a { color: var(--j-lilac); }

.ink-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(48px, 6vw, 72px); color: var(--j-muted); font-size: 14px; }
.ink-pagination a, .ink-pagination span[aria-disabled] { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--j-line-strong); border-radius: 999px; text-decoration: none; color: var(--j-text); }
.ink-pagination a:hover { border-color: var(--j-lilac); color: var(--j-lilac); }
.ink-pagination span[aria-disabled] { opacity: .35; }

/* ---------- article ---------- */
.journal-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.journal-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--j-lilac); }
.journal--article { width: min(1240px, calc(100% - 2 * var(--j-gutter))); }
.ink-article__header { max-width: 880px; margin: 0 auto; text-align: left; }
.ink-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--j-muted); }
.ink-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .25); }
.ink-breadcrumbs a { color: var(--j-text-2); text-decoration: none; }
.ink-breadcrumbs a:hover { color: var(--j-lilac); }
.ink-breadcrumbs li:last-child a { color: var(--j-lilac); }
.ink-article__title { margin: 0; font: 500 clamp(38px, 5.6vw, 68px)/1.02 var(--j-display); letter-spacing: -.048em; text-wrap: balance; }
.ink-article__dek { max-width: 62ch; margin: 22px 0 0; color: var(--j-text-2); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; text-wrap: pretty; }
.ink-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 36px; padding: 20px 0; border-block: 1px solid var(--j-line); }
.ink-article__author { display: flex; align-items: center; gap: 12px; }
.ink-article__author > div { display: grid; gap: 2px; }
.ink-article__author .ink-avatar { --ink-avatar-size: 40px; }
.ink-article__label { display: block; margin: 0; color: var(--j-muted); font-size: 12px; letter-spacing: .02em; }
.ink-article__author-name { color: var(--j-text) !important; font-weight: 500; text-decoration: none; }
.ink-article__author-name:hover { color: var(--j-lilac) !important; }
.ink-article__author-role { color: var(--j-muted); font-size: 13px; }
.ink-article__facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }
.ink-article__facts > div { display: grid; gap: 2px; }
.ink-article__facts dt { color: var(--j-muted); font-size: 12px; }
.ink-article__facts dd { margin: 0; color: var(--j-text); font-weight: 500; font-size: 14.5px; }
.ink-share { display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.ink-share__link { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--j-line-strong); border-radius: 50%; background: transparent; color: var(--j-text-2); cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s var(--j-ease); }
.ink-share__link:hover { color: #fff; border-color: rgba(207, 168, 255, .5); background: var(--j-lilac-wash); transform: translateY(-1px); }
.ink-share__link::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ink-share__link--x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.75 3h3.07l-6.7 7.66L22 21h-6.17l-4.83-6.32L5.47 21H2.4l7.17-8.19L2 3h6.33l4.37 5.77L17.75 3Zm-1.08 16.17h1.7L7.4 4.74H5.58l11.09 14.43Z'/%3E%3C/svg%3E"); }
.ink-share__link--linkedin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9.75h4V21H3V9.75Zm6.5 0h3.83v1.54h.05c.53-1 1.84-2.06 3.79-2.06 4.05 0 4.8 2.67 4.8 6.13V21h-4v-5.07c0-1.21-.02-2.77-1.69-2.77-1.69 0-1.95 1.32-1.95 2.68V21h-4V9.75Z'/%3E%3C/svg%3E"); }
.ink-share__link--whatsapp { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2a9.9 9.9 0 0 0-8.5 15l-1.4 5.1 5.24-1.37A9.9 9.9 0 1 0 12.04 2Zm0 18.1a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.1.81.83-3.03-.2-.31a8.2 8.2 0 1 1 6.95 3.86Zm4.5-6.14c-.25-.12-1.46-.72-1.69-.8-.23-.08-.39-.12-.55.12-.16.25-.63.8-.78.97-.14.16-.29.18-.53.06a6.7 6.7 0 0 1-3.32-2.9c-.25-.43.25-.4.72-1.33.08-.16.04-.3-.02-.42l-.75-1.8c-.2-.48-.4-.41-.55-.42h-.47a.9.9 0 0 0-.65.3 2.74 2.74 0 0 0-.86 2.04c0 1.2.88 2.37 1 2.53.12.16 1.72 2.63 4.17 3.69 1.55.67 2.16.73 2.94.61.47-.07 1.46-.6 1.66-1.18.2-.58.2-1.08.14-1.18-.06-.1-.22-.16-.46-.29Z'/%3E%3C/svg%3E"); }
.ink-share__link--facebook { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-7.5h2.53l.38-2.94H13.5V8.69c0-.85.24-1.43 1.46-1.43h1.56V4.63a21 21 0 0 0-2.28-.12c-2.25 0-3.8 1.38-3.8 3.9v2.15H7.9v2.94h2.54V21h3.06Z'/%3E%3C/svg%3E"); }
.ink-share__link--copy { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.36 0l3-3a4.5 4.5 0 0 0-6.36-6.36l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.36 0l-3 3a4.5 4.5 0 0 0 6.36 6.36l1-1'/%3E%3C/svg%3E"); }
.ink-share__link.is-copied { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); color: var(--j-green); border-color: rgba(74, 222, 128, .4); }

.ink-article__cover { max-width: 1120px; margin: clamp(36px, 5vw, 56px) auto 0; }
.ink-article__cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 16px; aspect-ratio: auto !important; }

.ink-article__layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, var(--j-measure)) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
.ink-article__aside { grid-column: 1; position: relative; }
.ink-article__main { grid-column: 2; min-width: 0; }
.ink-toc { position: sticky; top: 112px; max-height: calc(100vh - 140px); overflow: auto; scrollbar-width: none; padding-left: 0; }
.ink-toc__title { margin: 0 0 14px; color: var(--j-muted); font: 500 12px/1 var(--j-body); letter-spacing: .12em; text-transform: uppercase; }
.ink-toc ol { position: relative; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--j-line-strong); }
.ink-toc__item a { position: relative; display: block; padding: 7px 0 7px 16px; color: var(--j-muted); font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: color .2s; }
.ink-toc__item--h3 a { padding-left: 30px; font-size: 13px; }
.ink-toc__item a:hover { color: var(--j-text); }
.ink-toc__item a.is-active { color: var(--j-text); }
.ink-toc__item a.is-active::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 1px; background: var(--j-text); }
.ink-toc__toggle { display: none; }

/* ---------- prose ---------- */
.ink-prose { color: var(--j-text-2); font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.ink-prose > * { margin-block: 0; }
.ink-prose > * + * { margin-top: 1.25em; }
.ink-prose > :first-child { margin-top: 0; }
.ink-prose > p:first-child { color: var(--j-text); font-size: 1.12em; line-height: 1.65; }
.ink-prose h2, .ink-prose h3, .ink-prose h4 { color: var(--j-text); font-family: var(--j-display); font-weight: 500; scroll-margin-top: 110px; text-wrap: balance; }
.ink-prose h2 { margin-top: 2.4em !important; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.032em; }
.ink-prose h3 { margin-top: 1.9em !important; font-size: clamp(21px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -.02em; }
.ink-prose h4 { margin-top: 1.6em !important; font-size: 19px; }
.ink-prose h2 + *, .ink-prose h3 + *, .ink-prose h4 + * { margin-top: .7em; }
.ink-prose h2 > a, .ink-prose h3 > a { text-decoration: none; }
.ink-prose .ink-heading-anchor { margin-left: .35em; color: var(--j-muted); opacity: 0; text-decoration: none; font-weight: 400; transition: opacity .2s; }
.ink-prose :is(h2, h3):hover .ink-heading-anchor, .ink-prose .ink-heading-anchor:focus { opacity: 1; }
.ink-prose a { color: var(--j-text); text-decoration: underline; text-decoration-color: rgba(207, 168, 255, .55); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
.ink-prose a:hover { color: var(--j-lilac); text-decoration-color: currentColor; }
.ink-prose strong { color: var(--j-text); font-weight: 600; }
.ink-prose em { font-style: italic; }
.ink-prose code { padding: .12em .38em; border-radius: 6px; background: var(--j-surface-3); color: #f0e4ff; font: .86em/1.4 var(--j-mono); }
.ink-prose ul, .ink-prose ol { padding-left: 1.4em; }
.ink-prose li + li { margin-top: .45em; }
.ink-prose li::marker { color: var(--j-lilac); }
.ink-prose ol li::marker { font-weight: 600; font-size: .92em; }
.ink-prose .ink-list--check { list-style: none; padding-left: 0; }
.ink-prose .ink-list--check li { position: relative; padding-left: 1.9em; }
.ink-prose .ink-list--check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15em; height: 1.15em; border-radius: 50%; background: rgba(74, 222, 128, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ink-prose hr, .ink-prose .ink-separator { height: 1px; margin-block: 3em !important; border: 0; background: linear-gradient(90deg, transparent, var(--j-line-strong), transparent); }
.ink-prose blockquote, .ink-prose .ink-blockquote { margin-inline: 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--j-lilac); color: var(--j-text); font-style: italic; }

/* figures */
.ink-prose figure { margin-inline: 0; }
.ink-figure img { display: block; width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--j-line); }
.ink-figure figcaption, .ink-embed figcaption { max-width: 62ch; margin-top: 10px; color: var(--j-muted); font-size: 13.5px; line-height: 1.55; text-align: left; }
.ink-figure figcaption em, .ink-embed figcaption em { font-style: normal; opacity: .8; }
.ink-figure__credit { display: inline-block; margin-left: .4em; opacity: .7; font-size: 12.5px; }
.ink-article__aside--empty + .ink-article__main .ink-prose > .ink-figure--wide { margin-inline: calc(-1 * min(96px, (100vw - var(--j-measure)) / 4)); }
.ink-prose > .ink-figure--full { margin-inline: calc(50% - 50vw); }
.ink-prose > .ink-figure--full img { border-radius: 0; box-shadow: none; }
.ink-prose > .ink-figure, .ink-prose > .ink-table, .ink-prose > .ink-embed, .ink-prose > .ink-stats, .ink-prose > .ink-cta, .ink-prose > .ink-proscons, .ink-prose > .ink-takeaways, .ink-prose > .ink-code, .ink-prose > .ink-callout, .ink-prose > .ink-quote--pull { margin-block: 2.2em !important; }

/* tables */
.ink-table__scroll { position: relative; overflow-x: auto; border-top: 1px solid var(--j-line-strong); border-bottom: 1px solid var(--j-line-strong); scrollbar-width: thin; scrollbar-color: var(--j-surface-3) transparent; }
.ink-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ink-table caption { padding: 0 0 12px; caption-side: top; text-align: left; color: var(--j-text); font: 500 15px/1.4 var(--j-body); }
.ink-table:has(caption) .ink-table__scroll { border-top: 0; }
.ink-table:has(caption) thead tr { border-top: 1px solid var(--j-line-strong); }
.ink-table th, .ink-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; }
.ink-table tbody tr + tr { border-top: 1px solid var(--j-line); }
.ink-table thead tr { border-bottom: 1px solid var(--j-line-strong); }
.ink-table thead th { color: var(--j-muted); font: 500 13px/1.4 var(--j-body); white-space: nowrap; }
.ink-table tbody th { color: var(--j-text); font-weight: 500; }
.ink-table td { color: var(--j-text-2); }
.ink-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--j-bg); }
.ink-table .is-highlighted { padding-left: 14px; background: rgba(207, 168, 255, .06); }
.ink-table thead .is-highlighted { color: var(--j-lilac); }
.ink-table td.is-highlighted { color: var(--j-text); }
.ink-table__scroll:focus-visible { outline-offset: 2px; }
.ink-table tbody tr:last-child > * { border-bottom: 0; }
.ink-table__note { margin-top: 12px; color: var(--j-muted); font-size: 13.5px; line-height: 1.55; }
.ink-table__note a { color: var(--j-text-2); }
.ink-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; vertical-align: -5px; }
.ink-mark::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ink-mark--yes { color: var(--j-green); background: rgba(74, 222, 128, .14); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ink-mark--no { color: #8f8a98; background: rgba(255, 255, 255, .06); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.ink-mark--partial { color: var(--j-amber); background: rgba(251, 191, 36, .13); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* takeaways */
.ink-takeaways { padding: 20px 24px; border-left: 2px solid var(--j-lilac); background: var(--j-surface); border-radius: 0 12px 12px 0; }
.ink-takeaways__title { margin: 0 0 12px; color: var(--j-text); font: 600 15px/1.3 var(--j-body); }
.ink-takeaways li { position: relative; margin: 0 !important; padding-left: 18px; color: var(--j-text-2); font-size: 16px; line-height: 1.6; }
.ink-takeaways li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--j-lilac); }
.ink-takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

/* callouts */
.ink-callout { --tone: var(--j-blue); position: relative; padding: 18px 22px 18px 54px; border-radius: 16px; background: color-mix(in oklab, var(--tone) 9%, var(--j-surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 24%, transparent); }
.ink-callout::before { content: ""; position: absolute; left: 20px; top: 20px; width: 20px; height: 20px; background: var(--tone); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5h.01'/%3E%3C/svg%3E"); }
.ink-callout--tip { --tone: var(--j-lilac); }
.ink-callout--tip::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1.1 2V16h5v-.2c.1-.8.5-1.5 1.1-2A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E"); }
.ink-callout--success { --tone: var(--j-green); }
.ink-callout--success::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.ink-callout--warning { --tone: var(--j-amber); }
.ink-callout--warning::before, .ink-callout--danger::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0ZM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.ink-callout--danger { --tone: var(--j-red); }
.ink-callout__title { margin: 0 0 4px; color: var(--j-text); font-weight: 600; font-size: 15.5px; }
.ink-callout__body p { margin: 0; color: var(--j-text-2); font-size: 16px; line-height: 1.65; }

/* quotes */
.ink-quote { margin-inline: 0; }
.ink-quote blockquote { margin: 0; padding-left: 1.2em; border-left: 2px solid var(--j-lilac); }
.ink-quote blockquote p { margin: 0; color: var(--j-text); font-style: italic; }
.ink-quote figcaption { margin-top: 10px; padding-left: 1.4em; color: var(--j-muted); font-size: 15px; }
.ink-quote cite { color: var(--j-text-2); font-style: normal; font-weight: 500; }
.ink-quote figcaption span::before { content: ", "; }
.ink-quote--pull { position: relative; padding: 8px 0 8px; text-align: left; }
.ink-quote--pull blockquote { padding: 0; border: 0; }
.ink-quote--pull blockquote::before { content: "“"; display: block; height: .55em; margin-bottom: .1em; color: var(--j-lilac); font: 500 88px/1 var(--j-display); }
.ink-quote--pull blockquote p { font: 500 clamp(24px, 2.6vw, 32px)/1.28 var(--j-display); font-style: normal; letter-spacing: -.025em; text-wrap: balance; }
.ink-quote--pull figcaption { padding-left: 0; margin-top: 18px; }

/* stats */
.ink-stats__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--j-radius); background: var(--j-line-strong); box-shadow: 0 0 0 1px var(--j-line-strong); }
.ink-stats[data-count="1"] { --cols: 1; } .ink-stats[data-count="2"] { --cols: 2; } .ink-stats[data-count="4"] { --cols: 4; }
.ink-stat { padding: 20px 20px 18px; background: var(--j-bg); }
.ink-stat__value { margin: 0; font: 500 clamp(32px, 3.6vw, 44px)/1 var(--j-display); letter-spacing: -.035em; color: var(--j-text); }
.ink-stat__label { margin: 10px 0 0; color: var(--j-text); font-size: 15px; line-height: 1.4; }
.ink-stat__note { margin: 6px 0 0; color: var(--j-muted); font-size: 13px; line-height: 1.45; }
.ink-stats__source { margin-top: 12px; color: var(--j-muted); font-size: 13.5px; }

/* pros & cons */
.ink-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ink-proscons__col { padding: 22px 24px; border-radius: var(--j-radius); background: var(--j-surface); box-shadow: inset 0 0 0 1px var(--j-line-strong); }
.ink-proscons__col--pros { box-shadow: inset 0 0 0 1px var(--j-line-strong), inset 0 2px 0 var(--j-lilac); }
.ink-proscons__title { margin: 0 0 14px; color: var(--j-text); font: 500 19px/1.25 var(--j-display); letter-spacing: -.015em; }
.ink-proscons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ink-proscons li { position: relative; margin: 0 !important; padding-left: 28px; font-size: 16px; line-height: 1.55; color: var(--j-text-2); }
.ink-proscons li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--dot-bg) var(--dot) center / 66% no-repeat; }
.ink-proscons__col--pros li { --dot-bg: rgba(207, 168, 255, .18); --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfa8ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ink-proscons__col--cons li { --dot-bg: rgba(255, 255, 255, .07); --dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3adbd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* FAQ */
.ink-faq { margin-top: 3em !important; }
.ink-faq h2 { margin: 0 0 18px !important; }
.ink-faq__item { border-bottom: 1px solid var(--j-line); }
.ink-faq__item:first-of-type { border-top: 1px solid var(--j-line); }
.ink-faq__item summary { position: relative; display: block; padding: 20px 48px 20px 0; color: var(--j-text); font: 500 18px/1.4 var(--j-display); letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .2s; }
.ink-faq__item summary::-webkit-details-marker { display: none; }
.ink-faq__item summary:hover { color: var(--j-lilac); }
.ink-faq__item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 1px solid var(--j-line-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfcad6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--j-ease), background-color .2s; }
.ink-faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--j-lilac-wash); }
.ink-faq__answer { padding: 0 48px 22px 0; }
.ink-faq__answer p { margin: 0; color: var(--j-text-2); font-size: 16.5px; line-height: 1.7; }
.ink-faq__item[open] .ink-faq__answer { animation: journal-reveal .4s var(--j-ease); }

/* in-article CTA */
.ink-cta { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 40px); border-radius: 24px; color: #160c2a; background: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/images/hero-lilac.png") center / cover, linear-gradient(135deg, #efe4ff, #d9c4ff); box-shadow: 0 30px 80px -40px rgba(176, 124, 255, .55); }
.ink-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(246, 239, 255, .92) 30%, rgba(246, 239, 255, .35)); pointer-events: none; }
.ink-cta > * { position: relative; }
.ink-cta__eyebrow { margin: 0 0 10px; color: #5b2fa6; font: 600 12px/1 var(--j-body); letter-spacing: .12em; text-transform: uppercase; }
.ink-cta__title { margin: 0; max-width: 20ch; color: #120a22; font: 500 clamp(26px, 3vw, 34px)/1.08 var(--j-display); letter-spacing: -.035em; text-wrap: balance; }
.ink-cta__text { margin: 12px 0 0; max-width: 46ch; color: #3b2d55; font-size: 16.5px; line-height: 1.6; }
.ink-cta__text a { color: #120a22 !important; }
.ink-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

/* buttons inside content */
.ink-button-row { margin-block: 1.6em !important; }
.ink-button { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--j-body); text-decoration: none !important; transition: transform .2s var(--j-ease), background .2s, border-color .2s; }
.ink-button:hover { transform: translateY(-1px); }
.ink-button--primary { background: var(--j-text); color: #0b0b0e !important; }
.ink-cta .ink-button--primary { background: #0b0b0e; color: #fff !important; }
.ink-button--secondary, .ink-button--outline { border: 1px solid var(--j-line-strong); color: var(--j-text) !important; }
.ink-cta .ink-button--secondary { border-color: rgba(18, 10, 34, .18); color: #120a22 !important; background: rgba(255, 255, 255, .5); }

/* embeds */
.ink-embed__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: 0 0 0 1px var(--j-line-strong); }
.ink-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ink-embed__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--j-surface); box-shadow: inset 0 0 0 1px var(--j-line-strong); text-decoration: none !important; }
.ink-embed__link span { color: var(--j-text); font-weight: 500; }
.ink-embed__link small { color: var(--j-muted); }

/* code */
.ink-code { position: relative; overflow: hidden; border-radius: 16px; background: #0f0e13; box-shadow: inset 0 0 0 1px var(--j-line-strong); }
.ink-code__label { display: flex; align-items: center; min-height: 40px; padding: 0 16px; border-bottom: 1px solid var(--j-line); color: var(--j-muted); font: 500 12.5px/1 var(--j-mono); }
.ink-code pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: #e9e3f2; font: 14px/1.7 var(--j-mono); tab-size: 2; }
.ink-code pre code { padding: 0; background: none; color: inherit; font: inherit; }
.ink-code__copy { position: absolute; top: 6px; right: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--j-line-strong); border-radius: 8px; background: var(--j-surface-2); color: var(--j-text-2); font: 500 12px var(--j-body); cursor: pointer; opacity: 0; transition: opacity .2s; }
.ink-code:hover .ink-code__copy, .ink-code__copy:focus-visible { opacity: 1; }

/* article footer */
.ink-article__footer { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--j-line); }
.ink-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ink-tags .ink-chip { color: var(--j-text-2) !important; border-color: var(--j-line-strong); background: transparent; }
.ink-tags .ink-chip::before { content: "#"; margin-right: 2px; color: var(--j-muted); }
.ink-author-box { display: flex; gap: 20px; padding: 24px; border-radius: var(--j-radius); background: var(--j-surface); box-shadow: inset 0 0 0 1px var(--j-line); }
.ink-author-box .ink-avatar { --ink-avatar-size: 64px; width: 64px; height: 64px; }
.ink-author-box p { margin: 0; }
.ink-author-box__name { margin-top: 4px !important; font: 500 20px/1.25 var(--j-display); letter-spacing: -.015em; }
.ink-author-box__name a { color: var(--j-text); text-decoration: none; }
.ink-author-box__name a:hover { color: var(--j-lilac); }
.ink-author-box__role { color: var(--j-muted); font-size: 14px; }
.ink-author-box__bio { margin-top: 10px !important; color: var(--j-text-2); font-size: 15.5px; line-height: 1.65; }
.ink-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ink-profile-links__link { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--j-line-strong); border-radius: 999px; color: var(--j-text-2) !important; font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s; }
.ink-profile-links__link:hover { color: var(--j-lilac) !important; border-color: rgba(207, 168, 255, .5); }

/* related + comments */
.journal-related { margin-top: clamp(80px, 10vw, 128px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--j-line); }
.journal-related:not(:has(.ink-post-card)) { display: none; }
.journal-comments:has(.ink-region-empty), .journal-comments:empty { display: none; }
.journal-comments { max-width: var(--j-measure); margin: 64px auto 0; }
.ink-region-comments { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.ink-comment { padding: 18px 20px; border-radius: 16px; background: var(--j-surface); }
.ink-comment-author { margin: 0 0 6px; color: var(--j-text); font-weight: 600; }

/* ---------- contributor page ---------- */
.journal-author-crumbs { margin-bottom: 8px; }
.ink-author-profile { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 36px); padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: radial-gradient(90% 120% at 100% 0%, rgba(143, 184, 255, .12), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(176, 124, 255, .14), transparent 60%), var(--j-surface); box-shadow: inset 0 0 0 1px var(--j-line); }
.ink-author-profile .ink-avatar { --ink-avatar-size: 112px; width: 112px; height: 112px; box-shadow: 0 0 0 4px var(--j-bg), 0 0 0 5px rgba(207, 168, 255, .35); }
.ink-author-profile__name { margin: 6px 0 0; font: 500 clamp(34px, 4.6vw, 56px)/1.02 var(--j-display); letter-spacing: -.045em; }
.ink-author-profile__role { margin: 10px 0 0; color: var(--j-lilac); font-weight: 500; }
.ink-author-profile__bio { max-width: 62ch; margin: 16px 0 0; color: var(--j-text-2); font-size: 17px; line-height: 1.65; }
.ink-author-profile__count { margin: 18px 0 0; color: var(--j-muted); font-size: 14px; }
.journal-author-stories { margin-top: clamp(56px, 7vw, 88px); }

/* ---------- closing CTA band ---------- */
.journal-cta { padding: 0 var(--j-gutter) clamp(64px, 8vw, 104px); }
.journal-cta__inner { position: relative; overflow: hidden; width: min(1240px, 100%); margin-inline: auto; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 80px); border-radius: 32px; color: #150b28; background: url("/theme-assets/github-1-0b1a7899db66fb53d65f7393b360c088fc88101f/images/hero-lilac.png") center 40% / cover, #e9dcff; }
.journal-cta__inner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(244, 236, 255, .9) 25%, rgba(244, 236, 255, .2) 85%); }
.journal-cta__inner > * { position: relative; }
.journal-cta h2 { margin: 16px 0 0; max-width: 16ch; color: #120a22; font: 500 clamp(34px, 4.6vw, 60px)/1.02 var(--j-display); letter-spacing: -.045em; text-wrap: balance; }
.journal-cta__inner > p:not(.journal-eyebrow):not(.journal-cta__actions) { max-width: 46ch; margin: 18px 0 0; color: #3b2d55; font-size: 18px; line-height: 1.6; }
.journal-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }

/* ---------- motion ---------- */
@keyframes journal-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .journal-enhanced .ink-post-card, .journal-enhanced .journal-hero > *, .journal-enhanced .ink-article__header, .journal-enhanced .ink-article__cover { animation: journal-rise .9s var(--j-ease) both; }
  .journal-enhanced .ink-region-posts > :nth-child(2) { animation-delay: .06s; }
  .journal-enhanced .ink-region-posts > :nth-child(3) { animation-delay: .12s; }
  .journal-enhanced .ink-region-posts > :nth-child(4) { animation-delay: .18s; }
  .journal-enhanced .journal-hero > :nth-child(2), .journal-enhanced .ink-article__cover { animation-delay: .1s; }
  @keyframes journal-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .ruut-journal *, .ruut-journal *::before, .ruut-journal *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ink-article__layout { grid-template-columns: minmax(0, 1fr); max-width: var(--j-measure); margin-inline: auto; }
  .ink-article__aside, .ink-article__main { grid-column: 1; }
  .ink-article__aside--empty { display: none; }
  .ink-toc { position: static; max-height: none; padding: 16px 18px; border-radius: 16px; background: var(--j-surface); box-shadow: inset 0 0 0 1px var(--j-line); }
  .journal-enhanced .ink-toc .ink-toc__title { display: none; }
  .journal-enhanced .ink-toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; color: var(--j-text); font: 500 15px var(--j-body); cursor: pointer; }
  .journal-enhanced .ink-toc__toggle::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--j-ease); }
  .journal-enhanced .ink-toc[data-open="true"] .ink-toc__toggle::after { transform: rotate(-135deg); }
  .journal-enhanced .ink-toc ol { display: none; margin-top: 12px; }
  .journal-enhanced .ink-toc[data-open="true"] ol { display: block; }
  .ink-article__header, .ink-article__cover { max-width: var(--j-measure); }
  .ink-article__header { max-width: 880px; }
  .ink-prose > .ink-figure--wide, .ink-prose > .ink-table { margin-inline: 0 !important; }
}
@media (max-width: 980px) {
  .ink-region-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ink-region-posts--feature > .ink-post-card--featured { grid-template-columns: 1fr; }
  .journal-hero { grid-template-columns: 1fr; align-items: start; }
  .journal-search { max-width: 520px; }
}
@media (max-width: 640px) {
  .ruut-journal { font-size: 15px; }
  .ink-region-posts { grid-template-columns: 1fr; }
  .journal-toolbar { top: 68px; }
  .ink-prose { font-size: 17px; }
  .ink-article__meta { gap: 16px 24px; }
  .ink-share { margin-left: 0; width: 100%; }
  .ink-stats__grid { grid-template-columns: 1fr 1fr; }
  .ink-stats[data-count="1"] .ink-stats__grid, .ink-stats[data-count="3"] .ink-stats__grid { grid-template-columns: 1fr; }
  .ink-proscons { grid-template-columns: 1fr; }
  .ink-author-box, .ink-author-profile { flex-direction: column; }
  .ink-callout { padding-left: 48px; }
  .ink-table th, .ink-table td { padding: 10px 12px 10px 0; }
  .journal-search kbd { display: none; }
}
.ink-table__scroll.is-scrollable:not(.is-scrolled-end) { box-shadow: inset -24px 0 24px -24px rgba(0, 0, 0, .9); }
.ruut-journal .ruut-navbar { background: rgba(11, 11, 14, .82); }
.ink-stat { container-type: inline-size; }
.ink-stat__value { font-size: clamp(24px, 17cqi, 44px); white-space: nowrap; }
@media (max-width: 640px) {
  .ink-table[data-columns="2"] table, .ink-table[data-columns="3"] table { min-width: 0; font-size: 14px; }
  .ink-table[data-columns="3"] th, .ink-table[data-columns="3"] td { padding: 10px 10px 10px 0; }
  .ink-table[data-columns="3"] thead th { font-size: 12px; white-space: normal; }
  .ink-table caption { font-size: 14.5px; }
}
