/* ═══════════════════════════════════════════════════════════
   docs.css — Libreprobe / Shared document styles
   Used by: about.html, privacy.html
   Depends on: fonts.css, nav.css (--nav-h)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:    #090909;
  --bg-1:  #111111;
  --bg-2:  #171717;
  --bg-3:  #1e1e1e;
  --bg-4:  #272727;
  --bg-5:  #333333;

  --tx-1:  #f2ede6;   /* headings   — warm off-white  */
  --tx-2:  #d0ccc5;   /* body       — bright readable */
  --tx-3:  #a09c95;   /* secondary  — lead / subtitles*/
  --tx-4:  #6a6762;   /* muted      — dates, meta     */

  --ac:    #88c070;   /* accent green                 */
  --ac-2:  #5e8f50;   /* darker green                 */
  --ac-3:  #9ec490;   /* lighter green                */
  --ac-dim: rgba(136,192,112,.09);
  --ac-bdr: rgba(136,192,112,.18);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Space Grotesk', system-ui, sans-serif;
  --mono:  'Space Grotesk', system-ui, monospace;
  --nav-h: 64px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx-2);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Active nav state (about page) ─────────────────────── */
.nav-link--active { color: var(--ac-3) !important; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 2px; }

/* ── Shared entrance animations ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .4s ease both; }
.fade-up-1 { animation: fadeUp .4s .07s ease both; }
.fade-up-2 { animation: fadeUp .4s .15s ease both; }

/* ── Shared inline code ─────────────────────────────────── */
code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-3);
  border: 1px solid var(--bg-5);
  border-radius: 3px;
  padding: 1px 7px;
  color: var(--tx-2);
  letter-spacing: .02em;
}


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════ */

.about-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 40px 112px;
  display: flex;
  flex-direction: column;
}

/* ── Hero ────────────────────────────────────────────────── */
.about-hero {
  padding-bottom: 52px;
  border-bottom: 1px solid var(--bg-4);
}

.about-eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ac);
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.about-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--ac);
  opacity: .5;
  flex-shrink: 0;
}

.about-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 5vw, 54px);
  color: var(--tx-1);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}

.about-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tx-3);
  max-width: 600px;
  font-weight: 400;
}

/* ── Feature strip ───────────────────────────────────────── */
.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-4);
  border: 1px solid var(--bg-4);
  border-top: none;
  border-bottom: 1px solid var(--bg-4);
}

.about-feature {
  background: var(--bg-1);
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-feature-icon {
  color: var(--ac-2);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac-dim);
  border: 1px solid var(--ac-bdr);
  border-radius: 7px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.about-feature-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--tx-1);
  letter-spacing: .04em;
  line-height: 1.3;
}

.about-feature-body {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--tx-3);
}

/* ── Content sections ────────────────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--bg-3);
  align-items: start;
}

/* // Label — green slashes larger, text centred beside them */
.about-section-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--tx-3);
  padding-top: 3px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-section-label::before {
  content: '//';
  color: var(--ac);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.04em;
  line-height: 1;
  flex-shrink: 0;
}

.about-section-body {
  display: flex;
  flex-direction: column;
}

.about-section-body p {
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--tx-2);
  margin-bottom: 16px;
}
.about-section-body p:last-child { margin-bottom: 0; }
.about-section-body p em { font-style: italic; color: var(--tx-1); }

/* ── Stack table ─────────────────────────────────────────── */
.about-stack-body {
  border: 1px solid var(--bg-4);
  border-radius: 6px;
  overflow: hidden;
}

.stack-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0 24px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--bg-3);
  align-items: baseline;
}
.stack-row:last-child { border-bottom: none; }
.stack-row:nth-child(even) { background: rgba(255,255,255,.018); }

.stack-name {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx-4);
  white-space: nowrap;
}

.stack-val {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--tx-2);
  line-height: 1.55;
}

/* ── CTA ─────────────────────────────────────────────────── */
.about-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 48px;
  flex-wrap: wrap;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 5px;
  padding: 10px 20px;
  transition: background .16s, color .16s, border-color .16s;
  white-space: nowrap;
}

.about-cta-btn--primary {
  background: transparent;
  color: var(--ac);
  border: 2px solid var(--ac-2);
}
.about-cta-btn--primary:hover {
  background: var(--ac-dim);
  border-color: var(--ac);
  color: var(--ac-3);
}

.about-cta-btn--ghost {
  background: transparent;
  color: var(--tx-3);
  border: 1px solid var(--bg-5);
}
.about-cta-btn--ghost:hover {
  color: var(--tx-1);
  background: var(--bg-3);
}


/* ═══════════════════════════════════════════════════════════
   SHARED ADDITIONS  (used by both about + privacy)
═══════════════════════════════════════════════════════════ */

/* Hero meta line — date / operator / contact */
.about-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--tx-3);
  letter-spacing: .04em;
  margin-top: 14px;
}
.about-meta a {
  color: var(--tx-2);
  text-decoration: none;
  border-bottom: 1px solid var(--bg-5);
  transition: color .14s, border-color .14s;
}
.about-meta a:hover { color: var(--ac); border-bottom-color: var(--ac); }

/* Callout block — green-tinted summary */
.about-callout {
  background: var(--ac-dim);
  border: 1px solid var(--ac-bdr);
  border-left: 2px solid var(--ac);
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tx-2);
  letter-spacing: .01em;
}

/* Section body — list support */
.about-section-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.about-section-body ul:last-child { margin-bottom: 0; }
.about-section-body ul li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--tx-2);
  padding-left: 18px;
  position: relative;
}
.about-section-body ul li::before {
  content: '';
  position: absolute;
  left: 1px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ac-2);
}

/* Section body — links */
.about-section-body a {
  color: var(--ac);
  text-decoration: none;
  border-bottom: 1px solid rgba(136,192,112,.25);
  transition: color .14s, border-color .14s;
}
.about-section-body a:hover {
  color: var(--tx-1);
  border-bottom-color: rgba(242,237,230,.4);
}

/* Subdued legal/regional note inside a section body */
.about-note {
  font-size: 13px;
  line-height: 1.72;
  color: var(--tx-4);
  padding: 14px 16px;
  border-left: 2px solid var(--bg-5);
  background: var(--bg-2);
  border-radius: 0 4px 4px 0;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Last section — no bottom border */
.about-section--last { border-bottom: none; padding-bottom: 0; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── About ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-page { max-width: 100%; padding: 48px 32px 96px; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .about-page { padding: 36px 24px 80px; }
  .about-section {
    grid-template-columns: 1fr;
    gap: 10px 0;
    padding: 36px 0;
  }
  .about-section-label { position: static; }
  .stack-row { grid-template-columns: 110px 1fr; gap: 0 16px; }
}

@media (max-width: 480px) {
  .about-page    { padding: 28px 16px 64px; }
  .about-title   { font-size: 28px; }
  .about-lead    { font-size: 14.5px; }
  .about-callout { font-size: 13.5px; padding: 14px 16px; }
  .about-features { grid-template-columns: 1fr; }
  .about-feature  { padding: 22px 20px; }
  .about-section  { padding: 28px 0; }
  .about-cta     { flex-direction: column; align-items: flex-start; }
  .about-cta-btn { width: 100%; justify-content: center; }
  .stack-row {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 12px 16px;
  }
  .stack-name { font-size: 9px; }
}