/* חי בסרט brand: an animation studio's paint set. Five paints own whole regions; nothing grey. */

:root {
  --sky: #5fb3ec;
  --sky-pale: #d9eefb;
  --sun: #ffcc29;
  --sun-deep: #f2b705;
  --tomato: #ea412b;
  --ink: #14215c;
  --ink-soft: #2f3d7a;
  --paper: #fffefa;
  --paper-deep: #e6f3fc;
  --on-tomato: #fff8ec;
  --display: "Suez One", "Rubik", system-ui, sans-serif;
  --text: "Rubik", system-ui, sans-serif;
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--ink) var(--paper-deep); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.btn { --b: var(--sun); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .55em 1.5em; border: 0; border-radius: 999px; background: var(--b); color: var(--ink); font-family: var(--text); font-weight: 700; font-size: 1.1rem; line-height: 1.1; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 color-mix(in oklab, var(--b) 60%, var(--ink)), 0 8px 18px -10px color-mix(in oklab, var(--ink) 55%, transparent); transition: transform .25s var(--ease-pop), box-shadow .25s var(--ease-out), background-color .2s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); background: color-mix(in oklab, var(--b) 88%, white); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 color-mix(in oklab, var(--b) 60%, var(--ink)); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--sm { min-height: 40px; padding: .4em 1.2em; font-size: 1rem; }
.btn--lg { min-height: 60px; padding: .6em 2.2em; font-size: 1.3rem; }

.logo { display: inline-flex; flex-direction: column; align-items: center; font-size: 2.1rem; text-decoration: none; color: var(--ink); line-height: 1; }
.logo__word { font-family: var(--display); font-size: 1em; line-height: 1; word-spacing: .12em; }
.logo__swash { display: block; width: 4.6em; height: .55em; margin-top: .02em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 26'%3E%3Cpath d='M5 17C30 9 52 8 80 13s52 11 82 6 40-9 53-8' stroke='black' stroke-width='5.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 26'%3E%3Cpath d='M5 17C30 9 52 8 80 13s52 11 82 6 40-9 53-8' stroke='black' stroke-width='5.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.logo:hover .logo__swash { animation: swash .9s ease-in-out; }
@keyframes swash { 50% { transform: scaleY(-1); } }
.logo--light { color: var(--paper); }
