/* Lens emulator. Uses the blog's tokens (--paper, --ink, --muted, --hairline, --sunk, --clay, --serif, --mono, --u, --wide). */
.le {
  width: min(var(--wide, 62rem), 100vw - 2 * var(--u, 0.5rem) * 3);
  margin: calc(var(--u, .5rem) * 3) 0 calc(var(--u, .5rem) * 5) 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
}
.le-fallback { display: block; margin: 0; }
.le-fallback img { display: block; width: 100%; height: auto; }
.le-fallback figcaption, .le-cap { font-size: var(--small, .82rem); color: var(--muted, #6b6a64); margin-top: calc(var(--u, .5rem) * 1); line-height: 1.45; }
.le.le-ready .le-fallback { display: none; }
.le-app { display: none; }
.le.le-ready .le-app { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 1fr); gap: calc(var(--u) * 3); align-items: start; }
.le-head { margin-bottom: calc(var(--u) * 1.5); }
.le-kicker { font-size: var(--small); color: var(--clay); letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.le-title { font-size: var(--lead); line-height: 1.3; }
.le-stage { position: relative; background: #111; border-radius: 2px; overflow: hidden; touch-action: none; aspect-ratio: 1 / 1; }
.le-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.le-reticle { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--clay); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.le-reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: var(--clay); border-radius: 50%; }
.le-chip { position: absolute; left: 8px; top: 8px; font: 11px/1 var(--mono); color: #eee; background: rgba(0,0,0,.55); padding: 5px 7px; border-radius: 2px; pointer-events: none; }
.le-under { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: var(--small); color: var(--muted); }
.le-focus-out { color: var(--ink); }
.le-panel { display: flex; flex-direction: column; gap: calc(var(--u) * 2); font-size: var(--small); }
.le-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.le-group legend, .le-label { font-size: var(--small); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; padding: 0; }
.le-row { display: flex; flex-wrap: wrap; gap: 4px; }
.le-btn { font: inherit; font-size: var(--small); color: var(--ink); background: var(--paper); border: 1px solid var(--hairline); padding: 5px 9px; border-radius: 2px; cursor: pointer; line-height: 1.25; text-align: left; }
.le-btn small { display: block; color: var(--muted); font-size: .72rem; }
.le-btn[aria-pressed="true"] { border-color: var(--clay); background: rgba(186, 99, 72, .09); color: var(--clay); }
.le-btn[aria-pressed="true"] small { color: var(--clay); }
.le-btn:disabled { opacity: .35; cursor: not-allowed; }
.le-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.le-range { width: 100%; accent-color: var(--clay); }
.le-slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; }
.le-slider .le-range { grid-column: 1 / -1; }
.le-file { display: inline-block; }
.le-file input { font-size: var(--small); max-width: 100%; }
.le-status { min-height: 1.2em; color: var(--clay); }
@media (max-width: 760px) {
  .le.le-ready .le-app { grid-template-columns: 1fr; }
}
