/* Without - what every page of the website shares: the footer and the way a
 * page appears. Loaded by the public pages, not by the app or the admin page.
 * The footer markup lives in partials/footer.html (tools/sync-footer.mjs copies
 * it into each page; test/site-footer.test.mjs fails if a copy drifts).
 */

/* A page arrives slightly soft and sharpens. The fonts are preloaded and use
   font-display:block, so the first text drawn is already the right face and
   size; this only makes the arrival gentle. `to{filter:none}` (not blur(0)),
   so the finished page has no filter - a filter would pin fixed elements
   such as the cookie button to the body instead of the window. */
@keyframes wo-page-in{from{opacity:.35;filter:blur(6px)}to{opacity:1;filter:none}}
@media (prefers-reduced-motion:no-preference){ body{animation:wo-page-in .45s ease-out both} }

/* The logo mark follows the brand colour: the logo red on paper, the pink in
   dark mode - never the hard red on a dark page. The SVG files keep #C8102E. */
.logo svg rect,.flogo svg rect,.cmplogo svg rect{fill:var(--brand)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.site-foot{border-top:1px solid var(--line);margin-top:72px;padding:56px 0 40px;font-family:var(--font-sans);font-size:14px;
  text-align:left;align-self:stretch;width:100%;box-sizing:border-box;color:var(--muted);background:var(--bg)}
.site-foot-in{max-width:1080px;margin:0 auto;padding:0 20px}
.site-foot .fgrid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px 64px}
@media(max-width:760px){ .site-foot .fgrid{grid-template-columns:1fr 1fr;gap:36px 40px} }
.site-foot h2{font-family:var(--font-sans);line-height:1.3;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--faint);font-weight:700;margin:0 0 14px}
.site-foot a{display:block;color:var(--muted);text-decoration:none;padding:5px 0;margin:0;transition:color .12s;font-weight:400}
.site-foot a:hover{color:var(--text)}
.site-foot p{font-family:var(--font-sans);margin:0;line-height:1.5}
.site-foot .fbrand p{max-width:280px;margin:14px 0 0;font-size:14px;color:var(--muted)}
.site-foot .flogo{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.02em;color:var(--text);padding:0}
.site-foot .flogo .dot{color:var(--brand)}
.site-foot .flegal{margin-top:44px;padding-top:22px;border-top:1px solid var(--line);color:var(--faint);font-size:13px;line-height:1.7;
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.site-foot .badge18{display:inline-block;border:1px solid var(--line-strong);border-radius:6px;padding:2px 7px;font-weight:700;
  font-size:11px;color:var(--muted);margin-right:8px}
.site-foot .heart{color:var(--brand);font-size:1.1em}
@media(max-width:760px){ .site-foot .fmade{order:3;flex-basis:100%} }
/* The "you are leaving the website" dialog (site.js). */
.wo-leave{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;
  background:color-mix(in srgb,var(--ink-900) 55%,transparent);animation:wo-leave-in .16s ease-out}
.wo-leave-box{width:100%;max-width:420px;box-sizing:border-box;background:var(--surface);color:var(--text);
  border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:24px 24px 20px;font-family:var(--font-sans)}
.wo-leave-box h2{font-family:var(--font-serif);font-size:24px;line-height:1.2;letter-spacing:-.015em;font-weight:720;margin:0 0 10px}
.wo-leave-box p{font-family:var(--font-sans);margin:0 0 20px;color:var(--muted);font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.wo-leave-row{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.wo-leave-row button{font-family:var(--font-sans);font-size:15px;font-weight:700;border-radius:var(--radius-pill);padding:11px 20px;cursor:pointer}
.wo-leave-no{background:transparent;color:var(--text);border:1px solid var(--line-strong)}
.wo-leave-no:hover{background:var(--surface-2)}
.wo-leave-yes{background:var(--brand);color:#fff;border:1px solid var(--brand)}
.wo-leave-yes:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.wo-leave-row button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@keyframes wo-leave-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .wo-leave{animation:none} }
@media print{ .site-foot{display:none} }
