:root {
  --bg: #efeae2;
  --panel: #ffffff;
  --bubble: #dcf8c6;
  --text: #1f1f1f;
  --muted: #5f6b66;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --max-width: 680px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.02)),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

.site-header {
  padding: 2.25rem 1rem 1.25rem;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.site-tagline {
  margin: 0.6rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.timeline {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.loading {
  padding: 2rem 0;
  color: var(--muted);
}

.post-card {
  margin: 0 0 1.25rem;
  display: flex;
}

.post-card__bubble {
  width: 100%;
  max-width: 100%;
  background: var(--bubble);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.post-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.15;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__title a:hover {
  text-decoration: underline;
}

.post-card__excerpt {
  margin: 0 0 1rem;
}

.post-card__actions {
  display: flex;
  justify-content: flex-end;
}

.post-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}

.post-link:hover {
  text-decoration: underline;
}

.load-more-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.load-more-btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
}

.load-more-btn:hover {
  transform: translateY(-1px);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Standalone post page */

.post-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.back-link {
  display: inline-block;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
}

.message {
  background: var(--bubble);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.message__meta {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.message h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.message h2,
.message h3 {
  line-height: 1.2;
  margin-top: 1.8rem;
}

.message p {
  margin: 0 0 1rem;
  white-space: pre-line;
}

@media (max-width: 680px) {
    .message p {
        white-space: normal;
    }
}

a {
    color: #2222aa;
}

.message ol,
.message ul {
  padding-left: 1.3rem;
}

.message hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

.playlist-recap {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .post-card__bubble,
  .message {
    padding: 1.5rem 1.6rem 1.3rem;
  }
}