/* =============================================
   JOURNALISM MASTERY — GLOBAL DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette */
  --ink:      #0D0D0D;
  --page:     #F7F4EE;
  --cream:    #FFFDF8;
  --rule:     #D8D2C4;
  --accent:   #C8410A;
  --accent-2: #1A3A5C;
  --gold:     #B8860B;
  --muted:    #6B6456;
  --success:  #2A6B3C;
  --white:    #FFFFFF;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;
  --text-5xl:  5.5rem;

  /* 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;
  --sp-24: 6rem;

  --radius: 3px;
  --radius-md: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

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

code {
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.06);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  font-size: 0.9em;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  gap: var(--sp-6);
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: opacity var(--transition);
}
.btn-nav:hover { opacity: 0.85; color: var(--white); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-base);
  transition: opacity var(--transition);
}
.btn-primary:hover { opacity: 0.85; color: var(--white); }

.btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--text-base);
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--rule);
  color: var(--ink);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all var(--transition);
  background: var(--cream);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---- LABELS ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  padding: var(--sp-12) var(--sp-8);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.footer-tag {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-6);
}
.footer-links {
  display: flex;
  gap: var(--sp-6);
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ---- PROGRESS BAR ---- */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ---- TAG / BADGE ---- */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 500;
}
.badge-accent { background: var(--accent); color: var(--white); }
.badge-blue   { background: var(--accent-2); color: var(--white); }
.badge-gold   { background: var(--gold); color: var(--white); }
.badge-muted  { background: var(--rule); color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { padding: var(--sp-2) var(--sp-4); }
}
