/* Shared author-facing effects for Classic DICK and New DICK articles. */
.markdown-body .expectation,
.nd-article-body .expectation {
    display: grid;
    width: 100%;
    min-height: clamp(7rem, 18vw, 11rem);
    margin: 1.8em 0;
    padding: clamp(1.5rem, 5vw, 3rem);
    place-items: center;
    overflow: hidden;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(1.55rem, 5vw, 3.4rem);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: .16em;
    line-height: 1;
    text-align: center;
    text-indent: .16em;
    user-select: none;
    -webkit-user-select: none;
}

.markdown-body .expectation.is-ticking,
.nd-article-body .expectation.is-ticking {
    animation: dick-expectation-beat .72s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes dick-expectation-beat {
    0% { opacity: .38; transform: translateY(.16em); filter: blur(3px); }
    34% { opacity: 1; transform: translateY(0); filter: blur(0); }
    68% { opacity: .82; }
    100% { opacity: 1; }
}

.markdown-body .another,
.nd-article-body .another {
    display: inline;
    color: inherit;
    cursor: pointer;
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-thickness: .08em;
    text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
    text-underline-offset: .22em;
    transition: opacity .12s ease, transform .2s cubic-bezier(.16, 1, .3, 1), text-decoration-color .2s ease;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.markdown-body .another:hover,
.markdown-body .another:focus-visible,
.markdown-body .another[aria-pressed="true"],
.nd-article-body .another:hover,
.nd-article-body .another:focus-visible,
.nd-article-body .another[aria-pressed="true"] {
    text-decoration-color: currentColor;
}

.markdown-body .another.is-switching,
.nd-article-body .another.is-switching {
    opacity: 0;
    transform: translateY(.14em);
}

.markdown-body .another:focus-visible,
.nd-article-body .another:focus-visible {
    border-radius: 2px;
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

[data-frozen="true"] .expectation.is-ticking,
[data-frozen="true"] .another {
    animation: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .markdown-body .expectation.is-ticking,
    .nd-article-body .expectation.is-ticking { animation: none; }
    .markdown-body .another,
    .nd-article-body .another { transition: none; }
}
