:root {
  --ink: #1d2b2b;
  --muted: #657473;
  --paper: #f4f1e8;
  --panel: #fffdf7;
  --line: #d8d8ca;
  --coral: #d95f4d;
  --teal: #0e7370;
  --gold: #d7a43a;
  --shadow: 0 18px 50px rgba(29, 43, 43, .09);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 10%, #e8d6a9 0, transparent 28%), var(--paper); }
a { color: inherit; }
.topbar, main, footer { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; font: 700 1.05rem 'Trebuchet MS', sans-serif; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--panel); background: var(--teal); border-radius: 50%; font-size: .72rem; }
nav { display: flex; gap: 24px; font: 600 .85rem 'Trebuchet MS', sans-serif; } nav a { text-decoration: none; } nav a:hover, nav a[aria-current="page"] { color: var(--coral); }
.intro { padding: 78px 0 48px; max-width: 850px; } .eyebrow { margin: 0 0 10px; color: var(--coral); font: 700 .73rem 'Trebuchet MS', sans-serif; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; } h1 { max-width: 780px; margin-bottom: 20px; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .96; font-weight: 400; } h2 { margin-bottom: 10px; font-size: 2rem; font-weight: 400; } h3 { font-size: 1.35rem; font-weight: 400; }
.lede { max-width: 650px; color: var(--muted); font-size: 1.2rem; line-height: 1.55; }.notice { display: inline-block; margin-top: 18px; padding: 12px 16px; border-left: 4px solid var(--gold); background: rgba(255,253,247,.68); font: .9rem 'Trebuchet MS', sans-serif; }
.workspace, .text-view, .next-step { margin-bottom: 72px; }.workspace { overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }.toolbar { display: grid; grid-template-columns: 1fr repeat(3, minmax(150px, 200px)); gap: 18px; align-items: end; padding: 24px; border-bottom: 1px solid var(--line); }.toolbar label { display: grid; gap: 7px; font: 700 .72rem 'Trebuchet MS', sans-serif; text-transform: uppercase; letter-spacing: .05em; }.toolbar input, .toolbar select { min-width: 0; padding: 11px 10px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--paper); font: 1rem Georgia, serif; }.map-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); min-height: 550px; }.graph-shell { position: relative; min-height: 550px; background: linear-gradient(135deg, #fbfaf4, #edf3eb); }.graph-shell svg { width: 100%; height: 100%; min-height: 550px; }.graph-edge { stroke: #b5c2bd; stroke-width: 2; }.graph-edge.indireta { stroke: var(--gold); stroke-dasharray: 8 7; }.node { cursor: pointer; }.node circle { stroke: var(--panel); stroke-width: 5; transition: r .2s ease, stroke .2s ease; }.node:hover circle, .node:focus circle, .node.selected circle { stroke: var(--coral); }.node text { pointer-events: none; text-anchor: middle; font: 700 13px 'Trebuchet MS', sans-serif; fill: var(--ink); }.details { padding: 32px 26px; border-left: 1px solid var(--line); }.details p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }.chip { display: inline-block; margin: 4px 4px 0 0; padding: 5px 8px; background: #e5eee8; font: 700 .68rem 'Trebuchet MS', sans-serif; text-transform: uppercase; }.chip.warn { background: #f3e6c3; }.relationship-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.relationship-card { padding: 20px; border-top: 3px solid var(--teal); background: var(--panel); }.relationship-card h3 { margin-bottom: 8px; }.relationship-card p { color: var(--muted); line-height: 1.5; }.relationship-card small { font: .75rem 'Trebuchet MS', sans-serif; color: var(--coral); }.next-step { padding: 42px; background: var(--teal); color: #f8f5e9; }.next-step .eyebrow { color: #e8d6a9; }.next-step p { max-width: 650px; line-height: 1.6; }.button { display: inline-block; padding: 11px 16px; color: var(--ink); background: #f6d98e; font: 700 .8rem 'Trebuchet MS', sans-serif; text-decoration: none; }.button:hover { background: #fff0ba; }footer { display: flex; justify-content: space-between; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font: .78rem 'Trebuchet MS', sans-serif; }
.prose { max-width: 780px; padding: 72px 0; }.prose h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }.prose h2 { margin-top: 42px; }.prose p, .prose li { color: var(--muted); line-height: 1.7; }.prose li { margin-bottom: 8px; }
@media (max-width: 780px) { .topbar, main, footer { padding-inline: 18px; }.topbar { align-items: flex-start; }.map-layout { grid-template-columns: 1fr; }.details { border-left: 0; border-top: 1px solid var(--line); }.toolbar { grid-template-columns: 1fr 1fr; }.toolbar > div { grid-column: 1 / -1; }.relationship-list { grid-template-columns: 1fr; }.intro { padding-top: 54px; } h1 { font-size: 3.1rem; } footer { gap: 16px; flex-direction: column; } }
.source-list { margin: 10px 0 0; padding-left: 18px; font: .82rem 'Trebuchet MS', sans-serif; color: var(--muted); }.source-list li { margin-bottom: 4px; }.source-list a { color: var(--teal); }.period, .legal-note, .photo-credit { font-size: .85rem; }.empty-state { padding: 24px; color: var(--muted); }.relationship-card .chip { margin-top: 8px; }
.node:focus { outline: none; }.node:focus-visible circle { stroke: var(--coral); stroke-width: 6; }a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
