/* ==========================================================================
   shared.css — infrastructure only.
   Deliberately contains NO brand visual language. Presence and LJ Creative
   define their own palettes and type in presence.css / creative.css.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, p, blockquote, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 999;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 1rem; }

/* --- Focus visibility ---------------------------------------------------- */

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Reveal (progressive enhancement) ------------------------------------
   Content is visible by default. The class is only added by JS once it has
   confirmed it can also remove it, so a JS failure never hides content.     */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Cross-brand switch -------------------------------------------------- */

.site-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  text-decoration: none;
  white-space: nowrap;
}

.site-switch .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}

/* --- Motion & contrast preferences --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .skip-link,
  nav { display: none; }
}
