/* ============================================================
   AI BUSINESS SOCIETY — BASE LAYER
   Light element defaults + brand utilities. Tokens only above.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--text-link); text-decoration-color: var(--abs-red-200); text-underline-offset: 2px; }
a:hover { color: var(--abs-red-800); }

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

/* Signage eyebrow / overline — small caps trail marker */
.abs-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-brand);
}

/* Subtle parchment paper grain — layer over flat parchment fills */
.abs-paper {
  background-color: var(--surface-page);
  background-image:
    radial-gradient(rgba(22,48,46,0.035) 1px, transparent 1px),
    radial-gradient(rgba(22,48,46,0.025) 1px, transparent 1px);
  background-size: 18px 18px, 30px 30px;
  background-position: 0 0, 9px 9px;
}

/* Dotted trail rule — a hiker's dashed map path */
.abs-trail-rule {
  border: none;
  border-top: var(--border-thin) dashed var(--border-default);
  margin: var(--space-6) 0;
}

/* Brass hairline divider with center compass dot */
.abs-rule-brass {
  border: none;
  height: var(--border-thin);
  background: var(--border-brass);
  opacity: 0.5;
}

/* Focus-visible ring across interactive elements */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}
