/* 
 * ensha.com — Typography-first, minimal
 * No frameworks, no bloat. Just words.
 */

:root {
  --text: #2c2c2c;
  --text-muted: #666;
  --bg: #fafaf8;
  --accent: #1a1a1a;
  --border: #e0e0e0;
  --measure: 65ch;
}

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Typography */
h1 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.3rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  margin: 2rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Homepage intro */
.intro {
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.intro p:first-child {
  font-size: 1.3rem;
}

/* Article lists */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

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

.article-list a:hover .article-title {
  text-decoration: underline;
}

.article-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Project cards */
.project-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.project {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
}

.project h3 {
  font-style: normal;
  margin-top: 0;
}

.project-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  .nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  body {
    padding: 1.5rem 1rem;
  }
}
