:root {
  --text: #2c2c2c;
  --bg: #faf9f7;
  --accent: #5c5c5c;
  --border: #e0ddd8;
  --max-width: 640px;
}

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

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

body {
  font-family: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  padding: 0 1.5rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

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

a:hover {
  color: var(--accent);
}

.essay-footer {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.essay-footer a {
  color: var(--accent);
}

/* Navigation */
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 0;
}

nav a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

/* Home page */
.home {
  padding-top: 6rem;
}

.home h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.home .subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.essay-list {
  list-style: none;
  margin: 2rem 0;
}

.essay-list li {
  margin-bottom: 1.5rem;
}

.essay-list a {
  font-size: 1.15rem;
  text-decoration: none;
  font-weight: 500;
}

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

.essay-list .desc {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

/* Essay navigation at bottom */
.essay-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.essay-nav a {
  color: var(--accent);
  text-decoration: none;
}

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

.essay-nav .next {
  margin-left: auto;
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .home { padding-top: 3rem; }
  .home h1 { font-size: 1.8rem; }
}
