/* logger.gr's page: the logo in the middle of the screen, the company under it, in the colours of
   logo/logger-logo.html, light or dark as the device is set. */
:root {
  --page: #f3f6fa;
  --text: #141c2e;
  --muted: #586478;
  --logo-ink: #031141;
  --red: #d0302a;
  --sky: #9db4f5;
  --beacon: #2f7cf6;
  --fluo: #e6f21a;
  --cross: #031141;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1120;
    --text: #e8edf5;
    --muted: #9ca8ba;
    --logo-ink: #e8edf5;
    --red: #d9372f;
    --sky: #6f8fe0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.5 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
main {
  width: min(640px, 100%);
  padding: 48px max(24px, env(safe-area-inset-left, 0px)) 48px max(24px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 40px;
  justify-items: center;
  text-align: center;
}
h1 { margin: 0; width: 100%; font-size: 3rem; font-weight: 800; }
footer { color: var(--muted); font-size: 0.95rem; }
footer p { margin: 0; }

/* The logo's own parts, as logo/logger-logo.html draws them. */
.lg { --ink: var(--logo-ink); }
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.ln { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ink { fill: var(--ink); }
.amb-body { fill: var(--fluo); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.amb-line { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cross { fill: var(--cross); }
.sky { fill: var(--sky); }
.beacon { fill: var(--beacon); }
.ray { fill: none; stroke: var(--beacon); stroke-width: 2.4; stroke-linecap: round; }
.sign { fill: var(--red); }
.ln.er-on { stroke: #ffffff; }
.blade { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.skid { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.mast { stroke: var(--ink); stroke-width: 3; }
.tail-disc { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0.45; }

/* The drawing, each time and delay multiplied by --k, one over the speed: once, when the page opens. */
.rotor-side, .sign-g { transform-box: fill-box; transform-origin: center; }
.sign-g { transform-origin: 50% 100%; }
.play .dr { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; animation: draw calc(var(--t, 0.45s) * var(--k, 1)) linear calc(var(--d, 0s) * var(--k, 1)) forwards; }
.play .amb { animation: drive calc(0.9s * var(--k, 1)) var(--ease) calc(var(--d, 0s) * var(--k, 1)) both; }
.play .sign-g { animation: lightup calc(0.5s * var(--k, 1)) var(--ease) calc(var(--d, 0s) * var(--k, 1)) both; }
.play .heli-in { animation: land calc(1.6s * var(--k, 1)) var(--ease) both; }
.play .rotor-side { animation: whirl calc(0.16s * var(--k, 1)) linear 20; }
.play .rays, .play .beacon { animation: blink calc(0.5s * var(--k, 1)) ease-in-out calc(var(--d, 0s) * var(--k, 1)) 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drive { from { transform: translateX(-34px); opacity: 0; } }
@keyframes lightup { from { transform: scale(0.8); opacity: 0; } }
@keyframes land { from { transform: translate(-44px, -40px); opacity: 0; } }
@keyframes whirl { 50% { transform: scaleX(0.2); } }
@keyframes blink { 50% { opacity: 0.12; } }
