/**
 * Mini CMS — Template: Minimal
 * Spacious, editorial, flat — Notion/Linear aesthetic.
 * Extends base tpl-minimal rules in style.css.
 */
@layer mcms.template {

/* ── Section spacing ─────────────────────────────────────── */
body.tpl-minimal .section-layout {
  padding: 4.5rem 2rem;
  gap: 3rem;
}

@media (max-width: 768px) {
  body.tpl-minimal .section-layout {
    padding: 2.5rem 1rem;
    gap: 2rem;
  }
}

/* ── Typography ──────────────────────────────────────────── */
body.tpl-minimal h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

body.tpl-minimal h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.tpl-minimal h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

body.tpl-minimal .nested-block p {
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ── Header ──────────────────────────────────────────────── */
body.tpl-minimal header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

body.tpl-minimal { --title-size: 1.1rem; --step-mult: 1; }
body.tpl-minimal .site-title { letter-spacing: -0.01em; }

body.tpl-minimal .mcms-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* ── Cards — flat, no shadow ─────────────────────────────── */
body.tpl-minimal .card {
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: none;
  background: transparent;
}

body.tpl-minimal .card:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--primary);
}

body.tpl-minimal .card img {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Buttons — understated ───────────────────────────────── */
body.tpl-minimal .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

body.tpl-minimal .btn:hover {
  transform: none;
}

body.tpl-minimal .btn-primary:hover {
  box-shadow: none;
}

/* ── Section dividers — lighter ──────────────────────────── */
body.tpl-minimal[data-section-divider="1"] main .mcms-section:not(:last-child) {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 28%, transparent);
  box-shadow: none;
}

/* ── Footer ──────────────────────────────────────────────── */
body.tpl-minimal footer:not(.footer-rich) {
  padding: 2rem 2rem;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
}
