/* Minimalist academic personal site */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-main {
  flex: 1;
  padding: 3rem 0;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  color: #000;
}

.brand:hover { color: #555; }

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
}

.site-nav a:hover { color: #555; }

.theme-toggle,
.brand-mark {
  display: none;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000;
  margin: 1.5em 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
  color: #333;
}

a {
  color: #0066cc;
  text-decoration: underline;
  border: none;
}

a:hover { color: #0052a3; }

code, pre {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.9em;
}

code {
  background: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 2px;
}

pre {
  background: #f5f5f5;
  padding: 1em;
  border-radius: 3px;
  overflow-x: auto;
  line-height: 1.4;
}

pre code { background: none; padding: 0; }

/* Hero section */
.hero {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero h1 {
  margin: 0.5em 0 0.8em;
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
}

.hero-lede {
  font-size: 1.05rem;
  color: #333;
  max-width: 70ch;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.hero-meta a {
  color: #0066cc;
  text-decoration: underline;
}

.hero-meta a:hover { color: #0052a3; }

/* Sections */
.section {
  margin: 3rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-head a {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}

.section-head a:hover { color: #0066cc; }

/* Entry list */
.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry {
  padding: 1.2rem 0;
  border-bottom: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 6ch 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

.entry-meta {
  font-size: 0.85rem;
  color: #999;
  font-family: 'SF Mono', monospace;
}

.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.entry-title a {
  color: #000;
  text-decoration: none;
  border: none;
}

.entry-title a:hover { color: #0066cc; }

.entry-desc {
  color: #555;
  font-size: 0.95rem;
  margin: 0.3rem 0 0.5rem;
  line-height: 1.6;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  background: #f5f5f5;
  color: #666;
  padding: 0.25em 0.6em;
  border-radius: 2px;
  font-family: monospace;
}

.entry-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.entry-links a {
  color: #666;
  text-decoration: none;
  font-family: monospace;
  font-size: 0.8rem;
}

.entry-links a:hover { color: #0066cc; }

.entry-links a::before { content: ""; }

/* Article pages */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.article-meta {
  font-size: 0.8rem;
  color: #999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
}

.article-content p { margin-bottom: 1.2em; }

.article-content blockquote {
  border-left: 2px solid #999;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #999;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  border: none;
}

.footer-links a:hover { color: #0066cc; }

/* Responsive */
@media (max-width: 640px) {
  .container { padding: 0 1.5rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.2rem; }
  .entry { grid-template-columns: 1fr; gap: 0.5rem; }
  .entry-meta { font-size: 0.75rem; }
  .site-nav { gap: 1rem; }
  .hero-meta { gap: 1rem; }
}
