@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  --bg: #ffffff;
  --link: #1a1a1a;
  --link-hover: #555555;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  padding: 0 24px;
}

/* Layout */

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 0 120px;
}

/* Home page */

.site-name {
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.bio {
  font-size: 1.0rem;
  color: var(--ink);
  margin-bottom: 48px;
  line-height: 1.75;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.writing-list {
  list-style: none;
}

.writing-list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.writing-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.writing-list a {
  display: block;
  text-decoration: none;
  color: var(--link);
}

.writing-list a:hover .writing-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.writing-title {
  font-size: 1.0rem;
  font-weight: 500;
  margin-bottom: 4px;
}

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

/* Post pages */

.post-header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.back-link:hover {
  color: var(--ink);
}

.back-link::before {
  content: '← ';
}

.post-title {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.post-date {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Post body */

.post-body {
  font-size: 1.0rem;
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 1.4em;
}

.post-epigraph {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2em;
}

.post-epigraph a {
  color: var(--muted);
  text-underline-offset: 2px;
}

.post-epigraph a:hover {
  color: var(--ink);
}

.post-body h3 {
  font-size: 1.0rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.post-body blockquote {
  border-left: 3px solid var(--rule);
  margin: 1.5em 0;
  padding-left: 20px;
  color: var(--muted);
  font-style: italic;
}

.post-body .dialogue {
  margin-bottom: 0.8em;
}

.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.source-notes {
  margin-top: 40px;
}

.source-notes-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.source-notes ul {
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.source-notes ul li {
  padding: 4px 0;
  border-top: 1px solid var(--rule);
}

.source-notes ul li:last-child {
  border-bottom: 1px solid var(--rule);
}

.source-notes a {
  color: var(--muted);
  text-underline-offset: 2px;
}

.source-notes a:hover {
  color: var(--ink);
}

.disclosure {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 32px;
  line-height: 1.65;
}

.post-footer-author {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 32px 0 4px;
}

/* Subscribe */

.subscribe-wrap {
  margin-top: 48px;
}

.subscribe-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subscribe-input {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 12px;
  outline: none;
  flex: 1;
  min-width: 200px;
  transition: border-color 0.15s;
}

.subscribe-input:focus {
  border-color: var(--muted);
}

.subscribe-input::placeholder {
  color: var(--rule);
}

.subscribe-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.subscribe-btn:hover {
  opacity: 0.75;
}

.subscribe-success {
  display: none;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Homepage footer */

.site-footer {
  margin-top: 48px;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-sep {
  margin: 0 8px;
  color: var(--rule);
}
