@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700&display=swap');

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

:root {
  --bg: #2A1F1D;
  --text: #DEC165;
  --accent: #BE8A13;
  --muted: #7F6A55;
  --link: #7CC9CF;
  --link-hover: #FFCB1B;
  --headline: #FFEAA3;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

body { padding: 40px 20px; }

.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Avatar */
.avatar-container { text-align: center; margin-bottom: 60px; }
.avatar {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border: 2px solid var(--muted);
  padding: 2px;
  background: var(--bg);
}

/* Headings */
h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--headline);
  letter-spacing: -0.02em;
}

.section { margin-bottom: 48px; }
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Links list */
.link-item { margin-bottom: 12px; padding-left: 16px; position: relative; }
.link-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}
.link-item:hover::before { color: var(--link-hover); }
.link-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 16px;
}
.link-item a:hover { color: var(--headline); }

/* Contact */
.contact-info { font-size: 14px; line-height: 1.8; color: #BFC65A; }
.contact-info a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
.contact-info a:hover { color: var(--text); }

/* Writing links */
.writing-item { margin-bottom: 14px; padding-left: 16px; position: relative; font-size: 15px; }
.writing-item::before { content: "·"; position: absolute; left: 4px; color: var(--muted); }
.writing-item a {
  color: #E6A96B;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 300;
}
.writing-item a:hover { color: var(--headline); }

/* Nav links (small) */
.nav-links { margin-bottom: 40px; }
.nav-links a {
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--link-hover); }

/* Essay layout */
.essay-header {
  text-align: center;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--muted);
}
.essay-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--headline);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.author { font-size: 18px; color: var(--muted); font-weight: 400; }
.essay-content { margin-bottom: 80px; }
.essay-content p { margin-bottom: 24px; color: var(--text); text-align: justify; font-weight: 300; }
.essay-content p:first-of-type { font-size: 18px; line-height: 1.9; margin-bottom: 32px; }

.quote { margin: 32px 0; padding: 24px; border-left: 3px solid var(--accent); background: rgba(0,0,0,0.2); font-style: italic; }
.quote-author { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; font-style: normal; }

.section-break { text-align: center; margin: 48px 0; color: var(--muted); letter-spacing: 8px; }
.emphasis { color: var(--link-hover); font-weight: 600; }

.essay-footer { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--muted); text-align: center; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* Responsive */
@media (max-width: 768px) {
  body { padding: 30px 20px; font-size: 15px; }
  h1 { font-size: 28px; margin-bottom: 40px; }
  .avatar { width: 150px; height: 150px; }
  .section { margin-bottom: 36px; }
  .essay-title { font-size: 28px; }
  .essay-content p { text-align: left; }
  .quote { padding: 16px; margin: 24px 0; }
}