/* ==========================================================================
   Balkan Candidate — Typography
   Headings: Manrope · Body: Inter · Fallback: Arial/Helvetica
   Fontovi se hostuju lokalno (assets/fonts) ili preko sistema — vidi README.
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: var(--lh-heading);
  letter-spacing: -0.022em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.35rem + 2.8vw, 3.45rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.55vw, 2.25rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.375rem);
  font-weight: 700;
}

h4 {
  font-size: var(--fs-md);
  font-weight: 700;
}

h5,
h6 {
  font-size: var(--fs-base);
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

p + p,
p + ul,
p + ol,
ul + p,
ol + p {
  margin-top: var(--space-4);
}

strong,
b {
  font-weight: 700;
  color: var(--color-navy);
}

small {
  font-size: var(--fs-sm);
}

a {
  color: var(--color-blue);
  text-decoration-color: rgba(31, 78, 154, 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--color-blue-bright);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-blue-bright);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Utility text tones --- */

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.eyebrow--light {
  color: var(--color-yellow);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, var(--fs-md));
  color: var(--color-text-muted);
  line-height: 1.68;
}

.lead--light {
  color: rgba(238, 244, 255, 0.86);
}

/* --- Rich text (guides, legal, long-form) --- */

.rich-text > * + * {
  margin-top: var(--space-4);
}

.rich-text h2 {
  margin-top: var(--space-8);
  padding-top: var(--space-2);
}

.rich-text h3 {
  margin-top: var(--space-6);
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.35rem;
  color: var(--color-text);
}

.rich-text ul {
  list-style: none;
  padding-left: 0;
}

.rich-text ul > li {
  position: relative;
  padding-left: 1.6rem;
}

.rich-text ul > li + li,
.rich-text ol > li + li {
  margin-top: var(--space-2);
}

.rich-text ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-yellow);
}

.rich-text table {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
}

.rich-text blockquote {
  border-left: 4px solid var(--color-yellow);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-navy);
}
