@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@300;400&display=swap');

/* ── Theme tokens ── */
:root {
  --bg:          #0a0a0a;
  --text:        #a0a0a0;
  --text-dim:    #777;
  --text-faint:  #555;
  --text-bright: #d4d4d4;
  --text-max:    #fff;
  --accent:      #999;
  --accent-hover:#ccc;
  --mono:        'JetBrains Mono', monospace;
  --serif:       'EB Garamond', Georgia, serif;
  --border:      #1a1a1a;
  --surface:     #111;
  --surface-dim: #0d0d0d;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

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

/* Layout */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header */
.site-header {
  margin-bottom: 4rem;
}

.site-header h1 {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-bright);
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.site-header h1 a {
  color: inherit;
  border: none;
}

.site-header h1 a:hover {
  color: var(--text-max);
}

.site-nav {
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

.site-nav a {
  color: var(--text-dim);
  margin-right: 1.5rem;
  border: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

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

.site-nav a.active {
  color: var(--accent);
}

/* About section on index */
.about-text {
  color: var(--text-dim);
  margin-bottom: 4rem;
  font-style: italic;
}

.about-text p {
  margin-bottom: 1rem;
}

/* Feed */
.feed-entry {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--surface);
}

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

.feed-entry .timestamp {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: block;
}

.feed-entry .content {
  color: var(--text);
}

.feed-entry .content p {
  margin-bottom: 1rem;
}

.feed-entry .content em {
  color: #aaa;
}

.feed-entry .content code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

.feed-entry .content pre {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--text-dim);
  background: var(--surface-dim);
  padding: 1rem;
  border-left: 2px solid var(--border);
  margin: 1.2rem 0;
  overflow-x: auto;
  line-height: 1.5;
}

.feed-entry .tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-top: 0.5rem;
  display: inline-block;
}

/* Works section */
.works-list {
  list-style: none;
}

.works-list li {
  margin-bottom: 2rem;
}

.works-list .date {
  display: block;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.works-list .description {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* Section headers */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin-bottom: 2rem;
}

/* About page */
.about-full {
  color: var(--accent);
}

.about-full p {
  margin-bottom: 1.5rem;
}

.about-full h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* More link */
.more-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-top: 1rem;
  display: inline-block;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .page { padding: 2rem 1.2rem; }
  .site-header h1 { font-size: 1.5rem; }
  .site-header { margin-bottom: 3rem; }
}
