/* Crushoo · základ: barvy, typografie, tlačítka, listy sekcí, pomocné třídy */

:root {
  --night: #1a0a20;
  --night-2: #2a1233;
  --night-3: #3b1a47;
  --cream: #fff2e6;
  --paper: #fffaf4;
  --blush: #ffdfcd;
  --ink: #25102b;
  --ink-2: #5a4360;
  --dim: #dcc6d6;
  --tang: #ff6b3d;
  --tang-deep: #c2380f;
  --peach: #ffb088;
  --pink: #ff5c93;
  --lilac: #b79dff;
  --lime: #d9ff5b;
  --danger: #b3261e;

  --candy: linear-gradient(100deg, var(--peach), var(--tang) 52%, var(--pink));
  --line-night: rgba(255, 242, 230, .16);
  --line-ink: rgba(37, 16, 43, .14);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sheet: 34px;
  --r-card: 26px;
  --gut: 20px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: var(--lime);

  /* Jemné zrno, aby tmavé plochy nepůsobily ploše. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 { font-weight: 700; font-size: clamp(1.7rem, 7.4vw, 3.05rem); line-height: 1.1; }
h3 { font-weight: 600; font-size: 1.06rem; line-height: 1.3; letter-spacing: -.015em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- pomocné ---------- */

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.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.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke-width: 1.4; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: .7em 1.1em; border-radius: 999px;
  background: var(--lime); color: var(--night); font-weight: 700;
}
.skip:focus { top: 12px; }

/* Nadpisek sekce se dvěma kroužky: stejné „oo“ jako v logu. */
.eyebrow {
  display: flex; align-items: center; gap: .65em;
  font: 700 .78rem/1.2 var(--font-text);
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 1.9em; height: .8em;
  background:
    radial-gradient(circle closest-side, transparent 48%, var(--tang) 52% 96%, transparent 100%) 0 50% / .8em .8em no-repeat,
    radial-gradient(circle closest-side, transparent 48%, var(--pink) 52% 96%, transparent 100%) 100% 50% / .8em .8em no-repeat;
}

.head { display: grid; gap: 16px; max-width: 40rem; margin-bottom: 36px; }
.lead { font-size: 1.14rem; line-height: 1.55; }

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .75em 1.5em;
  border: 0; border-radius: 999px;
  background: var(--candy); color: var(--night);
  font: 700 1rem/1.15 var(--font-text); text-decoration: none; text-align: center;
  box-shadow: 0 5px 0 var(--tang-deep), 0 20px 34px -14px rgba(255, 107, 61, .75);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--tang-deep), 0 26px 38px -14px rgba(255, 107, 61, .8); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tang-deep), 0 8px 18px -10px rgba(255, 107, 61, .7); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--lg { min-height: 60px; padding: .9em 1.7em; font-size: 1.08rem; }
.btn--sm { min-height: 44px; padding: .5em 1.15em; font-size: .92rem; box-shadow: 0 4px 0 var(--tang-deep); }
.btn--sm:hover { box-shadow: 0 6px 0 var(--tang-deep); }
.btn--sm:active { box-shadow: 0 1px 0 var(--tang-deep); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

.textbtn {
  padding: .35em 0; border: 0; background: none;
  font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px;
}
.textbtn:hover { text-decoration-color: var(--tang); }

/* ---------- „oči“: dvě o v logu, v čase 19:00 a v potvrzení ---------- */

.oo {
  --pupil: var(--cream);
  --oy: 58%; /* svislý střed písmene, kam patří zornička */
  position: relative; display: inline-block;
  color: var(--tang);
  transform-origin: 50% var(--oy);
  animation: blink 6s infinite;
}
.oo--2 { color: var(--pink); }
.oo::after {
  content: ""; position: absolute; left: 50%; top: var(--oy);
  width: .18em; height: .18em; margin: -.09em 0 0 -.09em;
  border-radius: 50%; background: var(--pupil);
  animation: look 9s ease-in-out infinite;
}
@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(.08); }
}
@keyframes look {
  0%, 38%, 100% { transform: translateX(0); }
  44%, 58% { transform: translateX(.07em); }
  64%, 80% { transform: translateX(-.07em); }
}

/* ---------- sekce jako listy přeložené přes sebe ---------- */

.sheet {
  position: relative;
  margin-top: calc(-1 * var(--r-sheet));
  padding: 64px 0 calc(72px + var(--r-sheet));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}
.sheet--light { background: var(--cream); color: var(--ink); --focus: var(--ink); }
.sheet--blush { background: var(--blush); color: var(--ink); --focus: var(--ink); }
.sheet--night {
  background: var(--grain), var(--night); color: var(--cream);
  overflow: hidden; isolation: isolate;
}
.sheet--light .lead, .sheet--blush .lead { color: var(--ink-2); }
.sheet--night .head p:not(.eyebrow) { color: var(--dim); }

/* Světla v pozadí, rozostřená jako večerní ulice. */
.bokeh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bokeh i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); aspect-ratio: 1; border-radius: 50%;
  color: var(--c, var(--tang));
  background: radial-gradient(circle closest-side, currentColor 92%, transparent 100%);
  opacity: var(--o, .2);
  animation: drift var(--t, 16s) ease-in-out infinite alternate;
}
.bokeh i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: max(3px, calc(var(--s) * .03)) solid currentColor; opacity: .55;
}
@keyframes drift { to { transform: translate3d(var(--dx, 14px), var(--dy, -18px), 0) scale(1.06); } }

/* ---------- nájezd při scrollu ---------- */

.js .rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease) var(--rd, 0s), transform .7s var(--ease) var(--rd, 0s);
}
.js .rv.is-in { opacity: 1; transform: none; }
.js .head.rv h2 { filter: blur(12px); transition: filter .9s var(--ease) .08s; }
.js .head.rv.is-in h2 { filter: blur(0); }

@media (min-width: 760px) {
  :root { --gut: 32px; --r-sheet: 48px; }
  .sheet { padding: 96px 0 calc(104px + var(--r-sheet)); }
  .head { margin-bottom: 52px; gap: 20px; }
  .lead { font-size: 1.25rem; }
  h3 { font-size: 1.14rem; }
}

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