/* Velqu website — Creative Mist tokens (same values as VelquTheme/CreativeMist.xcassets). */
:root {
  --primary: #B4AEDB;
  --secondary: #F2F0F7;
  --canvas: #F7F7F9;
  --surface: #FFFFFF;
  --on-accent: #1D1D1F;
  --text: #1D1D1F;
  --muted: rgba(29, 29, 31, .6);
  --faint: rgba(29, 29, 31, .38);
  --border: #EAEAEA;
  --logo: #1D1D1F;
  --dot: rgba(29, 29, 31, .09);
  --ok: #3E8E5E;
  --issue: #C2563B;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #9A94C4;
    --secondary: #2C2A35;
    --canvas: #17161A;
    --surface: #222126;
    --text: #F5F5F7;
    --muted: rgba(245, 245, 247, .62);
    --faint: rgba(245, 245, 247, .38);
    --border: #323038;
    --logo: #FFFFFF;
    --dot: rgba(245, 245, 247, .07);
    --ok: #6FC08F;
    --issue: #E88B70;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.logo { color: var(--logo); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.top .mark { height: 26px; }
.top nav { display: flex; gap: 26px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
.top nav a:hover { color: var(--text); }

/* Editor-style frame: a thin box with a label above it, like a frame on the Velqu canvas. */
.frame { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.frame-label { position: absolute; left: 0; bottom: 100%; padding-bottom: 6px; font-family: var(--mono);
  font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* Selection box with handles and a size badge. */
.sel { position: relative; display: inline-block; }
.sel::before { content: ""; position: absolute; inset: -10px -14px; border: 1.5px solid var(--primary); pointer-events: none;
  animation: sel-in .7s .35s cubic-bezier(.2, .8, .2, 1) both; }
.sel i { position: absolute; width: 9px; height: 9px; background: var(--surface); border: 1.5px solid var(--primary);
  border-radius: 2px; animation: pop .35s both; }
.sel i:nth-of-type(1) { left: -18.5px; top: -14.5px; animation-delay: .8s; }
.sel i:nth-of-type(2) { right: -18.5px; top: -14.5px; animation-delay: .86s; }
.sel i:nth-of-type(3) { left: -18.5px; bottom: -14.5px; animation-delay: .92s; }
.sel i:nth-of-type(4) { right: -18.5px; bottom: -14.5px; animation-delay: .98s; }
.badge { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); padding: 2px 8px;
  border-radius: 5px; background: var(--primary); color: var(--on-accent); font-family: var(--mono); font-size: 11px;
  white-space: nowrap; letter-spacing: 0; font-weight: 500; line-height: 1.6; animation: badge-in .35s 1.1s both; }
@keyframes sel-in { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes badge-in { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }

/* Scroll reveal: site.js adds .in when the element enters the viewport; --i staggers siblings. Without JS nothing is hidden. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .3s ease;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s; }
.js .reveal.in { opacity: 1; transform: none; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px;
  font: 500 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  transition: background-color .2s ease, filter .2s ease, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--secondary); }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover { filter: brightness(.96); }
.btn:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; }

.foot { border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot .mark { height: 20px; }

/* Logo: one colour (#1D1D1F, white on dark) drawn through the SVG as a mask. Never recoloured or shadowed. */
.mark { display: block; background: var(--logo); aspect-ratio: 278.754 / 286.836;
  -webkit-mask: url(/assets/mark.svg) no-repeat center / contain; mask: url(/assets/mark.svg) no-repeat center / contain; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
