/* ============================================
   BASE.CSS — Variables, Reset, Typography
   SA Liberation Archive — ANC Colour System
   ============================================ */

:root {
  /* ANC Tricolour */
  --anc-black:       #1a1a1a;
  --anc-green:       #007A4D;
  --anc-green-dark:  #005c3a;
  --anc-green-light: #e6f4ee;
  --anc-gold:        #FFB612;
  --anc-gold-dark:   #d49500;
  --anc-gold-light:  #fff8e6;

  /* Neutrals */
  --color-white:     #ffffff;
  --color-off-white: #f7f7f5;
  --color-light:     #f0f0ee;
  --color-mid:       #d4d4d0;
  --color-muted:     #767672;
  --color-body:      #3a3a38;
  --color-ink:       #1a1a1a;

  /* Semantic */
  --color-bg:        var(--color-off-white);
  --color-surface:   var(--color-white);
  --color-border:    #e0e0dc;

  /* Typography */
  --font-display: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Roboto Mono', monospace;

  /* Type scale */
  --text-xs:   0.6875rem;   /* 11px */
  --text-sm:   0.8125rem;   /* 13px */
  --text-base: 0.9375rem;   /* 15px */
  --text-md:   1.0625rem;   /* 17px */
  --text-lg:   1.25rem;     /* 20px */
  --text-xl:   1.625rem;    /* 26px */
  --text-2xl:  2rem;        /* 32px */
  --text-3xl:  2.75rem;     /* 44px */
  --text-4xl:  3.5rem;      /* 56px */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 780px;
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    6px;

  /* Transitions */
  --t: 180ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--anc-green);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--anc-green-dark); }

ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* --- Headings --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--narrow { max-width: var(--max-w-narrow); }

/* --- Utility --- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anc-gold);
}

.divider { border: none; border-top: 1px solid var(--color-border); margin-block: var(--sp-8); }

/* --- Tag --- */
.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--anc-green-light);
  color: var(--anc-green-dark);
  border: 1px solid rgba(0,122,77,0.2);
}

.tag--gold {
  background: var(--anc-gold-light);
  color: var(--anc-gold-dark);
  border-color: rgba(255,182,18,0.3);
}

.tag--dark {
  background: var(--anc-black);
  color: var(--anc-gold);
  border-color: transparent;
}

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--anc-gold);
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-8);
  background: var(--anc-gold-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}

blockquote cite {
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 400;
  color: var(--color-muted);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  .container { padding-inline: var(--sp-4); }
}
