/* Crushoo: základ (barvy, typografie, tlačítka, hlavička, patička) */

:root {
  --cream: #FFF4E9;
  --cream-2: #FFEADB;
  --peach: #FFDCC8;
  --blush: #FFCAD7;
  --butter: #FFD45C;
  --tangerine: #FF8B3D;
  --crush: #FF3F73;
  --crush-deep: #D3104D;
  --ink: #2A0E1F;
  --ink-2: #5E3B4D;
  --night: #22091B;
  --night-2: #3A1030;
  --on-night: #FFEDE0;
  --on-night-2: #EBC9D3;
  --error: #A1002F;

  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --radius: 20px;
  --radius-lg: 30px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --maxw: 1180px;
  --header-h: 68px;
  --focus: var(--crush-deep);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* jemné zrno přes celou stránku */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.05 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* Fraunces: nejtučnější řez s měkkými tvary (osa SOFT) */
h1, h2, h3, .logo, .call__name, .call__timer, .spin-badge span, .ticker__track, .step__num,
.art-mic__time, .art-clock__time, .art-clock__balance b, .ticket strong, .nope__yes,
.chips__result, .footer__big, .avatar {
  font-weight: 900;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

h2 { font-size: clamp(2.15rem, 8.4vw, 3.7rem); }
h3 { font-size: 1.45rem; line-height: 1.1; }
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* viditelný focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-night { --focus: var(--butter); }

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 0 1.35em;
  border: var(--line);
  border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary {
  background: var(--crush-deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn--ghost:hover { background: var(--cream-2); }
.btn--small { min-height: 42px; padding: 0 1.05em; font-size: .9375rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--big { min-height: 58px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn .ico { transition: transform .2s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-under {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--crush);
}
.link-under:hover { text-decoration-color: var(--ink); }

.linkbtn {
  padding: 4px 0;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* sekce a nadpisy */
.section { position: relative; padding: clamp(72px, 12vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 56px); }
.section-head .lead { margin-top: 18px; }
.lead { font-size: clamp(1.0625rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.on-night .lead { color: var(--on-night-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 14px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crush-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}
.on-night .eyebrow { color: #FF7A9C; }
.eyebrow--ink { color: var(--ink); }

/* hlavička */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 244, 233, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 0 var(--ink);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -.01em;
}
.logo__o { display: inline-block; transform-origin: 50% 60%; }
.logo__o--1 { color: var(--crush-deep); animation: talk 2.4s ease-in-out infinite; }
.logo__o--2 { color: var(--tangerine); animation: talk 2.4s ease-in-out 1.2s infinite; }

.nav { display: none; }
.nav a {
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  padding: 6px 2px;
  background: linear-gradient(var(--crush), var(--crush)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s var(--ease-out);
}
.nav a:hover { background-size: 100% 2px; }

@media (min-width: 900px) {
  .nav { display: flex; gap: 30px; margin-left: auto; margin-right: 12px; }
}

/* patička */
.site-footer {
  background: var(--night);
  color: var(--on-night);
  padding: 72px 0 calc(32px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 24vw, 18rem);
  line-height: .8;
  letter-spacing: -.03em;
  color: var(--on-night);
  margin-bottom: 40px;
}
.footer__big span { color: var(--crush); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .9375rem;
  color: var(--on-night-2);
}
.footer__row .linkbtn { color: var(--on-night); }

/* odhalení při scrollu (jen s JS) */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s ease, translate .8s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

@keyframes talk {
  0%, 40%, 100% { transform: scale(1); }
  12% { transform: scale(1.14, 1.08); }
  24% { transform: scale(.96, 1.02); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
