:root {
  --primary: #8FCA2E;
  --primary-button: #A3E635;
  --primary-button-hover: #9ADC2E;
  --accent: #ff9a42;

  --title: #001E18;
  --subtitle: #525252;
  --muted: #737373;
  --placeholder: #A29E9A;

  --bg: #F9F8F7;
  --card: #FFFFFF;
  --hover: #F6F4F2;
  --border: #E1DFDC;
  --link: #3389DF;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 15px;

  --container-max: 720px;
  --header-height: 64px;

  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--title);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--title);
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; margin-top: 2.4em; }
h3 { font-size: 17px; font-weight: 600; margin-top: 1.6em; }
h4 { font-size: 15px; font-weight: 600; margin-top: 1.2em; }

p {
  margin: 0 0 1em;
  color: var(--subtitle);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--subtitle);
}

li { margin-bottom: 0.4em; }
li::marker { color: var(--muted); }

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { text-decoration: underline; }

strong { color: var(--title); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: var(--hover);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(6px);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header-inner img {
  width: 28px;
  height: auto;
  display: block;
}

.site-header-inner .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--title);
  text-decoration: none;
}

.site-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 48px;
}

.site-footer a {
  color: var(--muted);
  margin: 0 8px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 17px; color: var(--subtitle); }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.4em 0;
}

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

.section {
  scroll-margin-top: calc(var(--header-height) + 16px);
  margin-bottom: 2em;
}

.section-meta {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1em;
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  h3 { font-size: 16px; }
  .site-main { padding: 32px 18px 56px; }
  .site-header-inner { padding: 12px 18px; }
}
