:root {
  --bg: #f5f0e8;
  --text: #2c2418;
  --muted: #7a6e5f;
  --accent: #4a6741;
  --border: #d8d0c4;
  --link: #4a6741;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

header h1 a {
  color: var(--text);
}

nav {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

nav a {
  color: var(--muted);
  margin-right: 1.2rem;
}

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

/* Sections */
section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Bio */
.bio {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.bio .profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.bio .bio-text {
  flex: 1;
}

.bio p {
  margin-bottom: 0.8rem;
}

@media (max-width: 600px) {
  .bio {
    flex-direction: column;
    align-items: center;
  }
  
  .bio .profile-pic {
    margin-bottom: 1.5rem;
  }
}

/* Writing list */
.writing-list {
  list-style: none;
}

.writing-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.writing-list li:first-child {
  border-top: 1px solid var(--border);
}

.writing-list .title {
  flex: 1;
}

.writing-list .meta {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* CV table */
.cv-block {
  margin-bottom: 1.8rem;
}

.cv-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.cv-row {
  display: flex;
  gap: 1.5rem;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.cv-row .year {
  color: var(--muted);
  min-width: 5rem;
  font-size: 0.85rem;
}

/* Essay */
.essay-header {
  margin-bottom: 2.5rem;
}

.essay-header h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.essay-header .byline {
  font-size: 0.88rem;
  color: var(--muted);
}

.essay-body h2 {
  font-size: 1rem;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin: 2rem 0 0.5rem;
}

.essay-body p {
  margin-bottom: 1rem;
}

.essay-body .footnote-ref {
  font-size: 0.75em;
  vertical-align: super;
  color: var(--accent);
}

.back-link {
  font-size: 0.88rem;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 2.5rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
