/* boconnell.org — design system. Monospace · black on white · 3 sizes · 2 weights.
   Loaded everywhere except the CBII post (see functions.php). */
:root{
  --ink:#111; --paper:#fff; --rule:#111; --faint:#bbb; --mut:#666;
  --l:18px; --m:13px; --s:11px;
  --mono: ui-monospace,"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;
  --gap:24px; --pad:28px; --max:980px; --measure:64ch;
}
html,body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--mono); font-size:var(--m); line-height:1.7; -webkit-text-size-adjust:100%; }
a{ color:var(--ink); text-decoration:none; } a:hover{ text-decoration:underline; }
strong,b{ font-weight:700; } em,i{ font-style:normal; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 var(--pad); }
.skip{ position:absolute; left:-9999px; } .skip:focus{ left:8px; top:8px; background:#111; color:#fff; padding:6px 10px; z-index:10; }

/* header — sticky (opaque background so content scrolls under it cleanly) */
header.site{ position:sticky; top:0; z-index:100; background:var(--paper); border-bottom:1px solid var(--rule); }
/* When the WP admin bar is showing (logged-in view), it's fixed over the top 32/46px.
   Offset the sticky header so its type isn't hidden behind it. No effect for public visitors. */
@media screen and (min-width:783px){ body.admin-bar header.site{ top:32px; } }
@media screen and (max-width:782px){ body.admin-bar header.site{ top:46px; } }
header.site .row{ display:flex; justify-content:space-between; align-items:baseline; padding:14px 0; gap:16px; }
header.site .name{ font-weight:700; white-space:nowrap; }
nav.menu ul{ list-style:none; margin:0; padding:0; display:flex; gap:18px; flex-wrap:wrap; justify-content:flex-end; }
nav.menu li{ margin:0; }
.menu-toggle{ display:none; font-family:var(--mono); font-size:var(--m); background:none; border:1px solid var(--rule); padding:2px 8px; cursor:pointer; }

/* footer */
footer.site{ border-top:1px solid var(--rule); margin-top:56px; }
footer.site .row{ display:flex; justify-content:space-between; align-items:baseline; padding:14px 0; gap:16px; flex-wrap:wrap; font-size:var(--s); color:var(--mut); }
footer.site nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:16px; flex-wrap:wrap; }

/* page scaffold */
main{ padding:40px 0 0; }
.crumb{ font-size:var(--s); color:var(--mut); margin-bottom:14px; }
h1, .boc-head h1, .boc-archive-head h1, h1.title{ font-size:var(--l); font-weight:700; line-height:1.25; margin:0 0 6px; }
h2,h3,h4,h5,h6{ font-size:var(--m); font-weight:700; margin:1.3em 0 .35em; }
.boc-meta, .meta, .boc-dim, small, figcaption, .lenshead, .facets{ font-size:var(--s); }
.boc-meta, .meta, .lenshead{ color:var(--mut); }

/* body / content — wide content; readable measure on prose only */
.boc-single{ max-width:var(--max); }
.boc-essay, .boc-summary, .entry-content, .body{ max-width:none; }
.entry-content p, .boc-essay p, .boc-summary p, .body p,
.entry-content blockquote, .boc-essay blockquote, .boc-summary blockquote{ max-width:var(--measure); }
.boc-essay p, .boc-summary p, .entry-content p, .body p{ margin:0 0 1.1em; }
blockquote{ margin:1.4em 0; padding-left:16px; border-left:1px solid var(--rule); }
.boc-facets, .facets{ display:flex; flex-wrap:wrap; gap:6px 20px; margin:0 0 28px; }
.boc-facet .k, .facets .k, .boc-facet strong{ font-weight:700; }

/* Our OWN template galleries use this grid. Block galleries/columns keep their
   authored native layout (columns-N) — we only guard against overflow. */
.grid, .boc-gallery{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:var(--gap); margin:28px 0; }
.fig .ph{ aspect-ratio:4/3; border:1px solid var(--rule); display:flex; align-items:center; justify-content:center; color:var(--mut); }
figcaption{ color:var(--mut); margin-top:6px; line-height:1.4; font-size:var(--s); }
.entry-content img{ max-width:100%; height:auto; }
.wp-block-video video{ max-width:100%; height:auto; }

/* NOTE: block-gallery layout, image grids, and multi-column text are handled by the
   boconnell-layout mu-plugin (JS). The legacy .boc-uniform gallery grid and .cols-* text
   systems were removed from here to avoid duplicating/conflicting with it. */

/* wide & full-bleed blocks (images spanning columns / full-bleed).
   overflow-x:clip (not hidden) stops horizontal scroll WITHOUT breaking position:sticky. */
html, body{ overflow-x:clip; }
.alignwide{ width:min(1180px, 96vw); max-width:none; margin-left:50%; transform:translateX(-50%); }
.alignfull{ width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }

/* collapsible two-column */
.cols{ display:grid; grid-template-columns:2fr 1fr; gap:var(--gap); margin:28px 0; align-items:start; }
.side{ font-size:var(--s); color:var(--mut); border-top:1px solid var(--rule); padding-top:8px; }

/* home splash — full-screen regenerating image field; fills, refreshes, click -> Archive */
.boc-splash{ position:fixed; inset:0; z-index:1; overflow:hidden; background:var(--paper); cursor:pointer; }
.boc-splash a{ position:absolute; display:block; }
.boc-splash a img{ display:block; width:100%; height:auto; }
body.home header.site{ position:relative; z-index:100; background:var(--paper); }
body.home footer.site{ position:fixed; left:0; right:0; bottom:0; z-index:100; margin:0; background:var(--paper); }

/* relationships */
.boc-rel, .rel{ border-top:1px solid var(--rule); margin-top:32px; padding-top:10px; font-size:var(--s); }
.boc-rel h3, .rel .k{ font-weight:700; }
.boc-rel ul{ list-style:none; margin:0; padding:0; } .boc-rel li{ display:inline; margin-right:12px; }

/* index / lens listing */
.boc-list, .index{ list-style:none; margin:24px 0; padding:0; }
.boc-list li, .index .r{ display:flex; justify-content:space-between; gap:8px 16px; border-bottom:1px dotted var(--faint); padding:5px 0; flex-wrap:wrap; font-size:var(--m); }
.boc-list li .boc-dim, .index .r .yr{ color:var(--mut); white-space:nowrap; margin-left:auto; }
.boc-gap, .index .r.gap{ color:#999; }
.boc-badge{ font-size:var(--s); border:1px solid var(--ink); padding:0 5px; }

*{ border-radius:0 !important; box-shadow:none !important; }

/* ---- Responsive (nav + spacing; image/column stacking is handled by boconnell-layout.php) ---- */
@media(max-width:810px){
  :root{ --pad:20px; --gap:18px; }
  .menu-toggle{ display:inline-block; }
  nav.menu{ display:none; width:100%; }
  nav.menu ul{ flex-direction:column; align-items:flex-start; gap:10px; border-top:1px solid var(--rule); padding:12px 0; }
  header.site.open nav.menu{ display:block; }
  header.site .row{ flex-wrap:wrap; }
  .cols{ grid-template-columns:1fr; }
  .grid, .boc-gallery{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:440px){
  :root{ --pad:16px; --gap:14px; }
  .grid, .boc-gallery{ grid-template-columns:1fr; }
  .boc-list li .boc-dim, .index .r .yr{ margin-left:0; flex-basis:100%; }
}
