:root {
  --wrapper-width: 1280px;

  /* Studio Deadline brand tokens — see warehouse/docs/brief.md §2.3 */
  /* Stored as space-separated RGB (not hex) so Tailwind's rgb(var(...) / <alpha-value>) */
  /* pattern in tailwind.config can apply opacity modifiers (bg-ink/50, etc). A plain hex */
  /* value here would make every .../NN opacity utility silently resolve to transparent. */
  --color-ink: 20 44 130; /* #142c82 */
  --color-ink-tint: 30 55 153; /* #1e3799 */
  --color-paper: 250 250 248; /* #fafaf8 */
  --color-paper-tint: 238 240 249; /* #eef0f9 */
  --color-accent: 198 255 0; /* #c6ff00 */
  --color-slate: 72 80 122; /* #48507a */
  --color-slate-on-dark: 174 184 232; /* #aeb8e8 */
}

/* Infinite logo marquee (Proof Strip) — Tailwind has no keyframe utility for this, so it's */
/* the one case that genuinely needs custom CSS per the styling contract. The track holds the */
/* logo set twice back to back; animating to -50% loops seamlessly. */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 28s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee {
    animation: none;
  }
}

/* Brand-colored keyboard focus ring, sitewide — replaces the browser default blue outline. */
/* :focus-visible only (not plain :focus) so it shows for keyboard navigation but not mouse */
/* clicks, per standard accessibility practice. Ink on light sections; on any bg-ink section */
/* (footer, closing CTAs, nav/filter overlays, "More Projects" lists, etc.) an ink ring would */
/* be invisible against the ink background, so it flips to paper there instead. */
:focus-visible {
  outline: 2px solid rgb(var(--color-ink));
  outline-offset: 2px;
}

.bg-ink :focus-visible {
  outline-color: rgb(var(--color-paper));
}

/* Shared H1 treatment for work/ case-study and journal/ article titles. One rule instead of */
/* per-page max-width + text-*xl + leading-[...] utilities, so every title uses the full content */
/* width and balances across at most two lines on desktop instead of three. */
.case-title {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* One highlighted word per case-study/journal title, in the brand's primary blue. */
.title-accent {
  color: rgb(var(--color-ink));
}

/* Work-card hover overlay, mobile tap-to-reveal (2026-10-30). Desktop keeps the overlay */
/* hidden until mouse hover (Tailwind's sm:group-hover utilities already on the card markup). */
/* Below the sm breakpoint those utilities never applied, so the overlay used to render open */
/* on every card the moment the grid loaded - overrides that to start closed like desktop, */
/* opened via the .is-open class toggled by js/card_reveal.js on first tap. !important is */
/* needed here: the Tailwind CDN script injects its own <style> tag at runtime, which lands */
/* after this stylesheet in the cascade and would otherwise win the opacity-100/scale-y-100 */
/* utilities already on these elements at equal specificity. */
@media (max-width: 639.98px) {
  .work-card-bg {
    transform: scaleY(0) !important;
    transition: transform 450ms ease-out, opacity 350ms ease-out 350ms;
  }
  .work-card-content {
    opacity: 0 !important;
    transition: opacity 300ms ease-out 350ms;
  }
  .work-card.is-open .work-card-bg {
    transform: scaleY(1) !important;
    opacity: 0.85 !important;
  }
  .work-card.is-open .work-card-content {
    opacity: 1 !important;
  }
}
