/* ===================================================================
   frm documentation — shared stylesheet
   Clean, readable documentation with system fonts and muted colors.
   =================================================================== */

/* --- Reset & Base -------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
  color: #2c3e50;
  background: #fafafa;
}

/* --- Layout -------------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header nav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header .site-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
  text-decoration: none;
  margin-right: auto;
}

.site-header .site-name:hover {
  color: #4a6fa5;
}

.site-header nav a {
  color: #546e7a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #4a6fa5;
}

.content {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* --- Typography ---------------------------------------------------- */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e8e8e8;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #34495e;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #546e7a;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #4a6fa5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

/* --- Code ---------------------------------------------------------- */

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #eef1f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #3d5170;
}

pre {
  background: #f4f6f9;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  color: #2c3e50;
}

/* --- Hero (landing page) ------------------------------------------- */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: #546e7a;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero .description {
  font-size: 1.05rem;
  color: #607d8b;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* --- Steps (getting started) --------------------------------------- */

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.step {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.step .step-number {
  display: inline-block;
  background: #4a6fa5;
  color: #fff;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.6rem;
  text-align: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.step h3 {
  display: inline;
  vertical-align: middle;
  margin: 0;
  font-size: 1.05rem;
}

.step p {
  margin: 0.5rem 0 0;
  color: #607d8b;
}

/* --- Install block ------------------------------------------------- */

.install-block {
  background: #2c3e50;
  color: #e8eaed;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

.install-block code {
  background: none;
  color: inherit;
  padding: 0;
}

/* --- Page links (landing page) ------------------------------------- */

.page-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.page-link {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-link:hover {
  border-color: #4a6fa5;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.1);
  text-decoration: none;
}

.page-link h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #4a6fa5;
}

.page-link p {
  margin: 0;
  font-size: 0.9rem;
  color: #607d8b;
}

/* --- Command reference table-like layout --------------------------- */

.command-block {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.command-block h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #2c3e50;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}

.command-block .cmd-desc {
  color: #607d8b;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.command-block .flags {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.command-block .flags li {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #546e7a;
}

.command-block .flags code {
  font-size: 0.8rem;
}

/* --- Callout boxes ------------------------------------------------- */

.callout {
  background: #eef3fa;
  border-left: 3px solid #4a6fa5;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* --- Footer -------------------------------------------------------- */

.site-footer {
  max-width: 720px;
  margin: 4rem auto 2rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #90a4ae;
  border-top: 1px solid #e8e8e8;
}

.site-footer a {
  color: #78909c;
}

/* --- Responsive ---------------------------------------------------- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .site-header nav {
    gap: 1rem;
  }

  .page-links {
    grid-template-columns: 1fr;
  }
}
