/* Shared base for the Cryo hero prototypes. One light world: quiet neutrals, the work carries colour. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #5a5a57;   /* body secondary: 6.4:1 on --bg */
  --ink-3: #8b8b87;   /* large text / greyed headline words only: 3.3:1 on --bg */
  --line: #e2e2de;
  --radius: 16px;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* exponential out */
  --shadow-1: 0 1px 2px rgba(20, 20, 20, 0.06), 0 6px 20px rgba(20, 20, 20, 0.06);
  --shadow-2: 0 2px 6px rgba(20, 20, 20, 0.08), 0 24px 60px rgba(20, 20, 20, 0.12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  scrollbar-color: #c8c8c3 transparent; scrollbar-width: thin;
}
body { min-height: 100svh; overflow-x: hidden; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: feedback on press, not on release */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font: 500 15px/1 var(--font); text-decoration: none;
  background: var(--ink); color: #fff;
  transition: transform 120ms ease-out, background-color 200ms ease-out;
}
.btn:hover { background: #2a2a2a; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.btn.ghost:hover { background: #fafaf8; }

/* Review helper: link back to the gallery (prototype only) */
.proto-back {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  font: 500 12px/1 var(--font); color: var(--ink-2); text-decoration: none;
  padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* Placeholders that Cryo must confirm (rendered by rich() from [[...]]) */
.tbc { background: #fff1b8; box-shadow: 0 0 0 2px #fff1b8; border-radius: 3px; color: inherit; cursor: help; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Cross-document page transitions (Chromium): a soft fade + blur between pages of one site */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms cubic-bezier(0.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 520ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: scale(0.99); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .proto-back { background: #fff; backdrop-filter: none; }
}
