/* ═══════════════════════════════════════════════════
   PAMET.ORG — DESIGN SYSTEM
   "Archive / Ink / Graph" — distinct from rail/earth palettes.
   ═══════════════════════════════════════════════════ */
:root {
  --ink:        #1a1a1f;
  --graphite:   #55524a;
  --stone:      #9a9186;
  --paper:      #f7f3ea;
  --paper-dim:  #efe8d8;
  --linen:      #e3dbc7;
  --line:       #ded4bd;

  --indigo:     #2b3a67;
  --indigo-br:  #3f56a3;
  --brass:      #b6923c;
  --brass-br:   #d4af5a;
  --wax:        #9c3b2e;
  --moss:       #4a6b52;

  --font-display: 'Fraunces', serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --section-pad: clamp(72px, 9vw, 140px);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-pad) 0; }

/* ── graph-thread background motif ── */
.thread-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav-mark {
  width: 30px; height: 30px; position: relative; flex-shrink: 0;
}
.nav-brand {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: 0.01em;
}
.nav-brand small {
  display: block; font-family: var(--font-mono); font-size: 9px;
  font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone); margin-top: 1px;
}
.nav-right { display: flex; align-items: center; gap: 0; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--graphite); opacity: 0.8; transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--wax);
  transition: width 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--indigo); opacity: 1; }

.lang-switch {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  border-left: 1px solid var(--line); padding-left: 18px; margin-left: 4px;
}
.lang-switch a { text-decoration: none; color: var(--stone); opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { color: var(--indigo); opacity: 1; }
.lang-switch span { color: var(--line); }

/* ── SECTION HEADERS ── */
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--wax); flex-shrink: 0;
}
.eyebrow span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--wax);
}
.title {
  font-family: var(--font-display); font-weight: 300;
  line-height: 1.05; color: var(--ink);
}
.title em { font-style: italic; color: var(--indigo); font-weight: 500; }
h1.title { font-size: clamp(42px, 5.6vw, 78px); }
h2.title { font-size: clamp(32px, 3.6vw, 48px); }
h3.title { font-size: clamp(22px, 2.2vw, 28px); }

.lede {
  font-size: 18px; font-weight: 300; color: var(--graphite);
  line-height: 1.75; max-width: 620px;
}
.body-text { font-size: 16px; font-weight: 400; color: var(--graphite); line-height: 1.85; }
.body-text + .body-text { margin-top: 18px; }

.mono-stat {
  font-family: var(--font-mono); color: var(--indigo);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 15px 32px; border-radius: 2px; transition: all 0.25s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,26,31,0.18); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: var(--paper); }
.btn-text {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; color: var(--indigo);
  border-bottom: 1px solid var(--indigo); padding-bottom: 2px;
}

/* ── PULL QUOTE ── */
.pull {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; color: var(--indigo);
  padding-left: 26px; border-left: 2px solid var(--wax); margin: 36px 0;
}

/* ── CARD SHARED ── */
.card {
  background: var(--paper-dim); border: 1px solid var(--line);
  padding: 32px; transition: all 0.25s ease; position: relative;
}

/* ── CONFIDENCE PILL ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.pill-high   { background: rgba(74,107,82,0.12); color: var(--moss); }
.pill-moderate { background: rgba(182,146,60,0.15); color: var(--brass); }
.pill-low    { background: rgba(156,59,46,0.1); color: var(--wax); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── FOOTER ── */
footer { background: var(--ink); color: var(--paper); padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.footer-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 14px; color: rgba(247,243,234,0.5); margin-top: 12px; max-width: 260px; line-height: 1.5;
}
.footer-col-title {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass-br); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(247,243,234,0.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(247,243,234,0.1); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-family: var(--font-mono); font-size: 10.5px; color: rgba(247,243,234,0.32); letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 20px; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  nav { padding: 16px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
