/* Everlane Digital - base tokens, reset, type, shell.
   Brand: violet-cast near-black + one violet accent (from the E mark). Not Merto. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  /* surfaces: violet-cast near-black from the brand mark */
  --void: #0a0711;
  --void-2: #120c1e;
  --void-3: #1b1330;
  --void-4: #241a3c;

  /* single accent from the logo gradient */
  --violet: #8b5cf6;
  --violet-hi: #a78bfa;
  --violet-deep: #4c1d95;

  /* light bands: near-white with a violet cast, never Merto cream/brass */
  --paper: #f7f5fb;
  --paper-2: #efecf6;
  --paper-ink: #150e24;
  --paper-mute: rgba(21, 14, 36, 0.7);

  --bone: #efeaf7;
  --mute: rgba(239, 234, 247, 0.76);
  --mute-2: rgba(239, 234, 247, 0.56);
  --line: rgba(239, 234, 247, 0.12);
  --line-2: rgba(239, 234, 247, 0.22);
  --ink: #150e24;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shell: 1120px;
  --shell-wide: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(72px, 10vw, 128px);

  --soft-out: cubic-bezier(0.16, 1, 0.3, 1);
  --snap: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shared corner language: soft everywhere, no sharp boxes */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --lead-accent: var(--violet);
}

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

html,
body {
  overflow-x: clip;
}

[data-custom-site] {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--violet-hi);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
}

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

.shell--wide {
  width: min(100% - var(--gutter) * 2, var(--shell-wide));
}

.h-hero {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.h-hero em {
  font-style: normal;
  color: var(--violet-hi);
}

.h-band {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

.h-page {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--mute);
  max-width: 42ch;
}

.label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-hi);
}

.band {
  position: relative;
  isolation: isolate;
  padding: var(--band) 0;
}

.band--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.band--paper .lede,
.band--paper .mute {
  color: var(--paper-mute);
}

.band--paper .label {
  color: var(--violet-deep);
}

.band--void-2 {
  background: var(--void-2);
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background:
    url("/clients/everlane-digital/assets/gen/void-grain.jpg") center / 420px repeat,
    radial-gradient(rgba(167, 139, 250, 0.55) 0.6px, transparent 0.7px);
  background-size:
    420px 420px,
    22px 22px;
  mix-blend-mode: soft-light;
  mask-image: linear-gradient(180deg, #000, #000 55%, transparent);
}

.reveal {
  opacity: 1;
  transform: none;
}

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--soft-out),
    transform 0.7s var(--soft-out);
}

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

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
