/* The landing on the home page: Playground (the game at /play/) or Minimalist (this site), drawn as an open notebook on
   a desk. Shown only when html has .ask-mode (set before paint by the head script in src/build.mjs). Uses the site's
   tokens and fonts; the notebook is sized to the screen so the whole spread and its lines always fit. */
.mode { display: none; }
.ask-mode .mode { position: fixed; inset: 0; z-index: 100; display: flex; overflow: auto; overscroll-behavior: contain; background: #efe9dc; }
:root[data-theme="dark"] .mode { background: var(--bg); }
.ask-mode body { overflow: hidden; }
.lp { --pw: min(28rem, calc((100dvh - 19rem) * 1.6), 34vw); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(0.8rem, 2.4vh, 1.4rem); width: 100%; min-height: 100%;
  padding: clamp(1rem, 3vh, 2rem) max(16px, env(safe-area-inset-right, 0px)) clamp(1rem, 3vh, 2rem) max(16px, env(safe-area-inset-left, 0px)); }
.lp-h { margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.2; text-align: center; color: var(--soft); }
.lp-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-copy { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, calc(var(--pw) * 2 + 12rem)); border-radius: 14px; background: var(--card);
  box-shadow: 0 1.2rem 2.6rem -1.4rem rgba(60, 45, 20, 0.45), 0 2px 0 rgba(60, 45, 20, 0.06); }
.lp-copy::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 7rem; margin-left: -3.5rem; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 100, 60, 0.06) 38%, rgba(120, 100, 60, 0.16) 49.5%, rgba(120, 100, 60, 0.22) 50%, rgba(120, 100, 60, 0.16) 50.5%, rgba(120, 100, 60, 0.06) 62%, transparent); }
.lp-card { display: flex; flex-direction: column; align-items: center; min-width: 0; margin: 0; padding: clamp(1.6rem, 9.6vh, 6.2rem) clamp(1.4rem, 3.4vw, 3.4rem) clamp(1.8rem, 10vh, 6.4rem);
  border: 0; background: none; font: inherit; text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; outline: none; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.lp-t { font-family: var(--hand); font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1; }
.lp-go { font-family: var(--hand); font-size: 1.15rem; line-height: 1.15; color: var(--soft); border-bottom: 1.5px solid currentColor; transition: color 0.3s; }
.lp-pol { display: block; width: var(--pw); max-width: 100%; margin-top: clamp(1.4rem, 5vh, 3rem); padding: 0.6rem; background: #fff; box-shadow: 0 0.5rem 1.2rem -0.5rem rgba(0, 0, 0, 0.3);
  rotate: -2.5deg; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.lp-min .lp-pol { rotate: 2deg; }
.lp-pol img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.lp-x { margin-top: clamp(1.4rem, 4.4vh, 2.6rem); font-family: var(--serif); font-size: 0.98rem; line-height: 1.5; text-align: center; color: var(--soft); }
.lp-load { display: none; }
.lp-card.on .lp-pol, .lp-card:focus-visible .lp-pol { transform: translateY(-0.6rem) scale(1.03); }
.lp-card.on .lp-go, .lp-card:focus-visible .lp-go { color: var(--accent-ink); }
.lp-note { margin: 0; font-family: var(--serif); font-size: 0.92rem; color: var(--faint); }
.lp-h, .lp-copy, .lp-note { animation: lp-in 0.9s cubic-bezier(.2, .7, .2, 1) both; }
.lp-copy { animation-delay: 0.1s; } .lp-note { animation-delay: 0.25s; }
@keyframes lp-in { from { opacity: 0; transform: translateY(0.6rem); } }
@media (max-width: 760px) {
  .lp { --pw: min(19rem, 100%); justify-content: flex-start; }
  .lp-copy { grid-template-columns: 1fr; }
  .lp-copy::before { display: none; }
  .lp-play { border-bottom: 1.5px dashed rgba(60, 45, 20, 0.2); }
}
@media (prefers-reduced-motion: reduce) { .lp-h, .lp-copy, .lp-note { animation: none; } .lp-pol { transition: none; } }
