/* LeafyOrb — cozy-editorial design system (self-contained, no external fonts/CDNs). */

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-alt: #f3ece0;
  --ink: #2c2622;
  --muted: #7a7167;
  --line: #e7ddce;
  --accent: #4c8c6b;
  --accent-dark: #3e7358;
  --accent-soft: #e3efe7;
  --danger: #c0553b;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --surface: #241f1b;
    --surface-alt: #2e2823;
    --ink: #f2ece3;
    --muted: #a79c8e;
    --line: #3a322b;
    --accent: #6fb58c;
    --accent-dark: #8ac7a4;
    --accent-soft: #26362d;
    --danger: #e0765a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
small { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) { .nav { gap: 14px; } .nav a.hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; border: none; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Cards / grid */
.grid { display: grid; gap: 20px; margin: 28px 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Feature list */
.pill-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.pill-list li { padding-left: 26px; position: relative; color: var(--ink); }
.pill-list li::before { content: "◈"; position: absolute; left: 0; color: var(--accent); }

/* Sections */
.section { padding: 40px 0; }
.section.alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Legal / prose pages */
.prose { padding: 48px 0 64px; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; }
.callout { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 1.4em 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0; color: var(--muted); font-size: 0.92rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; flex-direction: column; gap: 8px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 4px; }
.fineprint { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
