/* Page base: reset, background, shared text styles. */

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

html {
  background: var(--sfx-void);
  color: var(--sfx-ink);
  font: 400 var(--sfx-text-md) / 1.5 var(--sfx-font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: auto;
}

/* Until the collection is opened the page is one screen. */
html.is-locked { overflow: hidden; }
html.is-locked body { touch-action: none; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }

::selection { background: var(--sfx-red); color: var(--sfx-white); }

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

/* The 3D underscore field sits behind everything. */
.field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Section label: mono, lowercase, red underscore in front. */
.label {
  font: 500 var(--sfx-text-sm) / 1.4 var(--sfx-font-mono);
  color: var(--sfx-grey-400);
}
.label::before { content: "_"; color: var(--sfx-red); }

/* Things that slide in along the 10 degree slant when scrolled into view. */
.js [data-reveal] {
  opacity: 0;
  transform: translate(calc(32px * 0.1763), 32px);
  transition: opacity var(--sfx-slow) var(--sfx-ease), transform var(--sfx-slow) var(--sfx-ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; }
}

/* Text for screen readers and crawlers only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
