/* Lambrary — shared brand stylesheet
   Three colours: navy #1a3a52, cream #f5f1e8, terracotta #c8553d; body #4a5e6f, grey #7a8a99.
   Headlines/wordmark: Georgia serif (regular weight). Body/UI: system sans. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #f5f1e8;
  color: #4a5e6f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation --- */
nav {
  background: #1a3a52;
  color: #f5f1e8;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; font-weight: 400; letter-spacing: 0.5px;
  color: #f5f1e8; text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 6px;
  background: #f5f1e8; color: #1a3a52;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 22px; line-height: 1;
  position: relative; flex-shrink: 0;
}
.brand-mark::after {
  content: ''; position: absolute; top: 0; right: 6px;
  width: 4px; height: 11px; background: #c8553d;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.navlinks { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.2px; flex-wrap: wrap; }
.navlinks a { color: #f5f1e8; opacity: 0.85; text-decoration: none; transition: opacity 0.15s; }
.navlinks a:hover { opacity: 1; }

/* --- Shared headings / eyebrow --- */
.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: #c8553d; margin: 0 0 14px; font-weight: 500;
}

/* --- Document pages (usage, install, ai, changelog, faq) --- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 32px 88px; }
.doc h1 {
  font-family: Georgia, 'Times New Roman', serif; font-size: 38px; font-weight: 400;
  line-height: 1.2; margin: 0 0 14px; color: #1a3a52; letter-spacing: -0.5px;
}
.subtitle { font-size: 17px; color: #4a5e6f; margin: 0 0 8px; }
.doc h2 {
  font-family: Georgia, serif; font-size: 25px; font-weight: 400; color: #1a3a52;
  margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid rgba(26,58,82,0.12);
  letter-spacing: -0.3px;
}
.doc h3 { font-size: 17px; font-weight: 600; color: #1a3a52; margin: 28px 0 8px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; }
.doc li { margin: 0 0 8px; }
.doc strong { color: #1a3a52; }
.doc a { color: #c8553d; text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc code {
  font-family: 'Consolas', 'SF Mono', Menlo, monospace; font-size: 0.88em;
  background: rgba(26,58,82,0.06); color: #1a3a52; padding: 1px 5px; border-radius: 4px;
}
.doc pre {
  background: rgba(26,58,82,0.05); border: 1px solid rgba(26,58,82,0.12);
  border-radius: 8px; padding: 16px 18px; overflow-x: auto; margin: 0 0 16px;
}
.doc pre code {
  background: none; padding: 0; border-radius: 0; font-size: 0.85em;
  line-height: 1.5; color: #4a5e6f; white-space: pre;
}
.doc hr { border: none; border-top: 1px solid rgba(26,58,82,0.12); margin: 40px 0; }
.doc figure { margin: 24px 0; text-align: center; }
.doc figure img {
  max-width: 100%; height: auto; border: 1px solid rgba(26,58,82,0.15);
  border-radius: 8px; box-shadow: 0 2px 12px rgba(26,58,82,0.10); background: #fff;
}
.doc figcaption { font-size: 13px; color: #7a8a99; margin-top: 10px; line-height: 1.5; }
.doc .closing { font-size: 15px; color: #7a8a99; }

/* --- Buttons (download / CTA) --- */
.btn {
  display: inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 8px; transition: background 0.15s;
}
.btn-primary { background: #1a3a52; color: #f5f1e8; }
.btn-primary:hover { background: #0d2a3d; text-decoration: none; }
.btn-accent { background: #c8553d; color: #f5f1e8; }
.btn-accent:hover { background: #b3492f; text-decoration: none; }
.btn-ghost {
  background: transparent; color: #1a3a52; border: 1px solid rgba(26,58,82,0.3);
}
.btn-ghost:hover { background: rgba(26,58,82,0.05); text-decoration: none; }
.btn .meta { font-size: 13px; font-weight: 400; opacity: 0.85; }

/* --- Footer --- */
footer {
  background: #f5f1e8; padding: 40px 32px; text-align: center;
  font-size: 13px; color: #7a8a99; border-top: 1px solid rgba(26,58,82,0.1);
}
footer a { color: #4a5e6f; text-decoration: none; }
footer a:hover { color: #1a3a52; }
.footer-links {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin: 0 0 14px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .doc h1 { font-size: 30px; }
  .doc { padding: 40px 24px 64px; }
  nav { padding: 16px 24px; }
  .navlinks { gap: 16px; }
}
