/* Slant research page: a copy of the live case study (../slant/) with two
   changes. 1. The Try it screenshot sits at a slight slant and settles
   straight on hover. 2. The All Thirty-Six Lenses block as a tilted wall of
   glyphs (page.js). */

:root { --settle: cubic-bezier(0.34, 1.32, 0.5, 1); }

/* 1. Try it ---------------------------------------------------------------- */
.try-shot .shot {
    rotate: -1.5deg;
    transition: filter 240ms ease, rotate 0.8s var(--settle);
}
.try-shot:hover .shot,
.try-shot:focus-visible .shot { rotate: 0deg; }

/* 2. Lenses: a tilted wall -------------------------------------------------- */
/* The pills stay in the HTML as the source (and the no-JS fallback); page.js
   hides them once the wall has rendered. */
.lx-on .slant-lenses { display: none; }

.lx-readout { margin-bottom: 1.5rem; font-family: 'DM Sans', system-ui, sans-serif; }
.lx-readout b { display: flex; align-items: center; gap: 0.5em; font-size: 1.5rem; font-weight: 600; color: #212529; }
.lx-readout b svg { width: 1em; height: 1em; color: var(--ink); }
.lx-readout p { margin: 0.4rem 0 0; font-size: 1.25rem; line-height: 1.45; color: #495057; }
/* Wide screens (75em up, the site's -xl step): the definition always on one
   line, sized from the wall's width so the longest (First Principles Thinking,
   about 74 em-widths of rendered text) still fits; 1.25rem wherever there is
   room, never under ~14.5px. Narrower, it wraps, and page.js holds the readout
   at its tallest so the grid below never moves. */
.lx-wall { container-type: inline-size; }
@media screen and (min-width: 75em) {
    .lx-readout p { white-space: nowrap; font-size: min(1.25rem, 1.32cqi); }
}

.lx-wall .lx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media screen and (min-width: 30em) { .lx-wall .lx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media screen and (min-width: 60em) { .lx-wall .lx-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.lx-wall .lx-grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 0.25rem 1rem;
    border: 0;
    border-radius: 1rem;
    background: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: #495057;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.lx-wall .lx-grid button svg {
    width: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
    height: auto;
    aspect-ratio: 1;
    color: var(--ink);
    rotate: var(--a);
    transition: rotate 0.7s var(--settle), scale 0.7s var(--settle);
}
.lx-wall .lx-grid button:hover,
.lx-wall .lx-grid button[aria-pressed='true'] { background: #f8f9fa; color: #212529; }
.lx-wall .lx-grid button:hover svg,
.lx-wall .lx-grid button:focus-visible svg,
.lx-wall .lx-grid button[aria-pressed='true'] svg { rotate: 0deg; scale: 1.15; }
.lx-wall .lx-grid button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
    .try-shot .shot, .lx-wall button svg { transition: none; }
}
