/* Brand tokens mirror the Atenda app (app/assets/tailwind/application.css). */
:root {
  --brand-50: #f7f5ff;
  --brand-100: #eeeafe;
  --brand-600: #7057c8;
  --brand-700: #5c45aa;
  --brand-950: #271d4a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); }
a:hover { color: var(--brand-950); }

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--brand-600);
  text-decoration: none;
}

.brand-section {
  font-weight: 500;
  color: var(--muted);
}

.site-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.intro { padding: 3rem 0 2rem; }

.intro h1,
.post-header h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--brand-950);
  margin: 0 0 1rem;
}

.intro p { font-size: 1.1rem; color: var(--muted); margin: 0; }

.post-list { list-style: none; padding: 0; margin: 0; }

.post-list li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.post-list a { text-decoration: none; color: inherit; }
.post-list h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 0.4rem; color: var(--brand-950); }
.post-list a:hover h2 { color: var(--brand-700); }
.post-list p { margin: 0; color: var(--muted); }
.post-list .empty { color: var(--muted); }

.post-meta { font-size: 0.9rem; color: var(--muted); margin: 0.5rem 0 0; }

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

.post-content { font-size: 1.1rem; }
.post-content h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; color: var(--brand-950); }
.post-content h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 3px solid var(--brand-600);
  background: var(--brand-50);
  border-radius: 0 0.5rem 0.5rem 0;
}
.post-content code { font-size: 0.9em; background: var(--brand-50); padding: 0.1em 0.35em; border-radius: 0.3em; }
.post-content pre { overflow-x: auto; background: var(--brand-950); color: var(--brand-50); padding: 1rem; border-radius: 0.75rem; }
.post-content pre code { background: none; padding: 0; }

.back { margin-top: 3rem; }

.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p { margin: 0.25rem 0; }
