/* Articles: the site's dark violet system, with a long-reading column. */
.cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.post__cat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--v-soft); }
.draft { padding: 1px 9px; border-radius: 99px; background: #ffd24a; color: #201400; font-size: 12px; font-weight: 500; }

/* The list: hairlines and type */
.entries { padding: clamp(8px, 2vw, 24px) 0 clamp(72px, 8vw, 120px); }
.blog__empty { padding: 48px 0; font-size: 20px; color: var(--body); }
.entry { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 8px 32px; align-items: baseline; padding: 28px 0; border-top: 1px solid rgba(200, 150, 255, .2); }
.entries__list { border-bottom: 1px solid rgba(200, 150, 255, .2); }
.entries__list:not(:has(.entry:not([hidden]))) { border-bottom: 0; }
.entry[hidden], .filters[hidden], .blog__empty[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.filters__q { flex: 1 1 260px; max-width: 360px; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(200, 150, 255, .4); border-radius: 0; background: none; color: var(--ink); font: 400 16px/1.4 var(--font); outline: 0; transition: border-color .2s; }
.filters__q:focus { border-color: var(--v-soft); }
.filters__q::placeholder { color: var(--muted); opacity: 1; }
.filters__cats { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.filters__cats button { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: 400 15px var(--font); cursor: pointer; transition: color .2s, border-color .2s; }
.filters__cats button:hover { color: var(--ink); }
.filters__cats button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--v-soft); }
.entry time { font-size: 14px; color: var(--muted); }
.entry h2 { margin: 0; font: 500 clamp(23px, 2.3vw, 32px)/1.15 var(--display); letter-spacing: -.025em; color: var(--ink); transition: color .25s, transform .5s var(--ease-out); }
.entry p { max-width: 62ch; margin-top: 8px; font-size: 16px; color: var(--body); }
.entry__cat { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--v-soft); }
.entry:hover h2 { color: var(--v-soft); transform: translateX(8px); }

/* The article's header */
.art-hero { position: relative; padding: calc(var(--nav) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.art-hero > .cover { position: absolute; inset: 0; opacity: .85; }
.art-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, var(--bg)), linear-gradient(90deg, rgba(7, 4, 15, .86), rgba(7, 4, 15, .5) 50%, transparent 72%); }
.art-hero--list { padding-bottom: clamp(56px, 7vw, 96px); }
.art-hero--list h1 { font-size: clamp(52px, 8vw, 112px); line-height: 1; letter-spacing: -.05em; text-shadow: 0 0 70px rgba(138, 44, 255, .75); }
.art-hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.art-hero h1 { max-width: 20ch; font: 600 clamp(36px, 5.4vw, 72px)/1.05 var(--display); letter-spacing: -.04em; color: var(--ink); text-shadow: 0 2px 40px rgba(7, 4, 15, .8); }
.art-hero__sum { max-width: 62ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); }
.back { margin-bottom: 12px; font-size: 14px; color: var(--ink); opacity: .85; transition: opacity .2s, transform .3s var(--ease-out); }
.back:hover { opacity: 1; transform: translateX(-3px); }

/* Summary beside the reading column */
.art { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(32px, 5vw, 72px); padding-top: clamp(24px, 3vw, 40px); }
.toc { position: sticky; top: calc(var(--nav) + 32px); align-self: start; font-size: 14px; }
.toc p { margin-bottom: 10px; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid rgba(200, 150, 255, .22); }
.toc a { display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; color: var(--body); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-here { color: var(--ink); border-left-color: var(--v-soft); }

/* Text made for long reading */
.prose { min-width: 0; font-size: 18px; line-height: 1.75; color: #e3dcf0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--nav) + 24px); color: var(--ink); font-family: var(--display); letter-spacing: -.025em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.15; font-weight: 600; }
.prose h3 { margin-top: 1.8em; font-size: 22px; line-height: 1.25; font-weight: 600; }
.prose a { color: var(--v-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(205, 166, 255, .5); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: #fff; font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose img.img--petit { width: 500px; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--v-soft); }
.prose img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 14px; }
.prose hr { margin-block: 2.4em; border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--v-soft), transparent); }
.prose blockquote { margin-inline: 0; padding: 18px 22px; border-left: 3px solid var(--v); border-radius: 0 14px 14px 0; background: rgba(122, 31, 255, .13); color: var(--ink); }
.prose blockquote > :first-child { margin-top: 0; }
.prose blockquote > * + * { margin-top: .8em; }
.prose :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: rgba(160, 100, 255, .17); font: 400 .88em "JetBrains Mono", Consolas, monospace; color: #e7d6ff; overflow-wrap: anywhere; }
.code { margin-inline: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(200, 150, 255, .24); background: #05030b; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 4px 8px 4px 16px; border-bottom: 1px solid rgba(200, 150, 255, .16); font: 400 13px "JetBrains Mono", Consolas, monospace; color: var(--muted); }
.code__copy { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(160, 100, 255, .14); color: var(--ink); font: 400 13px var(--font); cursor: pointer; transition: background-color .2s; }
.code__copy:hover { background: rgba(160, 100, 255, .3); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 14px/1.65 "JetBrains Mono", Consolas, monospace; color: #e9e3f5; }
.table { overflow-x: auto; border: 1px solid rgba(200, 150, 255, .24); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table th { background: rgba(122, 31, 255, .18); color: var(--ink); font-weight: 500; text-align: left; }
.table th, .table td { padding: 11px 14px; }
.table tr + tr td, .table tbody tr:first-child td { border-top: 1px solid rgba(200, 150, 255, .16); }

/* End of the article */
.art-end { max-width: 1032px; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.art-cta { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); background: radial-gradient(70% 130% at 100% 0, rgba(138, 44, 255, .55), transparent 70%), var(--bg-2); }
.art-cta h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); }
.art-cta p { margin: 8px 0 22px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.pager a { display: block; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(200, 150, 255, .22); color: var(--ink); font: 500 17px/1.3 var(--display); transition: border-color .25s, transform .3s var(--ease); }
.pager a:hover { border-color: var(--v-soft); transform: translateY(-2px); }
.pager span { display: block; margin-bottom: 4px; font: 400 13px var(--font); color: var(--muted); }
.pager__next { text-align: right; }

@media (max-width: 1023px) {
  .filters__q { max-width: none; flex-basis: 100%; }
  .filters__cats { margin-left: 0; }
  .entry { grid-template-columns: minmax(0, 1fr) auto; }
  .entry__main { grid-column: 1 / -1; grid-row: 2; }
  .art-hero::after { background: linear-gradient(180deg, transparent 62%, var(--bg)), linear-gradient(0deg, rgba(7, 4, 15, .62), rgba(7, 4, 15, .62)); }
  .art { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; padding: 18px 20px; border: 1px solid rgba(200, 150, 255, .22); border-radius: 16px; }
  .art-end { max-width: 720px; }
}
@media (max-width: 639px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  .pager__next { text-align: left; }
}
