/* Evaluchat Docs — brand-aligned stylesheet */
/* Fonts: Inter (heading + body), Fira Code (code) */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary: #2c3e58;        /* hsl(214 32.3% 25.5%) */
  --primary-light: #3a5272;
  --primary-foreground: #fafafa;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --link: #2176f6;
  --radius: 8px;
  --max-width: 880px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--foreground);
  background: var(--background);
  line-height: 1.65;
}

/* --- Navigation header --- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo a:hover {
  color: var(--primary-light);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

/* --- Page layout --- */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* --- Typography --- */
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

p, li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--foreground);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Hero section (home page) --- */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

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

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* --- Home page card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 1px 6px rgba(44, 62, 88, 0.08);
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.card .cta {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.card .cta::after {
  content: " →";
}

.card .cta:hover {
  text-decoration: underline;
}

/* --- Content typography for guide pages --- */
.content {
  max-width: 720px;
}

.content .intro {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.content ul, .content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.content li {
  margin-bottom: 0.375rem;
}

.content strong {
  font-weight: 600;
}

.content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted-foreground);
}

.content blockquote p {
  margin-bottom: 0;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Code blocks --- */
code {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8125rem;
  background: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}

th, td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--muted);
}

/* --- Info boxes --- */
.info-box {
  background: #f0f7ff;
  border: 1px solid #d0e4f7;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.info-box p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.info-box strong {
  color: var(--primary);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.site-footer a {
  color: var(--muted-foreground);
  text-decoration: underline;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted-foreground);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  margin: 0 0.375rem;
}

/* --- Back to top --- */
.back-top {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
