/* Foundation page — document reading layer on top of the site theme. */
.fdn-hero { padding-block: clamp(56px, 10vw, 120px) clamp(8px, 2vw, 20px); }
.fdn-hero h1 { font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 18px 0 22px; }
.fdn-hero .lede { max-width: 60ch; }

.toc { padding-block: clamp(20px, 4vw, 40px) clamp(40px, 7vw, 90px); }
.toc-grid { display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.toc-card h3 { font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 1.2rem; margin: 16px 0 8px; letter-spacing: -0.01em; }
.toc-card h3 a { text-decoration: none; color: var(--hl-text); }
.toc-card h3 a:hover { color: var(--hl-accent-a); }
.toc-card p { margin: 0; color: var(--hl-muted); font-size: 15px; }
.toc-links { margin-top: 14px !important; display: flex; gap: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: .04em; }
.toc-links a { color: var(--hl-accent-a); text-decoration: none; }
.toc-links a:hover { text-decoration: underline; }

.doc { max-width: 72ch; margin-inline: auto; scroll-margin-top: 90px;
  padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--hl-line); }
.doc > .label { display: block; margin-bottom: 14px; }
.doc h2 { font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.025em; margin: 0 0 6px; }
.doc h3 { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--hl-text);
  font-size: 1.25rem; letter-spacing: -0.012em; margin: 2em 0 0.5em; scroll-margin-top: 90px; }
.doc-lede { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5; color: var(--hl-muted); margin: 14px 0 8px; }
.doc p, .doc li { color: #d7dae3; font-size: 1.02rem; line-height: 1.7; }
.doc strong { color: var(--hl-text); font-weight: 600; }
.doc ul { padding-left: 1.1em; }
.doc li { margin: 0.4em 0; }
.doc a { color: var(--hl-accent-a); }
.doc .creed { font-family: "Space Grotesk", sans-serif; font-style: italic;
  color: #aeb6c8; font-size: 1.05rem; margin: 0 0 0.3em; }
.value-web { border-left: 2px solid var(--hl-accent-a); padding-left: 18px; margin: 1.6em 0; }
.value-web h3 { margin-top: 0; }
.value-web p:last-child { margin-bottom: 0; }
.accent-bar { width: 36px; height: 2px; background: var(--hl-accent-grad);
  border: 0; border-radius: 2px; margin: 22px 0; }
.doc-meta { font-size: 0.92rem !important; color: var(--hl-faint) !important; }
.doc-actions { margin-top: 28px; }
.pdf-btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 14.5px;
  color: var(--hl-text); padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(150deg, var(--hl-glass-hi), var(--hl-glass-lo) 72%);
  border: 1px solid var(--hl-glass-edge); box-shadow: inset 0 1px 0 var(--hl-spec);
  transition: border-color .2s, transform .2s; }
.pdf-btn:hover { border-color: var(--hl-accent-a); transform: translateY(-1px); }
