/* One thing he has learned, as a card in the deck. Its place in the deck is its `data-pos`. */
.memo {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 36px;
    border-radius: 18px 18px 0 0;
    background: var(--color-surface);
    box-shadow: 0 0 0 1px rgb(20 20 20 / 0.05), 0 -10px 24px -18px rgb(20 20 20 / 0.3);
    transform-origin: 50% 0;
    transition: transform 0.65s var(--ease-out), opacity 0.4s ease;
}

.memo[data-pos="0"] {
    z-index: 3;
}

.memo[data-pos="1"] {
    z-index: 2;
    transform: translateY(-13px) scale(0.955);
}

.memo[data-pos="2"] {
    z-index: 1;
    transform: translateY(-25px) scale(0.91);
}

.memo[data-pos="3"] {
    z-index: 0;
    opacity: 0;
    transform: translateY(-34px) scale(0.865);
}

.memo[data-pos="out"] {
    z-index: 4;
    transform: translateY(104%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.8, 0.4);
}

.memo__kind {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
}

.memo__kind--skill {
    background: var(--color-primary-container);
}

.memo__kind--pref {
    background: var(--color-mint);
}

.memo__kind--memory {
    background: var(--color-peach);
}

.memo__kind-icon {
    width: 14px;
    height: 14px;
    stroke-width: 1.75;
}

.memo__title {
    margin: 8px 0 0;
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.memo__text {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-on-surface-muted);
}

.memo__steps {
    display: grid;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: var(--color-on-surface-muted);
}

.memo__step {
    display: flex;
    align-items: center;
    gap: 7px;
}

.memo__step-icon {
    flex: none;
    width: 15px;
    height: 15px;
    stroke-width: 1.75;
    color: var(--color-on-surface);
}

.memo__source {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: auto 0 0;
    padding-top: 8px;
    font-size: 13px;
    color: var(--color-on-surface-muted);
}

.memo__disc {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-on-primary);
}

.memo__disc--clay {
    background: #c8674f;
}

.memo__disc--steel {
    background: #6f8fae;
}

.memo__disc--plum {
    background: #8d7fae;
}

.memo__disc--sand {
    background: #b09060;
}

.memo__disc--sage {
    background: #5f9e8a;
}

.memo__disc--mauve {
    background: #a77f9c;
}
