/* okralabs.eu: a moving halftone screen with the three-blade mark left empty in it,
   the okra wordmark and one line centred. One dark look, no third-party requests. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #08080A;
  --ink: #EDEDEF;
  --ink2: #8E8E96;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--void); color: var(--ink); }
body { font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; overflow: hidden; }

.stage { position: relative; height: 100%; min-height: 420px; overflow: hidden; isolation: isolate; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; }
.vignette { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0 42%, rgba(8,8,10,.5) 78%, var(--void) 100%); }
.halo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 30% 18% at 50% 50%, rgba(8,8,10,.85), rgba(8,8,10,.45) 55%, transparent 100%); }

.center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; text-align: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none; }
h1 { margin: 0; line-height: 0; }
.lockup { height: clamp(44px, 7.4vw, 80px); width: auto; max-width: 80vw; overflow: visible; }
.lockup path { fill: var(--ink); stroke: var(--ink); stroke-width: 3; stroke-opacity: 0; }
.line { margin: 0; color: var(--ink2); font-size: 16px; }

/* Draw-on, as in the app's launch animation: each part's outline is traced
   (1.3 s), then filled (0.7 s), parts 80 ms apart. halftone.js sets each
   path's exact --len; the fallback still traces and fills without it. */
.drawing path { --len: 3000; }
.drawing path { fill-opacity: 0; stroke-opacity: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: trace 1.3s cubic-bezier(.5,0,.3,1) var(--d) forwards, fill .7s cubic-bezier(.5,0,.3,1) calc(var(--d) + 1.3s) forwards; }
.lockup path:nth-child(1) { --d: 0s; }
.lockup path:nth-child(2) { --d: .08s; }
.lockup path:nth-child(3) { --d: .16s; }
.lockup path:nth-child(4) { --d: .24s; }
.lockup path:nth-child(5) { --d: .32s; }
.lockup path:nth-child(6) { --d: .40s; }
.lockup path:nth-child(7) { --d: .48s; }
.center:has(.drawing) .line { opacity: 0; animation: show .8s ease 1.8s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes show { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .drawing path { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
  .center:has(.drawing) .line { opacity: 1; }
}
