@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400&display=swap");

:root {
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --background: #ffffff;
  --subtle-bg: #f9f9fa;
  --border-light: #e5e5e7;
  --accent: #5849be;
  --accent-hover: #473a9d;
}

html {
  font-size: 16px;
}

body {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--background);
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400; /* Not bold, just regular */
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 1.9rem;
  margin-top: 1.5rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

code {
  font-family: "SF Mono", Menlo, monospace;
  background-color: var(--subtle-bg);
  padding: 0.15em 0.3em;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--text-primary);
}

pre {
  background-color: var(--subtle-bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

pre code {
  background-color: transparent;
  padding: 0;
}

blockquote {
  border-left: 2px solid var(--border-light);
  padding-left: 1.25rem;
  margin-left: 0;
  margin-right: 0;
  color: var(--text-secondary);
  font-style: italic;
}

img.illustration {
  width: 50%;
  margin: auto;
  display: block;
}

img.rating-label {
  width: 30%;
  float: right;
  padding-left: 1em;
}
