/* Notion-inspired minimal design */
:root {
  --bg: #ffffff;
  --text: #37352f;
  --text-light: #787774;
  --text-muted: #9b9a97;
  --border: #ebebea;
  --hover: #f7f7f5;
  --accent: #2383e2;
  --code-bg: #f7f6f3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  background: var(--text);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-links a:hover {
  background: var(--hover);
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 500;
}

/* Page emoji header */
.page-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

/* Typography */
h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 12px;
  line-height: 1.3;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

.lede {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.5;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--text-muted);
}

/* Callout */
.callout {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  font-size: 15px;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0;
}

.feature {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.feature:hover {
  background: var(--hover);
}

.feature-icon {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.feature h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.feature p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* Lists */
ul, ol {
  margin: 12px 0 16px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 4px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Table-like row */
.row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.row-label {
  width: 140px;
  color: var(--text-light);
  flex-shrink: 0;
}

.row-value {
  color: var(--text);
}

/* Footer */
footer {
  margin-top: 96px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .features { grid-template-columns: 1fr; }
  header { margin-bottom: 40px; }
  .page-emoji { font-size: 52px; }
  .row { flex-direction: column; gap: 2px; }
  .row-label { width: auto; }
  footer .container { flex-direction: column; gap: 8px; }
}
