/* ==========================================================================
   Global CSS — Zure
   ========================================================================== */

@import "../styles/design-tokens.css";
@import "../styles/fonts.css";
@import "animations.css";

/* --------------------------------------------------------------------------
   Reset & Box Model
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  background-color: var(--color-jet-black);
  color: var(--color-white);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-display);
  color: var(--color-white);
}

h1 { font-size: var(--font-size-display-xl); }
h2 { font-size: var(--font-size-display-lg); }
h3 { font-size: var(--font-size-display-md); }
h4 { font-size: var(--font-size-heading-lg); }
h5 { font-size: var(--font-size-heading-md); }
h6 { font-size: var(--font-size-body); }

p {
  max-width: var(--max-width-text);
  color: var(--color-white);
}

a {
  color: var(--color-frozen-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* Wider 1400px variant used by contract, how-it-works, dashboard, header */
.container--wide {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   Focus Styles (accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-frozen-blue);
  outline-offset: 3px;
}

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

/* --------------------------------------------------------------------------
   Section min-height + scroll snap
   -------------------------------------------------------------------------- */
.hero,
.how-it-works,
.contract,
.contract-to-catalog,
.catalog,
.dashboard-story,
.demo-cta {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
