/* ==========================================================================
   Speaker John Ash — Shared Chrome
   Palette, base reset, paper grain, navigation, footer.
   One file for every page. If you change the palette or nav, change it here.
   ========================================================================== */

/* --- Palette --- */
:root {
  /* Paper + Ink */
  --paper: #F1E8D4;
  --paper-deep: #E6DAC0;
  --ink: #12162E;
  --ink-soft: #3A4265;
  --ink-mid: #5A6085;
  --ink-faint: #8A8FAC;

  /* Jewel accents */
  --indigo: #1E2A5E;
  --indigo-bright: #2E407F;
  --indigo-deep: #131B3F;
  --amethyst: #5B4B8A;
  --amethyst-bright: #7862AE;
  --amethyst-deep: #3E3362;
  --teal: #26685F;
  --teal-bright: #3D8E82;
  --teal-deep: #17413C;

  /* Warm echoes (banner gold — used sparingly, never as trim) */
  --wheat-warm: #E8B04F;
  --wheat-deep: #C68A2E;

  /* Rules / borders */
  --rule: rgba(18, 22, 46, 0.12);
  --rule-soft: rgba(18, 22, 46, 0.06);

  /* Legacy aliases kept for backward compatibility */
  --cream: var(--paper);
  --cream-dark: var(--paper-deep);
  --navy: var(--ink);
  --navy-deep: var(--indigo-deep);
  --navy-light: var(--indigo);
  --gold: var(--wheat-warm);
  --gold-dim: var(--amethyst);
  --gold-glow: var(--amethyst-bright);
  --person-blue: var(--indigo-bright);
  --org-plum: var(--amethyst);
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* --- Paper grain overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.08 0 0 0 0 0.18 0 0 0 0.11 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--amethyst);
  color: var(--paper);
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(18, 22, 46, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(241, 232, 212, 0.08);
  transition: background 0.3s ease, padding 0.3s ease;
}
#navbar ul {
  list-style: none;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#navbar ul li {
  margin: 0 14px;
}
#navbar ul li a {
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
#navbar ul li a:hover,
#navbar ul li a.active {
  color: var(--wheat-warm);
  border-bottom-color: var(--wheat-warm);
}
#navbar.scrolled {
  background: rgba(11, 14, 31, 0.96);
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 36px 20px;
  background: var(--indigo-deep);
  color: rgba(241, 232, 212, 0.65);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--wheat-warm);
}
footer a {
  color: var(--wheat-warm);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* --- Responsive chrome --- */
@media (max-width: 720px) {
  #navbar ul li { margin: 0 9px; }
  #navbar ul li a { font-size: 0.64rem; letter-spacing: 0.1em; }
}
