/* Reset + base — Basket Trading */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}

/* Locking the page must not shift it: pad by exactly the scrollbar width */
body.is-locked {
  overflow: hidden;
  padding-right: var(--sbw, 0px);
}

body.is-locked .nav {
  padding-right: var(--sbw, 0px);
}

body.is-locked .to-top {
  right: calc(18px + var(--sbw, 0px));
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: var(--lh-display);
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Icons keep their own metrics without stretching the line */
i[class*="ri-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: none;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: 1120px;
}

.section {
  position: relative;
  padding-block: var(--s-8);
  background: var(--bg);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--s-9);
  }
}

.section--tight {
  padding-block: var(--s-7);
}

.band {
  background: var(--bg-soft);
}

/* Blocks need to read against their section: tinted on white, white on the band */
.section:not(.band):not(.on-dark) {
  --card: #f7f7f7;
}

/* Micro label */
.mono {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}

.lead {
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  max-width: 58ch;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* The tickers are the content here: keep them gliding at full speed */
  .marquee__track {
    animation-duration: 32s !important;
    animation-iteration-count: infinite !important;
  }
  .payouts__track {
    animation-duration: 46s !important;
    animation-iteration-count: infinite !important;
  }
  /* The counter is a clock: the roll is the point of it */
  .counter__digits .reel {
    transition-duration: 0.42s !important;
  }
  /* The logo sweep is part of the mark */
  .logo__text {
    animation-duration: 4.5s !important;
    animation-iteration-count: infinite !important;
  }
}
