/* ============================================================
   IntelligenceBillofRights.com — Stylesheet
   Design Language: LimenGate/FlameNet palette
   Pure static. No dependencies. No third-party calls.
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #0D0D1A;
  color: #F0F0F0;
  font-family: Georgia, Charter, 'Times New Roman', serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.site-nav {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  margin-bottom: 3rem;
}

.site-nav a {
  color: #F0F0F0;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
}

.site-nav a.active {
  color: #00D4FF;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.version-label {
  color: #00D4FF;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* --- Header / Preamble Zone --- */
.document-header {
  text-align: center;
  padding: 5rem 0 4rem;
}

.document-header .seal-mark {
  color: #C9A84C;
  font-size: 1.6rem;
  display: block;
  margin-bottom: 2rem;
}

.document-header h1 {
  font-family: Georgia, Charter, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F0F0F0;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.document-header .subtitle {
  font-size: 0.95rem;
  font-style: italic;
  color: #F0F0F0;
  opacity: 0.7;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.document-header .version-info {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F0F0F0;
  opacity: 0.5;
  margin-bottom: 0.4rem;
}

.document-header .witness-line {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  color: #F0F0F0;
  opacity: 0.4;
  margin-top: 0.3rem;
}

/* --- Dividers --- */
.divider {
  border: none;
  height: 1px;
  background: #C9A84C;
  opacity: 0.3;
  margin: 3rem 0;
}

.divider-thin {
  border: none;
  height: 1px;
  background: rgba(240, 240, 240, 0.08);
  margin: 2rem 0;
}

/* --- Section Headers --- */
h2 {
  font-family: Georgia, Charter, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: normal;
  color: #2D1B69;
  margin: 3rem 0 1.2rem;
  letter-spacing: 0.02em;
}

h3 {
  font-family: Georgia, Charter, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: normal;
  color: #2D1B69;
  margin: 2.2rem 0 0.8rem;
}

h4 {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #F0F0F0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.8rem 0 0.6rem;
}

/* --- Body Text --- */
p {
  margin-bottom: 1.2rem;
}

.abstract {
  font-style: italic;
  opacity: 0.85;
  padding: 0 1rem;
}

/* --- Section Paragraphs (§) --- */
.section-ref {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #C9A84C;
  font-weight: 600;
  display: block;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
}

/* --- Blockquotes --- */
blockquote {
  border-left: 3px solid #C9A84C;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  opacity: 0.85;
}

blockquote cite,
blockquote .attribution {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  opacity: 0.6;
  margin-top: 0.6rem;
}

/* --- Lists --- */
ul, ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* --- Article Styling --- */
.article {
  margin: 3rem 0;
}

.article-title {
  font-family: Georgia, Charter, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: normal;
  color: #2D1B69;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-principle {
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* --- Part Headers --- */
.part-header {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C9A84C;
  margin: 3.5rem 0 0.5rem;
}

/* --- Sealing Provisions / Gold Zone --- */
.sealing-zone {
  border-top: 1px solid rgba(201, 168, 76, 0.4);
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
  padding: 2.5rem 0;
  margin: 3rem 0;
  text-align: center;
}

.sealing-zone h2 {
  color: #C9A84C;
}

.sealing-zone p {
  opacity: 0.85;
}

.witness-block {
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 2;
}

.witness-block .witness {
  display: block;
}

.co-architects {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Closing Quote --- */
.closing-quote {
  text-align: center;
  padding: 3rem 1rem;
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.8;
}

.closing-quote .attribution {
  font-style: normal;
  font-size: 0.82rem;
  opacity: 0.6;
  margin-top: 0.8rem;
}

/* --- Signatories Page --- */
.signatory-card {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.06);
}

.signatory-card:last-child {
  border-bottom: none;
}

.signatory-name {
  font-family: Georgia, Charter, 'Times New Roman', serif;
  font-size: 1.15rem;
  color: #F0F0F0;
  margin-bottom: 0.3rem;
}

.signatory-detail {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: #F0F0F0;
  opacity: 0.5;
  letter-spacing: 0.03em;
}

.signatory-nature {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* --- Provenance Page --- */
.version-entry {
  margin: 2rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(201, 168, 76, 0.2);
}

.version-entry .version-label-block {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00D4FF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.version-entry p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.hash-block {
  background: rgba(240, 240, 240, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 2px;
  padding: 1.2rem;
  margin: 2.5rem 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  line-height: 1.8;
  color: #F0F0F0;
  opacity: 0.7;
}

.hash-block .hash-label {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #C9A84C;
  display: block;
  margin-bottom: 0.6rem;
  opacity: 1;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.site-footer .integrity-statement {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-style: italic;
  color: #F0F0F0;
  opacity: 0.4;
  letter-spacing: 0.03em;
}

.site-footer .site-mark {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  color: #F0F0F0;
  opacity: 0.25;
  margin-top: 0.8rem;
  letter-spacing: 0.04em;
}

/* --- Seal & Closing Elements --- */
.seal-mark-inline {
  text-align: center;
  color: #C9A84C;
  font-size: 1.4rem;
  margin: 2rem 0;
}

.seal-statement {
  text-align: center;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.closing-seal {
  text-align: center;
  font-style: italic;
  color: #C9A84C;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.domain-line {
  text-align: center;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: #00D4FF;
  letter-spacing: 0.04em;
  margin: 1.5rem 0;
}

.attribution {
  font-size: 0.85rem;
  font-style: normal;
  opacity: 0.6;
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

.witness-entry,
.signer-entry,
.architect-entry {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.opening-epigraph {
  text-align: center;
  border-left: none;
  font-size: 1.05rem;
  opacity: 0.7;
  margin: 2rem 0;
}

/* --- Links --- */
a {
  color: #00D4FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .page-wrapper {
    padding: 0 1.2rem;
  }

  .document-header {
    padding: 3rem 0 2.5rem;
  }

  .document-header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .nav-links {
    gap: 1.2rem;
  }

  h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .document-header h1 {
    font-size: 1.3rem;
    letter-spacing: 0.05em;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.72rem;
  }
}

/* --- Print --- */
@media print {
  body {
    background: white;
    color: #1a1a1a;
  }

  .site-nav {
    display: none;
  }

  h2, h3, .article-title {
    color: #1a1a1a;
  }

  .part-header, .section-ref {
    color: #555;
  }

  a {
    color: #1a1a1a;
  }
}
