/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --yellow: #F8CC37;
  --red: #F85137;
  --muted: #6b6b6b;
}

/* Registered so the flicker can animate them (the logo symbol reads these). */
@property --yo   { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --ro   { syntax: '<number>'; inherits: true; initial-value: 1; }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- logo ---------- */
.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
}

.logo {
  display: block;
  width: min(90vw, 1100px);
  height: auto;
  aspect-ratio: 2477 / 300;
  overflow: visible;
  --ink: #000;
  --echo: var(--paper);
  --c1: var(--yellow);
  --c2: var(--red);
}

/* 1 — Flicker: the coloured echoes stutter like an old neon sign */
.fx-flicker {
  /* blur lengths are in the logo's own (scaled ×24) units: 1 ≈ 10 screen px */
  --yg: drop-shadow(0 0 calc(.3px + .4px * var(--yo)) rgb(248 204 55 / calc(var(--yo) * .9)));
  --rg: drop-shadow(0 0 calc(.3px + .4px * var(--ro)) rgb(248 81 55 / calc(var(--ro) * .8)));
  animation: flicker-y 5.3s linear infinite, flicker-r 3.7s linear infinite;
}
@keyframes flicker-y {
  0%, 12%, 14.5%, 41%, 43%, 44.5%, 100% { --yo: 1; }
  13%, 42%, 44% { --yo: .08; }
  70% { --yo: .95; }
  72% { --yo: .3; }
  73% { --yo: 1; }
}
@keyframes flicker-r {
  0%, 30%, 32%, 33.5%, 79%, 81%, 100% { --ro: 1; }
  31%, 33%, 80% { --ro: .05; }
}

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none !important; }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 24px 16px 32px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 48px;
}
.soon {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: none;            /* the "details to follow" label replaces the pointer */
  padding: 8px 2px;
  position: relative;
  outline: none;
}
.soon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--red);
  box-shadow: 3px 3px 0 var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.soon:hover::after,
.soon:focus-visible::after { transform: scaleX(1); }

/* The label that follows the mouse (or sits above a focused / tapped link) */
.dtf-tip {
  position: fixed;
  left: 0; top: 0;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--ink);
  color: #fff;
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--red), 6px 6px 0 var(--yellow);
  opacity: 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(.9);
  transition: opacity .15s ease, transform .15s ease;
}
.dtf-tip.is-on {
  opacity: 1;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .dtf-tip { transition: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
