/* ============================================================
   Arunda — Base element defaults + a few brand utilities
   Consumers get sensible typographic defaults the moment they
   link styles.css. Utilities cover the recurring brand motifs:
   mono eyebrow labels, ink rules, and the dovetail divider.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); letter-spacing: var(--tracking-display); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--text-link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red-700); }

strong, b { font-weight: var(--weight-bold); color: var(--text-strong); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

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

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

hr {
  border: 0;
  border-top: var(--border-rule) solid var(--rule-ink);
  margin: var(--space-7) 0;
}

/* ---- Brand utilities ---- */

/* Mono eyebrow / kicker — the technical label that prefixes sections.
   e.g. <span class="ar-eyebrow">[ 01 ] Systém</span> */
.ar-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-700, 700);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--red-600);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Measurement tag — mono with a unit, like a drawing callout. */
.ar-measure {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--text-muted);
}

/* Heavy ink rule used to separate major sections. */
.ar-rule {
  height: var(--border-rule);
  background: var(--rule-ink);
  border: 0;
}

/* Dovetail divider: a row of alternating tail/pin trapezoids.
   Decorative section break echoing the joint. */
.ar-dovetail {
  height: 16px;
  width: 100%;
  background:
    repeating-linear-gradient(90deg,
      var(--ink-9) 0 2px, transparent 2px 28px);
  -webkit-mask: var(--clip-pin);
  mask: var(--clip-pin);
}

/* Angled (dovetail) corner helper for boxes/badges. */
.ar-chip-clip { clip-path: var(--clip-chip); }
.ar-tail-clip { clip-path: var(--clip-tail); }
.ar-pin-clip  { clip-path: var(--clip-pin); }

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