/* ==========================================================================
   Uniy Designz — base
   Reset, typography, focus, icons, container, and small utilities.
   Depends on tokens.css. Shared with admin.uniydesignz.com.
   ========================================================================== */

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  /* Playfair defaults to old-style figures ("5oo+"); use lining everywhere. */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
h4, h5, h6 { font-weight: 600; line-height: var(--leading-snug); }

.text-5xl { font-size: var(--text-5xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-xl { font-size: var(--text-xl); }
.text-lg { font-size: var(--text-lg); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }
.tabular { font-variant-numeric: tabular-nums; }

/* Small spaced capitals, echoing the logo's "PRINT | DESIGN | CREATE" line. */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand-magenta-dark);
}

.prose { color: var(--text-secondary); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-xl); color: var(--text-primary); margin-top: var(--space-8); }
.prose a { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { list-style: disc; padding-left: var(--space-5); }
.prose ol { list-style: decimal; padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-1); }

.link { color: var(--text-link); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--brand-magenta); }

/* Gold hairline rule — the logo's signature detail, used sparingly. */
.rule-gold { height: 1px; border: 0; background: var(--brand-gold-gradient); opacity: .8; margin: 0; }

/* Brand gradient text — reserved for one or two words in a headline. */
.gradient-text {
  background-image: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Focus --------------------------------------------------------------- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--brand-teal-dark); outline-offset: 2px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: calc(var(--z-toast) + 1);
  background: var(--background-inverse); color: var(--text-inverse);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* ---- Icons ----------------------------------------------------------------
   Every icon comes from udIcon() in assets/js/icons.js, which always adds the
   .icon class. Context rules (e.g. `.btn svg`) override this size. */
.icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---- Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}
.container-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--stack-gap, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-3)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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