/* ==========================================================================
   Black Passport Foundation — shared stylesheet
   Aesthetic: editorial, refined, humanitarian gravitas
   Palette: deep ink navy, warm parchment cream, ember accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink:        #0d1b2a;
  --ink-soft:   #1b2a3d;
  --parchment:  #f4ede1;
  --parchment-warm: #ebe1cf;
  --ember:      #c1440e;
  --ember-deep: #8b2f06;
  --gold:       #b8862c;
  --rule:       rgba(13, 27, 42, 0.18);
  --muted:      rgba(13, 27, 42, 0.62);

  --serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', monospace;

  --measure: 65ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at top left, rgba(193, 68, 14, 0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(13, 27, 42, 0.05), transparent 60%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.16 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--ember);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--ember);
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 400; font-style: italic; color: var(--ink-soft); line-height: 1.45; text-wrap: pretty; }

a { color: var(--ember); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
a:hover { border-color: var(--ember); }

/* ---------- LAYOUT ---------- */

.container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; z-index: 2; }

/* ---------- HEADER / NAV ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 225, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border: none;
}

.brand:hover { border: none; color: var(--ember); }

.brand-mark {
  width: 28px; height: 38px;
  background: var(--ink);
  display: grid; place-items: center;
  border-radius: 1px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--parchment);
  line-height: 1;
  margin-top: -2px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  bottom: 5px;
  height: 1px;
  background: var(--ember);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  border: none;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ember); }

.nav-cta {
  background: var(--ink);
  color: var(--parchment) !important;
  padding: 0.65rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none !important;
  transition: background .25s;
}
.nav-cta:hover { background: var(--ember); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 0.5rem; }

@media (max-width: 760px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--parchment); padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--rule); gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--ember); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

.btn-arrow::after { content: '→'; transition: transform .25s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- FOOTER ---------- */

footer.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 2;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.footer-brand h3 {
  font-family: var(--serif);
  color: var(--parchment);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.footer-brand p { color: rgba(244, 237, 225, 0.7); font-size: 0.92rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--parchment);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: rgba(244, 237, 225, 0.75);
  font-size: 0.92rem;
  border: none;
}
.footer-col a:hover { color: var(--ember); }

.footer-bottom {
  border-top: 1px solid rgba(244, 237, 225, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(244, 237, 225, 0.5);
  letter-spacing: 0.05em;
}

/* ---------- DECORATIVE ELEMENTS ---------- */

.rule {
  height: 1px;
  background: var(--rule);
  margin: 3rem 0;
}

.rule-thick {
  height: 2px;
  background: var(--ink);
  width: 60px;
}

/* number markers */
.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  color: var(--ember);
  opacity: 0.85;
  line-height: 1;
}

/* fade-in on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; animation: fadeUp .9s ease forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.35s; }
.reveal-4 { animation-delay: 0.5s; }

/* ---------- SHARED PAGE INTRO BANNER (used on inner pages) ---------- */

.page-intro {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.page-intro h1 { margin: 1.5rem 0 1rem; max-width: 16ch; }
.page-intro .lede { max-width: 50ch; }
