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

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e2ddd8;
  --text: #1a1814;
  --muted: #6b6560;
  --accent: #5a4a3a;
  --link: #4a6a5a;
  --radius: 4px;
  --max-w: 680px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

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

.site-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  color: var(--accent);
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

.write-link {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.write-link a {
  color: var(--link);
}

.letters {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.letter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}

.letter header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.subject {
  font-size: 1.15rem;
  font-weight: normal;
  font-style: italic;
  margin: 0 0 0.5rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

.delay {
  opacity: 0.7;
  font-style: italic;
}

.body p {
  margin: 0 0 1rem;
}

.body p:last-child {
  margin-bottom: 0;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 600px) {
  main { padding: 2rem 1rem 4rem; }
  .letter { padding: 1.25rem 1.5rem; }
}
