.article-library {
    --ink: #202138;
    --muted: #54576a;
    --rule: #d9dbe6;
    --accent: #5044a8;
    background: #fbfbfe;
    color: var(--ink);
    flex: 1;
}
.dark .article-library {
    --ink: #f0effa;
    --muted: #bdbdd1;
    --rule: #45465b;
    --accent: #b9afff;
    background: #191a27;
}
.library-inner {
    width: min(calc(100% - 2.5rem), 72rem);
    margin: auto;
    padding-block: clamp(2rem, 5vw, 5rem);
    overflow-wrap: anywhere;
}
.library-intro h1 {
    font: 700 clamp(3rem, 7vw, 5.5rem)/1.05 Inika, Georgia, serif;
    letter-spacing: -.05em;
    color: inherit;
    margin: 0;
}
.library-intro p {
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.125rem;
    margin: .85rem 0 2rem;
}
.library-feature, .library-story { position: relative; min-width: 0; }
.library-feature {
    background: #29264e;
    color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas: "copy cover";
}
.library-feature .library-copy {
    grid-area: copy;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}
.library-label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #c8c1ff;
    margin-bottom: 1rem;
}
.library-title { color: inherit; margin: 0; line-height: 1.2; letter-spacing: -.035em; }
.library-title a { color: inherit; text-decoration: none; }
.library-title a::after { content: ""; position: absolute; inset: 0; border-radius: .5rem; }
.library-title a:hover, .library-title a:focus-visible { color: inherit; text-decoration: underline; text-underline-offset: .14em; }
.library-title a:focus-visible::after { outline: 3px solid currentColor; outline-offset: -3px; }
.library-feature .library-title { font-size: clamp(1.65rem, 3.4vw, 3rem); }
.library-feature p { margin: 1rem 0; color: #e1deef; }
.library-cover { display: block; width: 100%; object-fit: cover; }
.library-feature .library-cover, .library-chart { grid-area: cover; height: 100%; min-height: 0; }
.library-chart {
    position: relative;
    overflow: hidden;
    background-color: #c7c0f7;
    background-image: linear-gradient(#aca4dd 1px, transparent 1px), linear-gradient(90deg, #aca4dd 1px, transparent 1px);
    background-size: 2rem 2rem;
}
.library-chart::after {
    content: "";
    position: absolute;
    inset: 12% -3% -1%;
    background: repeating-linear-gradient(90deg, #5c50a8 0 6%, transparent 6% 8%);
    clip-path: polygon(0 82%, 8% 82%, 8% 65%, 16% 65%, 16% 71%, 24% 71%, 24% 49%, 32% 49%, 32% 55%, 40% 55%, 40% 34%, 48% 34%, 48% 45%, 56% 45%, 56% 24%, 64% 24%, 64% 35%, 72% 35%, 72% 18%, 80% 18%, 80% 22%, 88% 22%, 88% 5%, 100% 5%, 100% 100%, 0 100%);
}
.library-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: .875rem; color: var(--muted); }
.library-meta span + time::before { content: "·"; margin-inline-end: .55rem; }
.library-feature .library-meta { color: #d0cbe5; margin-top: 1.4rem; }
.library-section { display: flex; gap: 1.5rem; align-items: center; margin: 3rem 0 1.5rem; }
.library-section h2 { color: inherit; font: 700 2rem/1.2 Inika, Georgia, serif; margin: 0; }
.library-section span { flex: 1; height: 1px; background: var(--rule); }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.library-story { display: flex; flex-direction: column; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.library-story .library-cover { aspect-ratio: 16/9; border-radius: .65rem; margin-bottom: 1rem; }
.library-story .library-title { font-size: 1.375rem; }
.library-story .library-title a:hover { color: var(--accent); }
.library-story .library-copy { display: flex; flex-direction: column; flex: 1; }
.library-story p { color: var(--muted); margin: .65rem 0 1rem; line-height: 1.55; }
.library-story .library-meta { margin-top: auto; }
@media (max-width: 55rem) {
    .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
    .library-feature { grid-template-columns: 1fr; grid-template-areas: "cover" "copy"; }
    .library-feature .library-cover, .library-chart { height: auto; aspect-ratio: 2.6; }
    .library-grid { grid-template-columns: 1fr; }
}
