/* SYNAPSIS / Project atlas / Theodor (Doc) Yemenis / 2026-11-24 */
:root { color-scheme: light; --paper: #f7f3ed; --ink: #3d405b; --muted: #665d59; --line: #c9c8c2; --gold: #9b6b32; --blue: #e7eef2; --mint: #e6ede6; --sand: #eee4d7; --serif: Georgia, 'Times New Roman', serif; --sans: 'Segoe UI', Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.atlas-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.atlas-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.eyebrow { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: #786146; }
.intro { display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: 22px 50px; padding-block: clamp(36px, 7vw, 80px) 30px; }
.intro h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); letter-spacing: -.04em; margin-top: 12px; }
.intro > p { color: var(--muted); max-width: 45ch; }
.paths { margin-bottom: 20px; padding-block: 18px; border-block: 1px solid var(--line); }
.path-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin: 10px 0; }
.path-buttons button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.path-buttons button[aria-pressed="true"] { background: var(--ink); color: #fff9f0; border-color: var(--ink); }
.path-note { color: var(--muted); max-width: 85ch; min-height: 3.3em; font-size: .9375rem; }
.map { position: relative; isolation: isolate; margin-block: 30px 45px; }
.connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.connections path { fill: none; stroke: #a3a8a2; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.connections path.resonance { stroke: var(--gold); stroke-width: 1.8; stroke-dasharray: 6 7; }
.map-root { display: block; width: min(100%, 320px); margin: 0 auto 56px; text-align: center; text-decoration: none; padding: 20px; background: var(--paper); border: 1px solid #a58b65; }
.map-root strong { display: block; font: 2rem/1.1 var(--serif); margin-bottom: 7px; }
.map-root span { font-size: .9375rem; color: var(--muted); }
.families { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(14px, 2vw, 28px); align-items: start; }
.family { min-width: 0; border: 1px solid var(--line); padding: 20px; background: var(--blue); }
.family.code { background: var(--sand); }
.family.lab { background: var(--mint); }
.family-heading { padding-bottom: 18px; border-bottom: 1px solid #c1c0b6; margin-bottom: 20px; }
.family-heading h2 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); margin-top: 8px; }
.family-heading > p:last-child { margin-top: 9px; color: var(--muted); font-size: .9375rem; }
.project { background: #fffdf8; border: 1px solid var(--line); margin-top: 13px; min-width: 0; }
.project h3 a { display: block; padding: 17px 16px 0; font-size: 1.3rem; text-decoration: none; overflow-wrap: anywhere; }
.project h3 a:hover { text-decoration: underline; }
.project > p { padding: 6px 16px 17px; color: var(--muted); font-size: .9375rem; }
.project ul { list-style: none; border-top: 1px solid #d9d5cb; margin: 0 16px 16px; padding: 10px 0 0 12px; border-left: 1px solid #d9d5cb; }
.project li { padding-block: 4px; line-height: 1.5; }
.project li a { font-size: .9375rem; }
.project[data-active="true"] { border-color: #97642c; box-shadow: inset 3px 0 #97642c; }
.project .working { display: block; font-size: .875rem; color: #786146; padding: 10px 16px 0; }
.family > .section-link { display: inline-block; margin-top: 7px; font-size: .9375rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .875rem; margin-top: 22px; }
.map-legend span::before { content: ''; display: inline-block; vertical-align: middle; width: 30px; margin-right: 8px; border-top: 1px solid #a3a8a2; }
.map-legend span:last-child::before { border-top: 2px dashed var(--gold); }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding-block: 32px 48px; border-top: 1px solid var(--line); }
.more h2 { font-size: 1.7rem; margin-bottom: 12px; }
.more ul { margin: 0; padding-left: 20px; }
.more li { margin-bottom: 8px; }
.more p, .more summary { color: var(--muted); }
.more summary { cursor: pointer; margin-top: 20px; }
.more details ul { margin-top: 12px; }
.atlas-footer { border-top: 1px solid var(--line); padding: 22px 0 35px; display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: .875rem; color: var(--muted); }
.skip { position: absolute; left: 14px; top: -100px; padding: 10px; background: var(--paper); z-index: 5; }
.skip:focus { top: 10px; }
@media (max-width: 900px) {
  .families { grid-template-columns: 1fr; gap: 28px; }
  .connections, .map-legend { display: none; }
  .map-root { margin-bottom: 28px; }
  .family { padding: clamp(16px, 4vw, 28px); }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 28px); }
  .more { grid-template-columns: 1fr; }
  .intro h1 { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

[hidden] { display: none !important; }
