/*
Theme Name: Mirror African Diaspora
Theme URI: https://mirrorafricandiaspora.com
Developed by: Harrydmountain
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* Color */
  --color-bg:            #FFFFFF; /* clean white */
  --color-bg-alt:        #F4F4F4; /* neutral light panel bg */
 --color-ink:            #000000; /* primary text - pure black */
--color-ink-soft:        #000000; /* secondary text - pure black */
  --color-accent:        #8B2A1E; /* oxblood / mud-cloth red */
  --color-accent-dark:   #6E2117;
  --color-line:          #E3E3E3; /* neutral hairline rule */
  --color-white:         #FFFFFF;

  /* Type */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-ui:      "Work Sans", -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  /* Type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5:  clamp(3rem, 2.2rem + 3.6vw, 5rem);

  /* Layout */
  --container-max: 1240px;
  --gutter: clamp(1rem, 1rem + 1.5vw, 2.5rem);
  --radius: 2px; /* near-square — newsroom, not app-like */
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

/* Visible keyboard focus — accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink);
}
.section-rail .eyebrow {
  display: none;
}

.meta {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--color-ink-soft);
}

.kente-rule {
 height: 1px;
  width: 100%;
  background: var(--color-accent);
}

/* ==========================================================================
   SKIP LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.75em 1.2em;
  z-index: 1000;
  font-family: var(--font-ui);
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

