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

/* Base */
html {
  font-size: 18px;
  line-height: 1.7;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: #fafaf9;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Links */
a {
  color: #6b5b4e;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #4a3f35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Homepage */
.manifesto {
  max-width: 640px;
  margin: 0 auto;
  padding: 20vh 1.5rem 10vh;
}

.manifesto-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  text-align: center;
}

.manifesto-title .ellipsis {
  color: #b0a99f;
}

.manifesto-list {
  list-style: none;
}

.manifesto-list li {
  font-size: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e6e3;
}

.manifesto-list li:last-child {
  border-bottom: none;
}

.manifesto-list a {
  display: block;
  text-decoration: none;
}

.manifesto-list a:hover {
  text-decoration: none;
  color: #4a3f35;
}

.manifesto-list .prefix {
  color: #b0a99f;
}

/* Article */
.article {
  max-width: 65ch;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.article-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #8a8078;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: #1a1a1a;
  text-decoration: none;
}

.article-header h1 {
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #6b5b4e;
  line-height: 1.5;
}

/* Article body */
.article-body h2 {
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body blockquote {
  border-left: 3px solid #d4cfc9;
  padding-left: 1.25rem;
  color: #555;
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.3rem;
}

.article-body code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  background: #f0efed;
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
}

.article-body pre {
  background: #f0efed;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
}

.article-body hr {
  border: none;
  border-top: 1px solid #e8e6e3;
  margin: 2.5rem 0;
}

.article-body strong {
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
}

footer .footer-sep {
  color: #d4cfc9;
  margin: 0 0.3rem;
}

footer a {
  color: #8a8078;
}

footer a:hover {
  color: #1a1a1a;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .manifesto {
    padding: 12vh 1.25rem 8vh;
  }

  .manifesto-title {
    font-size: 1.8rem;
  }

  .manifesto-list li {
    font-size: 1.1rem;
  }

  .article {
    padding: 2.5rem 1.25rem 4rem;
  }
}
