:root {
  color-scheme: light dark;
  --bg: #fafaf7;
  --fg: #1f2933;
  --muted: #5b6470;
  --soft: #8a93a0;
  --accent: #2f7d4f;
  --rule: rgba(31, 41, 51, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --fg: #ecedee;
    --muted: #aab2bc;
    --soft: #79828d;
    --accent: #6dbf8a;
    --rule: rgba(236, 237, 238, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 6rem) 1.25rem;
}

main.prose {
  max-width: 680px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  text-decoration: none;
}
.brand-mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--fg);
  margin: 0 0 2rem;
}

.beat {
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.next {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.next strong {
  color: var(--fg);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--soft);
  letter-spacing: 0.02em;
}

/* Long-form prose (article pages) */
.prose .article-meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--soft);
  letter-spacing: 0.02em;
}
.prose .article-meta time {
  color: var(--muted);
}

.prose h1 {
  margin-bottom: 1.5rem;
}

.prose .lede-prose {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  color: var(--fg);
  margin: 0 0 2.25rem;
  line-height: 1.5;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 2.75rem 0 0.85rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2rem 0 0.6rem;
}

.prose p {
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

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

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose blockquote {
  margin: 1.5rem 0 1.75rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}
.prose blockquote p {
  margin: 0 0 0.75rem;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}
.prose li {
  margin: 0 0 0.6rem;
  line-height: 1.6;
}
.prose li:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2.5rem 0;
}

.prose .article-coda {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* "More from Montessori Mind" footer module */
.more-from {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 3rem;
}
.more-from h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 0.85rem;
}
.more-from ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.more-from li {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.more-from a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.more-from a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
