/* Article pages (one reading column) and the article index (genre shelves of cards). */
.post { padding: calc(var(--y-header-h) + 40px) 0 72px; }
.post .y-wrap { max-width: 760px; }
.post__crumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; font-weight: 700; color: var(--y-muted); }
.post__crumb a { color: var(--y-ink-2); text-decoration: none; }
.post__crumb a:hover { text-decoration: underline; text-decoration-color: var(--y-pink); }
.post__title { margin: 14px 0 0; font-weight: 900; font-size: clamp(1.6rem, 4.2vw, 2.35rem); line-height: 1.4; letter-spacing: -0.01em; }
.post__meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--y-muted); font-size: 0.86rem; }
.post__meta a { color: var(--y-ink); font-weight: 700; text-decoration-color: var(--y-pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tag-paid { font-size: 0.74rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--y-pink-soft); color: var(--y-ink); }
.post__cover { margin: 28px auto 0; max-width: 960px; padding-inline: 16px; }
.post__cover img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--y-shadow); }

.post__toc { margin: 32px 0 8px; background: var(--y-surface); border: 1px solid var(--y-line); border-radius: 16px; padding: 4px 18px; }
.post__toc summary { cursor: pointer; font-weight: 900; padding: 12px 0; }
.post__toc ol { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 4px; }
.post__toc li.sub { margin-left: 1em; list-style: circle; }
.post__toc a { color: var(--y-ink-2); text-decoration: none; font-size: 0.92rem; }
.post__toc a:hover { color: var(--y-ink); text-decoration: underline; text-decoration-color: var(--y-pink); }

.post__body { margin-top: 28px; font-size: 1.04rem; line-height: 2; color: var(--y-ink); overflow-wrap: anywhere; }
.post__body p { margin: 0 0 1.25em; }
.post__body h2 { margin: 2.4em 0 0.8em; padding-top: 0.9em; border-top: 2px solid var(--y-ink); font-weight: 900; font-size: 1.45rem; line-height: 1.5; }
.post__body h3 { margin: 2em 0 0.7em; padding-left: 14px; border-left: 5px solid var(--y-pink); font-weight: 900; font-size: 1.2rem; line-height: 1.55; }
.post__body h2 + h3 { margin-top: 1em; }
.post__body ul, .post__body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.post__body li { margin-bottom: 0.35em; }
.post__body li > p { margin: 0; }
.post__body strong { font-weight: 900; }
.post__body a { color: var(--y-ink); font-weight: 700; text-decoration-color: var(--y-pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__body figure { margin: 2em 0; }
.post__body figure img { width: 100%; height: auto; border-radius: 14px; background: var(--y-surface); border: 1px solid var(--y-line); }
.post__body figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--y-muted); line-height: 1.7; }
.post__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--y-line); color: var(--y-ink-2); }
.post__body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--y-line); }
.post__body pre { margin: 1.4em 0; padding: 14px 16px; overflow-x: auto; background: var(--y-surface); border: 1px solid var(--y-line); border-radius: 12px; font-size: 0.82rem; line-height: 1.7; }
.post__body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.post__body pre code { white-space: pre; }
.table-scroll { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--y-line); border-radius: 12px; background: var(--y-surface); }
.table-scroll table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 0.88rem; line-height: 1.6; }
.table-scroll th, .table-scroll td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--y-line); }
.table-scroll th { font-weight: 900; background: var(--y-bg); }
.table-scroll tr:last-child td { border-bottom: 0; }

.paywall { margin: 2.4em 0 0; padding: 26px 24px; border-radius: 20px; background: var(--y-pink-soft); display: grid; gap: 10px; justify-items: start; }
.paywall__title { margin: 0 !important; font-weight: 900; font-size: 1.1rem; }
.paywall p { margin: 0; color: var(--y-ink-2); }

.post__foot { margin-top: 48px; display: grid; gap: 28px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.post__tags li { font-size: 0.8rem; font-weight: 700; color: var(--y-ink-2); padding: 3px 12px; border-radius: 999px; background: var(--y-surface); border: 1px solid var(--y-line); }
.post__more h2 { margin: 0 0 12px; font-weight: 900; font-size: 1.15rem; }
.post__more ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--y-line); }
.post__more li { border-bottom: 1px solid var(--y-line); }
.post__more a { display: grid; gap: 2px; padding: 12px 2px; color: var(--y-ink); text-decoration: none; }
.post__more a:hover .t { text-decoration: underline; text-decoration-color: var(--y-pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__more .d { font-family: var(--y-font-latin); font-size: 0.78rem; color: var(--y-muted); }
.post__more .t { font-weight: 700; font-size: 0.95rem; line-height: 1.6; }
.post__back { justify-self: start; }

/* Article index */
.posts { padding: calc(var(--y-header-h) + 44px) 0 80px; }
.posts__title { margin: 0; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.2; }
.posts__lede { margin: 12px 0 0; color: var(--y-ink-2); max-width: 36em; }
.posts__cats { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.posts__cats a { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 16px; border-radius: 999px; background: var(--y-surface); border: 1px solid var(--y-line); color: var(--y-ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.posts__cats a span { font-family: var(--y-font-latin); color: var(--y-muted); font-size: 0.8rem; }
.posts__cats a:hover { border-color: var(--y-ink); }
.posts__cat { margin-top: 56px; }
.posts__cat h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 900; font-size: 1.5rem; }
.posts__cat h2 .rail__en { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.posts__cat > p { margin: 6px 0 0; color: var(--y-ink-2); font-size: 0.95rem; }
.cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { display: grid; gap: 6px; align-content: start; height: 100%; padding: 10px 10px 16px; border-radius: 20px; background: var(--y-surface); border: 1px solid rgba(21, 23, 28, 0.07); box-shadow: var(--y-shadow); color: var(--y-ink); text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover { transform: translateY(-3px); }
.card:active { transform: translateY(-1px) scale(0.99); }
.card__img { width: 100%; height: auto; aspect-ratio: 1280 / 670; object-fit: cover; border-radius: 12px; background: var(--y-tile); }
.card__img--capsule { object-fit: contain; }
.card__date { padding: 4px 6px 0; font-family: var(--y-font-latin); font-weight: 600; font-size: 0.78rem; color: var(--y-muted); }
.card__title { padding: 0 6px; font-weight: 900; font-size: 0.98rem; line-height: 1.6; }
.card .tag-paid { margin: 2px 6px 0; justify-self: start; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
