/* intro v18 — Emigre clay: blurred photo, ECG draw, typewriter caret */

/* Blurred background photo, sharp panel sits over it */
.intro-clay [data-photo] {
    width: 66%;
    aspect-ratio: 4 / 3;
}
.intro-clay__img {
    object-fit: cover;
    filter: blur(5px) saturate(1.05);
    transform: scale(1.06);
}

/* Heartbeat / ECG line draw (stroke colour = currentColor from Tailwind text-*) */
.intro-clay__ecg-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: intro-clay-ecg 4s linear infinite;
}
@keyframes intro-clay-ecg {
    0%   { stroke-dashoffset: 1400; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

/* Typewriter caret while typing */
.intro-clay__type .is-typing {
    border-right: 2px solid currentColor;
    animation: intro-clay-caret 800ms step-end infinite;
}
@keyframes intro-clay-caret {
    50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-clay__ecg-path { animation: none; stroke-dashoffset: 0; }
}

/* FAQ v19 — bento grid (featured full-width, then 2 columns on md+) */
.hints-support__bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .hints-support__bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hints-support__cell--featured {
        grid-column: 1 / -1;
    }

    .hints-support__cell--tile {
        min-width: 0;
    }
}

.hints-support__unit--shift:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Lists: avoid d-flex on ul (markers); spacing between items */
.hints-support__answer-list {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.hints-support__answer-list li + li {
    margin-top: 0.5rem;
}

/* quote v16 — grid bookshelf (quote-grid-shelf__* — isolated from quote v12 quote-shelf__*) */

.quote-grid-shelf__art--mesh {
    background-image:
        radial-gradient(circle at 20% 30%, currentColor 0, transparent 42%),
        radial-gradient(circle at 78% 18%, currentColor 0, transparent 38%),
        radial-gradient(circle at 62% 82%, currentColor 0, transparent 45%),
        radial-gradient(circle at 12% 72%, currentColor 0, transparent 36%);
    opacity: 0.18;
}

.quote-grid-shelf__art--hatch {
    background-image: repeating-linear-gradient(
        -38deg,
        transparent,
        transparent 6px,
        currentColor 6px,
        currentColor 7px
    );
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.quote-grid-shelf__art--grain {
    background-image:
        repeating-conic-gradient(from 0deg at 50% 50%, currentColor 0deg 2deg, transparent 2deg 7deg),
        repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 4px);
    opacity: 0.08;
}

.quote-grid-shelf__ripple-pool {
    width: 28rem;
    height: 28rem;
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
    transition: transform 450ms ease, opacity 600ms ease;
    will-change: transform, opacity;
}

.quote-grid-shelf__ripple-pool.is-pulsing {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__ripple-pool {
        display: none;
    }
}

.quote-grid-shelf__bracket {
    width: 0.5rem;
}

.quote-grid-shelf__bracket--left {
    left: 1rem;
}

.quote-grid-shelf__bracket--right {
    right: 1rem;
}

.quote-grid-shelf__scroll {
    max-height: 36rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.quote-grid-shelf__parent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(8.25rem, auto));
    gap: 1rem;
}

@media (min-width: 768px) {
    .quote-grid-shelf__parent-grid {
        gap: 1.5rem;
    }
}

.quote-grid-shelf__child-grid {
    display: grid;
    grid-row: span 1;
    min-height: 100%;
    grid-template-rows: subgrid;
}

@supports not (grid-template-rows: subgrid) {
    .quote-grid-shelf__child-grid {
        grid-template-rows: auto 1fr auto;
        height: 100%;
    }
}

.quote-grid-shelf__ledge:nth-child(1) {
    top: 25%;
}

.quote-grid-shelf__ledge:nth-child(2) {
    top: 50%;
}

.quote-grid-shelf__ledge:nth-child(3) {
    top: 75%;
}

.quote-grid-shelf__ledge {
    height: 0.25rem;
}

.quote-grid-shelf__book--linocut {
    clip-path: polygon(
        0% 1.5%, 3% 0%, 8% 1%, 15% 0%, 24% 1.2%, 35% 0%, 48% 0.8%, 62% 0%, 75% 1%, 88% 0%, 96% 1.5%, 100% 0.5%,
        100% 98%, 97% 100%, 90% 98.5%, 80% 100%, 68% 98%, 55% 100%, 42% 98.5%, 28% 100%, 14% 98%, 5% 100%, 0% 97%
    );
}

.quote-grid-shelf__opening {
    font-variant: common-ligatures;
    letter-spacing: -0.04em;
}

.quote-grid-shelf__reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 550ms ease, transform 550ms ease;
    transition-delay: calc(var(--shelf-stagger, 0) * 90ms);
}

.quote-grid-shelf__reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .quote-grid-shelf__reveal {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0ms;
    }
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-grid-shelf-root [role="listitem"]:hover,
    .quote-grid-shelf-root article:hover,
    .quote-grid-shelf-root [class*="quote-grid-shelf__card"]:hover,
    .quote-grid-shelf-root .quote-grid-shelf__book:hover,
    .quote-grid-shelf-root .quote-grid-shelf__step:hover,
    .quote-grid-shelf-root .quote-grid-shelf__index-card:hover,
    .quote-grid-shelf-root .quote-grid-shelf__pill:hover,
    .quote-grid-shelf-root .quote-grid-shelf__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-grid-shelf-root [role="listitem"],
.quote-grid-shelf-root article,
.quote-grid-shelf-root [class*="quote-grid-shelf__card"],
.quote-grid-shelf-root .quote-grid-shelf__book,
.quote-grid-shelf-root .quote-grid-shelf__step,
.quote-grid-shelf-root .quote-grid-shelf__index-card,
.quote-grid-shelf-root .quote-grid-shelf__pill {
    transition: transform 200ms ease;
}

.quote-grid-shelf-root a:focus-visible,
.quote-grid-shelf-root button:focus-visible,
.quote-grid-shelf-root [tabindex="0"]:focus-visible,
.quote-grid-shelf-root input:focus-visible,
.quote-grid-shelf-root summary:focus-visible,
.quote-grid-shelf-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-grid-shelf-root button:hover,
    .quote-grid-shelf-root a:hover,
    .quote-grid-shelf-root summary:hover {
        opacity: 0.92;
    }
}

