/*
 * The Tailwind utilities the ported demos actually use, written out.
 *
 * These pages were authored against the old site's Tailwind build. Rewriting
 * their markup into hand-styled elements would mean transcribing a couple of
 * hundred attributes by hand, and the demos are driven by scripts that address
 * those elements by id — a transcription slip would show up as a demo that
 * silently does nothing. So the markup is kept verbatim and the seventy-odd
 * classes it references are defined here instead.
 *
 * Values are literal, not reinterpreted: `text-white` is white. The stages stay
 * dark because that is what they were designed against, the same way the client
 * marquee and the approach section are dark on a cream page. A class called
 * text-white that quietly resolved to near-black would be a worse thing to
 * leave behind than either.
 *
 * Only what is used. Adding a utility here because it might be wanted later is
 * how a file like this becomes a second copy of Tailwind.
 */

/* Layout */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  inset: 0;
}
.top-4 {
  top: 1rem;
}
.left-4 {
  left: 1rem;
}
.right-4 {
  right: 1rem;
}
.z-10 {
  z-index: 10;
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.hidden {
  display: none;
}
.overflow-hidden {
  overflow: hidden;
}
.pointer-events-none {
  pointer-events: none;
}
.cursor-pointer {
  cursor: pointer;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.max-w-2xl {
  max-width: 42rem;
}

/* Size */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.w-4 {
  width: 1rem;
}
.h-4 {
  height: 1rem;
}
.h-32 {
  height: 8rem;
}
.h-80 {
  height: 20rem;
}

/* Spacing */
.p-3 {
  padding: 0.75rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Type */
.font-mono {
  font-family: var(--mono);
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.text-sm {
  font-size: 0.875rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-white {
  color: #fff;
}
.text-gray-300 {
  color: #d1d5db;
}
.text-gray-400 {
  color: #9ca3af;
}

/* Surface */
.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2);
}
.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}
.bg-gray-950 {
  background-color: #030712;
}
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.border {
  border: 1px solid currentColor;
}
.border-2 {
  border: 2px solid currentColor;
}
.border-white {
  border-color: #fff;
}
.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}
.border-gray-800 {
  border-color: #1f2937;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

/* Buttons. The originals used Tailwind's palette; the hover pairs are kept so
   the markup does not have to change. */
.bg-teal {
  background-color: #14b8a6;
}
.bg-teal-600 {
  background-color: #0d9488;
}
.bg-blue-600 {
  background-color: #2563eb;
}
.bg-orange-600 {
  background-color: #ea580c;
}
.bg-red-600 {
  background-color: #dc2626;
}
.hover\:bg-teal-700:hover {
  background-color: #0f766e;
}
.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}
.hover\:bg-orange-700:hover {
  background-color: #c2410c;
}
.hover\:bg-red-700:hover {
  background-color: #b91c1c;
}
.transition-colors {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

/* Transforms */
.transform {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--sc, 1));
}
.-translate-x-1\/2 {
  --tx: -50%;
}
.-translate-y-1\/2 {
  --ty: -50%;
}
.hover\:scale-110:hover {
  --sc: 1.1;
}

.resize-none {
  resize: none;
}

@media (prefers-reduced-motion: reduce) {
  .transition-colors {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Second batch, for the LQIP demo. That one is light rather than dark, so it
   brings its own half of the palette with it.
   --------------------------------------------------------------------------- */
.justify-center {
  justify-content: center;
}
.ml-4 {
  margin-left: 1rem;
}
.p-4 {
  padding: 1rem;
}
.aspect-video {
  aspect-ratio: 16 / 9;
}
.object-cover {
  object-fit: cover;
}
.bg-cover {
  background-size: cover;
}
.bg-center {
  background-position: center;
}
.bg-gray-100 {
  background-color: #f3f4f6;
}
.bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5);
}
.bg-\[\#c44400\] {
  background-color: #c44400;
}
.hover\:bg-\[\#a33800\]:hover {
  background-color: #a33800;
}
.border-gray-300 {
  border-color: #d1d5db;
}
.text-black {
  color: #000;
}
.tracking-tightest {
  letter-spacing: -0.04em;
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
/* Stands alone rather than pairing with .transform: nothing in this demo
   composes a translate with it. */
.scale-105 {
  transform: scale(1.05);
}
.blur-xl {
  filter: blur(24px);
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: ease;
}
.duration-300 {
  transition-duration: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  .transition-opacity {
    transition: none;
  }
}
