:root {
  --ink: #1c1a17;
  --muted: #6b6459;
  --accent: #7a2d2d;
  --line: #e5e0d8;
  --bg: #fbf9f5;
  --maxw: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  margin-bottom: 2.5rem;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-name {
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.site-nav a {
  color: var(--muted);
  margin-left: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a.active { color: var(--ink); border-bottom: 2px solid var(--accent); }

/* Content */
.page-title {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1.1rem; }

/* Bio intro */
.lede { font-size: 1.15rem; color: var(--ink); }
.subtitle {
  color: var(--muted);
  font-style: italic;
  margin-top: -0.5rem;
}

/* Publication / talk lists */
.entries { list-style: none; padding: 0; margin: 0; }
.entries li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.entries li:last-child { border-bottom: none; }
.entry-title { font-weight: bold; }
.entry-meta {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.year-tag {
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* Coming-soon landing */
.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.cs-name {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}
.cs-message {
  color: var(--muted);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 1.75rem;
}
.cs-message::before,
.cs-message::after {
  content: "·";
  color: var(--line);
  margin: 0 0.6rem;
}
.cs-contact {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  margin: 0;
}
.cs-contact a { color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece7df;
    --muted: #a49b8c;
    --accent: #d98c8c;
    --line: #38332c;
    --bg: #17150f;
  }
}
