/* familyflourishing.org: its header (_bar.html) on every page, and the index. */
.ff-bar{background:#22302a;color:#f3eee4;font:15px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;border-bottom:1px solid #00000033}
.ff-in{max-width:72rem;margin:0 auto;padding:.55rem 1rem;display:flex;align-items:center;gap:.4rem 1.2rem;flex-wrap:wrap}
.ff-home{color:#f3eee4;font-weight:700;text-decoration:none;letter-spacing:.01em;white-space:nowrap}
.ff-bar .ff-nav{display:flex;flex-wrap:wrap;gap:.15rem .9rem;margin:0;padding:0;background:none;border:0;position:static}
/* Each page has its own nav styles; these win inside the shared header. */
.ff-bar .ff-nav a{color:#d9e2d6;text-decoration:none;white-space:nowrap;margin:0;padding:.15rem 0;border:0;background:none;font:inherit;letter-spacing:normal;text-transform:none;display:inline}
.ff-bar .ff-nav a:hover,.ff-bar .ff-nav a[aria-current]{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* The index and books pages */
.ff{--bg:#f6f3ec;--ink:#1f2622;--mute:#5a645d;--card:#fffdf8;--line:#d9d3c6;--accent:#2f5d4a;
  margin:0;background:var(--bg);color:var(--ink);font:18px/1.55 Georgia,"Iowan Old Style","Palatino Linotype",serif}
@media (prefers-color-scheme:dark){.ff{--bg:#141815;--ink:#ece8de;--mute:#a7b0a8;--card:#1c221e;--line:#323b35;--accent:#8fc4a8}}
.ff main{max-width:72rem;margin:0 auto;padding:2.5rem 1rem 3rem}
.ff h1{font-size:clamp(2rem,6vw,3.2rem);line-height:1.1;margin:0 0 .6rem}
.ff .lede{font-size:1.15rem;color:var(--mute);max-width:40rem;margin:0 0 2rem}
.ff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1rem;list-style:none;padding:0;margin:0}
.ff-card{display:flex;gap:1rem;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1.1rem;color:inherit;text-decoration:none;height:100%;box-sizing:border-box}
.ff-card:hover,.ff-card:focus-visible{border-color:var(--accent)}
.ff-card img,.ff-card .ff-mark{width:56px;height:56px;flex:0 0 56px;border-radius:12px}
.ff-card .ff-mark{display:grid;place-items:center;background:var(--accent);color:var(--card);font:700 1.5rem/1 system-ui,sans-serif}
.ff-card b{display:block;font-size:1.2rem;margin-bottom:.2rem}
.ff-card span{font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--mute)}
.ff footer{max-width:72rem;margin:0 auto;padding:1.5rem 1rem 2.5rem;border-top:1px solid var(--line);font:15px/1.5 system-ui,sans-serif;color:var(--mute)}
.ff footer a{color:var(--accent)}

/* Prose pages (the model ordinance): a line length a reader can follow, and links in the theme colour. */
.ff main p,.ff main ol,.ff main ul:not(.ff-grid),.ff main h2,.ff main h3,.ff main blockquote,.ff main table{max-width:42rem}
.ff main a{color:var(--accent)}
