/* ra.css — reference architecture pages */
.ra-hero { padding: clamp(120px, 14vw, 176px) 0 clamp(24px, 4vw, 40px); }
.ra-hero h1 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02;
  letter-spacing: -.02em; margin-top: 14px; max-width: 22ch;
}
.ra-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.ra-hero .dek {
  margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7; max-width: 64ch;
}
.ra-hero .dek b { color: var(--ink); font-weight: 500; }

.ra-diagram {
  margin: clamp(40px, 5vw, 64px) 0;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(120% 80% at 0% 0%, rgba(217,151,87,.06), transparent 60%), var(--surface);
}
.ra-svg { width: 100%; height: auto; display: block; }
.ra-caption {
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: .12em; color: var(--faint);
  text-align: center;
}
.ra-caption b { color: var(--accent); font-weight: 500; }
.ra-caption a {
  color: var(--accent); border-bottom: 1px dotted var(--accent);
  margin-left: 6px;
}

.ra-body { max-width: 760px; margin: 0 auto; padding: 0 0 clamp(64px, 8vw, 96px); }
.ra-body section { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.ra-body section:first-child { border-top: 0; }
.ra-body h2 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1;
  letter-spacing: -.015em; margin-bottom: 16px;
}
.ra-body h2 em { font-style: italic; color: var(--accent); }
.ra-body h3 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px); line-height: 1.15; margin: 24px 0 10px;
}
.ra-body p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.ra-body p b { color: var(--ink); font-weight: 500; }
.ra-body p a { color: var(--accent); border-bottom: 1px dotted var(--accent); }
.ra-body ul, .ra-body ol { margin-bottom: 1.2em; padding-left: 0; list-style: none; }
.ra-body li { position: relative; padding-left: 28px; margin-bottom: .55em; color: var(--muted); line-height: 1.65; }
.ra-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 1px; background: var(--accent); }
.ra-body ol { counter-reset: ol; }
.ra-body ol li { counter-increment: ol; }
.ra-body ol li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  color: var(--accent); letter-spacing: .12em;
}
.ra-body li b { color: var(--ink); font-weight: 500; }

.ra-layer {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; margin: 14px 0;
  background: rgba(255,255,255,.012);
}
.ra-layer .ix {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: .2em; color: var(--accent); text-transform: uppercase;
}
.ra-layer h4 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: 19px; margin: 8px 0 8px;
}
.ra-layer p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 0; }
.ra-layer .tools {
  margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  color: var(--faint); letter-spacing: .04em;
}
.ra-layer .tools a { color: var(--muted); border-bottom: 1px dotted var(--line-strong); }
.ra-layer .tools b { color: var(--accent); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
