/* yarlath.ai — the footer, one stylesheet for all 9 pages (v1.7, 2026-12-02).
   The markup comes from tools/partials/footer.html (written into every page by tools/sync_footer.py).
   Each page links this file after its own <style>, so the page's own fonts and colours (the CSS variables) stay its own.
   .site-footer--main = the main page (index.html) · .site-footer--sub = the subpages · the gallery adds two lines. */

.site-footer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); }
.site-footer--main { margin-top: 60px; }

.site-footer .footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }

/* the signature: portrait + name, title, e-mail */
.site-footer .signature-block { display: flex; align-items: center; gap: 16px; margin-top: 0; padding-top: 0; border-top: none; }
.site-footer .sig-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(80%); cursor: pointer; }
.site-footer .sig-text { font-size: 0.88rem; }
.site-footer .sig-text strong { display: block; color: var(--text); }
.site-footer--main .sig-text strong { font-family: var(--fell); font-weight: 400; font-size: 1.15em; letter-spacing: 0; }
.site-footer .sig-text span { color: var(--text-light); font-size: 0.82rem; white-space: nowrap; }
.site-footer .sig-text .sig-a, .site-footer .sig-text .sig-b { white-space: nowrap; }
.site-footer--sub .sig-text a { color: var(--accent); text-decoration: none; font-size: 0.82rem; border-bottom: 1px dotted var(--accent-line); }

/* support / patronage */
.site-footer--main .footer-right { padding-top: 2px; padding-left: clamp(0px, calc(100% - 205px), 150px); }
.site-footer .footer-right h3 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0; line-height: 1.4; }
.site-footer--main .footer-right h3 { font-family: var(--serif); text-transform: lowercase; font-variant-caps: small-caps; letter-spacing: 0.1em; font-weight: 500; }
.site-footer--sub .footer-right h3 { padding-left: clamp(0px, calc(100% - 205px), 150px); }
.site-footer .support-links { display: flex; gap: 12px; align-items: center; font-size: 0.82rem; font-weight: 500; margin-top: 2px; }
.site-footer--main .support-links { margin-bottom: 6px; }
.site-footer--sub .support-links { padding-left: clamp(0px, calc(100% - 205px), 150px); } /* margin-bottom: the page's own p rule (16 px; 0 on the gallery) */
.site-footer .support-links a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent-line); padding: 4px 0; }
.site-footer--main .support-links a:hover { border-bottom-style: solid; }

/* the gallery's left column: the mantra */
.site-footer .footer-mantra { font-size: 0.85rem; color: #f3f0e5; font-family: var(--serif); font-style: italic; margin-top: 12px; } /* 12 px: the gap the Privacy line above it had (v1.9); margin-bottom: the page's own p rule */

/* the bottom line (v1.9): the disclaimer, the licence and Privacy in one italic, centred paragraph — the page's last line */
.site-footer .footer-carry { text-align: center; font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--text-light); margin: 52px 0 0; line-height: 1.5; }
.site-footer .footer-carry a { color: inherit; text-decoration: none; border: 0; }

@media (max-width: 600px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer--main .footer-right, .site-footer--sub .footer-right h3, .site-footer--sub .support-links { padding-left: 0; }
  .site-footer .signature-block { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer .sig-text span { font-size: min(0.82rem, 3.6vw); }
  .site-footer .sig-text > span { white-space: normal; } /* the title breaks after "·" */
  .site-footer .footer-carry { margin-top: 24px; }
}
