:root {
  --bg-deep: #eeede9;
  --card-bg: #ffffff;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --text-primary: #111111;
  --text-muted: #8a8a8a;
  --border: rgba(0, 0, 0, 0.06);
  --font-rounded: -apple-system, "SF Pro Rounded", "SF Pro Display", system-ui, ui-rounded, sans-serif;
  --font-body: -apple-system, "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.65;
}

nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand img { height: 28px; width: auto; }
.brand .wordmark { height: 22px; }

.back {
  font-family: var(--font-rounded);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.back:hover { background: #f0efed; }

article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 48px 56px;
  margin-bottom: 60px;
}

article h1 {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

article h2 {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 10px;
}

article p, article ul {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
}

article ul {
  padding-left: 22px;
}

article .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

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

article strong { color: var(--text-primary); }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
footer .brand-small { display: flex; align-items: center; gap: 8px; }
footer .brand-small img { height: 20px; }
footer .footer-links { display: flex; gap: 18px; }
footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
footer .footer-links a:hover { color: var(--text-primary); }

@media (max-width: 600px) {
  article { padding: 32px 24px; border-radius: 16px; }
  footer { flex-direction: column; gap: 14px; text-align: center; }
}
