:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1f2430;
  --text-muted: #5b6472;
  --accent: #4a7c7e;
  --accent-soft: #e8f0ef;
  --border: #e4e6eb;
  --radius: 10px;
  --max-width: 920px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header .brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-header .brand:hover { text-decoration: none; }

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header ul a:hover { color: var(--text); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  font-weight: 650;
}

h1 { font-size: 2.25rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; color: var(--text); }

p { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 38rem;
}

.hero {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--text-muted); font-size: 0.97rem; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
}
.cta:hover { background: #3a6a6c; text-decoration: none; }
.cta.secondary { background: var(--accent-soft); color: var(--accent); }
.cta.secondary:hover { background: #d9e5e4; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

meta-data, .meta { color: var(--text-muted); font-size: 0.92rem; }
.meta { color: var(--text-muted); font-size: 0.92rem; }

code {
  background: #f0f1f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.license-list { list-style: none; padding-left: 0; }
.license-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.license-list li:last-child { border-bottom: none; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 2rem;
}
.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  html, body { font-size: 16px; }
  h1 { font-size: 1.85rem; }
  main { padding: 2rem 1.1rem 3rem; }
}
