/* ============================================================================
   SyntheticPerson.ai — canon r3.1 shared system
   Obsidian dark default · atlas paper light for editorial pages
   ============================================================================ */
:root {
  --bg-primary:        #0A0E14;
  --bg-secondary:      #1A1F26;
  --bg-atmospheric:    #0D1428;
  --bg-mid:            #2A2F4A;
  --text-primary:      #F4F1EA;
  --text-secondary:    rgba(244, 241, 234, 0.7);
  --text-tertiary:     rgba(244, 241, 234, 0.45);
  --accent-cyan:       #4FE5D5;
  --accent-cyan-soft:  #5BB5C5;
  --line-instrument:   rgba(244, 241, 234, 0.15);
  --line-emphasis:     rgba(79, 229, 213, 0.4);
  --signature-verde:   #2D6E4D;

  /* light mode (editorial) */
  --paper:             #F4F1EA;
  --ink:               #0A0E14;
  --ink-soft:          rgba(10, 14, 20, 0.72);
  --ink-faint:         rgba(10, 14, 20, 0.45);
  --rule-light:        rgba(10, 14, 20, 0.15);

  --sans: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
body.editorial {
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-cyan); color: var(--bg-primary); }

/* ============ filing strip + nav ============ */
.filing {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--line-instrument);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(10,14,20,0.6); backdrop-filter: blur(8px);
}
body.editorial .filing { background: rgba(244,241,234,0.85); border-bottom-color: var(--rule-light); color: var(--ink-soft); }
.filing-row { max-width: 1320px; margin: 0 auto; padding: 11px 32px; display: flex; gap: 24px; align-items: center; }
.filing-row .sep { opacity: 0.4; }
.filing-row .live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-cyan-soft); }
.filing-row .live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% {opacity:1} 50% {opacity:0.35} }

nav.canon {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--line-instrument);
  background: rgba(10,14,20,0.55); backdrop-filter: blur(10px);
}
body.editorial nav.canon { background: rgba(244,241,234,0.85); border-bottom-color: var(--rule-light); }
nav.canon .row { max-width: 1320px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; gap: 36px; }
.brand-lock { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: -0.01em; }
.brand-lock svg { display: block; }
.brand-lock .sep { opacity: 0.45; margin: 0 2px; }
nav.canon ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; font-size: 14px; }
nav.canon ul a { color: var(--text-secondary); transition: color 0.2s, border-color 0.2s; padding-bottom: 2px; border-bottom: 1px solid transparent; }
body.editorial nav.canon ul a { color: var(--ink-soft); }
nav.canon ul a:hover { color: var(--text-primary); border-bottom-color: var(--accent-cyan); }
body.editorial nav.canon ul a:hover { color: var(--ink); }
nav.canon .right { margin-left: auto; display: flex; gap: 14px; align-items: center; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 2px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn.ghost { color: var(--text-primary); border-color: var(--line-instrument); }
.btn.ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
body.editorial .btn.ghost { color: var(--ink); border-color: var(--rule-light); }
body.editorial .btn.ghost:hover { color: var(--accent-cyan-soft); border-color: var(--accent-cyan-soft); }
.btn.primary { background: transparent; color: var(--accent-cyan); border-color: var(--accent-cyan); }
.btn.primary:hover { background: rgba(79,229,213,0.08); }

/* ============ typography ============ */
.display-xl { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7.4vw, 96px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.display-l  { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5.4vw, 72px); line-height: 1.10; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.display-m  { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.8vw, 48px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 36px); line-height: 1.20; letter-spacing: -0.01em; margin: 0 0 24px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -0.005em; margin: 0 0 16px; }
.h3 { font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1.30; margin: 0 0 12px; }
.body-l { font-size: 18px; line-height: 1.55; }
.body-m { font-size: 16px; line-height: 1.55; }
.body-s { font-size: 14px; line-height: 1.50; color: var(--text-secondary); }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-secondary); }
.mono { font-family: var(--mono); font-size: 14px; }
.editorial-display { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7.2vw, 96px); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
.editorial-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 2.8vw, 32px); line-height: 1.32; }
.editorial-body { font-family: var(--serif); font-size: 17px; line-height: 1.65; }
em.italic { font-style: italic; }
.lede { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1.45; color: var(--text-secondary); margin: 24px 0 36px; max-width: 38ch; }
body.editorial .lede { color: var(--ink-soft); }

/* ============ layout ============ */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 32px; }
.section .wrap { padding: 0; }
.label-row { display: flex; gap: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 28px; }
body.editorial .label-row { color: var(--ink-faint); }
.label-row span:not(:first-child)::before { content: "/"; margin-right: 16px; opacity: 0.5; }
.hairline { border: 0; border-top: 1px solid var(--line-instrument); margin: 0; }
body.editorial .hairline { border-top-color: var(--rule-light); }

/* z-depth atmospheric layers (background gradients) */
.atmospheric {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(42,47,74,0.5) 0%, rgba(10,14,20,0) 55%),
    radial-gradient(ellipse at 0% 100%, rgba(13,20,40,0.6) 0%, rgba(10,14,20,0) 50%),
    var(--bg-primary);
}

/* atlas grid */
.atlas-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.atlas-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line-instrument); border: 1px solid var(--line-instrument); }
body.editorial .atlas-3col { background: var(--rule-light); border-color: var(--rule-light); }
.atlas-3col > * { background: var(--bg-primary); padding: 36px; }
body.editorial .atlas-3col > * { background: var(--paper); }

.chapter-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-cyan-soft); margin-bottom: 12px; }
.section-num { font-family: var(--serif); font-weight: 300; font-size: 56px; line-height: 1; color: var(--text-tertiary); }
body.editorial .section-num { color: var(--ink-faint); }

/* verde signature dot */
.verde-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signature-verde); margin: 0 6px 1px 0; vertical-align: middle; }

/* refrain / pull-quote bilingual */
.refrain { padding: 120px 32px; border-top: 1px solid var(--line-instrument); border-bottom: 1px solid var(--line-instrument); }
body.editorial .refrain { border-color: var(--rule-light); }
.refrain .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.refrain .quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.22; letter-spacing: -0.01em; }
.refrain .lang { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; display: block; }
body.editorial .refrain .lang { color: var(--ink-faint); }

/* footer */
footer.canon {
  background: var(--bg-primary); color: var(--text-primary);
  padding: 80px 32px 40px;
  border-top: 1px solid var(--line-instrument);
}
footer.canon .row { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
footer.canon h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 18px; font-weight: 400; }
footer.canon ul { list-style: none; padding: 0; margin: 0; }
footer.canon li { margin-bottom: 10px; }
footer.canon a { color: var(--text-secondary); font-size: 14px; }
footer.canon a:hover { color: var(--accent-cyan); }
footer.canon .colophon p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 14px 0 0; max-width: 36ch; }
footer.canon .colophon .made { margin-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-secondary); }
footer.canon .legal { max-width: 1320px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--line-instrument); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-tertiary); }

/* glyph mark — murmuration swallow inlined as <svg> with
   `fill="currentColor"`, so the dot silhouette inherits the surrounding
   text color without depending on mask-image (which is fragile across
   browsers and gets blocked by the immutable cache on canon.css). */
.glyph-mark { width: 26px; height: 26px; flex-shrink: 0; }

@media (max-width: 980px) {
  nav.canon ul { display: none; }
  .atlas-2col { grid-template-columns: 1fr; gap: 48px; }
  .atlas-3col { grid-template-columns: 1fr; }
  .refrain .wrap { grid-template-columns: 1fr; gap: 48px; }
  footer.canon .row { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 24px; }
}
