/* ====================== footer (shared by index.html and the article pages) ======================
   Layout, type, buttons and icons. Colours come from --theme / --shade / --sfg / --sfg-soft: the index sets them as you scroll
   (or per section in static mode), the article pages set fixed ones in article.css. Loaded after the page's own stylesheet. */
#footer-section { margin-top: 0; text-align: center; }
#footer-section .container, #footer-section .wrap { padding-top: 0; padding-bottom: 0; text-align: center; }
#footer-section h3 { font-family: "Fraunces", Georgia, serif; font-weight: 650; letter-spacing: -0.01em; text-align: center; color: var(--sfg); }
#footer-section p { color: var(--sfg); }

/* footer links are text only: no icons (this also cancels the icons common.css adds) */
#footer-section #icon-email,
#footer-section #icon-linkedin,
#footer-section #icon-cv,
#footer-section #icon-more { display: inline; padding-left: 0; background: none; }

/* footer buttons: plain text links (no outline); they fade slightly on hover */
#footer-section #buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 16px; }
#footer-section .button {
    float: none; width: auto; margin: 0;
    padding: 0.5em 0; border: 0; border-radius: 0;
    background-color: transparent; color: var(--sfg);
    font-size: 17px; line-height: 1em; text-align: left;
    transition: opacity 200ms;
}
@media screen and (hover: hover) {
    #footer-section .button:hover { opacity: .6; background-color: transparent; border-color: transparent; color: var(--sfg); box-shadow: none; }
}
#footer-section .button:focus-visible { opacity: .6; outline: none; }
/* small screens: two by two, so there is no lone button on its own row */
@media screen and (max-width: 479px) {
    #footer-section #buttons { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 8px 44px; }
}

/* ---- split footer (all pages that load this file): heading and a line on the left, contact links stacked on the right, on the page's two-column grid.
   Sizes are in px so it looks identical on the home page and the case studies (their root font sizes differ). ---- */
#footer-section.footer-split { height: auto; background-image: none; padding: 104px 0; text-align: left; }
#footer-section.footer-split .wrap, #footer-section.footer-split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; text-align: left; }
#footer-section.footer-split h3 { font-size: 26px; line-height: 1.2; text-align: left; margin: 0 0 14px; } /* same size as the case studies' sub-headings */
#footer-section.footer-split .fs-intro p { width: auto; max-width: 420px; margin: 0; font-size: 18px; line-height: 1.6; text-align: left; color: var(--sfg-soft); }
#footer-section.footer-split .fs-links { border-top: 1px solid color-mix(in srgb, var(--sfg) 25%, transparent); margin-top: 8px; }
#footer-section.footer-split .fs-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--sfg) 25%, transparent); color: var(--sfg); text-decoration: none; font-size: 17px; line-height: 1.4; }
#footer-section.footer-split .fs-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms; }
@media (hover: hover) { #footer-section.footer-split .fs-links a:hover svg { transform: translateX(4px); } }
#footer-section.footer-split .fs-links a:focus-visible { outline: 2px solid var(--sfg); outline-offset: 2px; }
@media screen and (max-width: 759px) {
    #footer-section.footer-split { padding: 72px 0; }
    #footer-section.footer-split .wrap, #footer-section.footer-split .container { grid-template-columns: 1fr; gap: 40px; }
    #footer-section.footer-split h3 { font-size: 24px; }
}
