/* Footer (after charity: water, Linear, Radiating Hope): no dark slab. It sits on the beige page with plenty of air; the coral "caring" panel
   above is the big closing moment, and the footer is just a quiet index under it. Hairline rules, small type, ink links that darken on
   hover with the nav's ink underline. Loads after style.css and overrides its old .foot rules. */
.foot { background: none; color: var(--ink); margin: 0; border-radius: 0; padding: calc(8.5 * var(--u)) 4vw calc(3.2 * var(--u)); }
.foot-in { width: min(calc(94 * var(--u)), 100%); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: calc(4 * var(--u)); align-items: start; }

/* brand: plain logo, one serif line */
.f-logo { display: inline-flex; align-items: center; gap: .39em; font-family: 'Newsreader', Georgia, serif; font-weight: 500; letter-spacing: -.02em; font-size: max(19px, calc(1.6 * var(--u))); color: var(--ink); text-decoration: none; }
.f-logo img, .f-logo .logo-mark { width: calc(2.67 * var(--u)); height: auto; min-width: 32px; }   /* mark : name = 30 : 18, as in the nav */
.f-line { margin: calc(1.6 * var(--u)) 0 0; max-width: 17em; font-family: var(--display); font-weight: 400; letter-spacing: var(--dls); font-size: max(17px, calc(1.75 * var(--u))); line-height: 1.32; color: rgba(43, 45, 49, .82); text-wrap: pretty; }

/* columns: small sans heading, quiet links */
.foot h3 { margin: 0 0 calc(1.7 * var(--u)); font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: max(14px, calc(1.2 * var(--u))); color: var(--ink); }
.f-col { gap: calc(1.1 * var(--u)); }
/* hover: the same underline as the nav's About / Contact (a 2px ink line that draws in from the left), so links behave alike everywhere */
.foot .flink, .f-col .flink, .f-top { position: relative; font-weight: 500; font-size: max(14px, calc(1.2 * var(--u))); color: rgba(43, 45, 49, .66); border: 0; padding: 0 0 4px; text-decoration: none;
  background: none; transition: color .2s; }
.foot .flink::after, .f-col .flink::after, .f-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.foot .flink:hover, .f-col .flink:hover, .f-top:hover, .foot .flink:focus-visible, .f-top:focus-visible { color: var(--ink); }
.foot .flink:hover::after, .f-col .flink:hover::after, .f-top:hover::after, .foot .flink:focus-visible::after, .f-top:focus-visible::after { transform: scaleX(1); }
.foot :focus-visible { outline: 2px solid var(--red-deep); outline-offset: 3px; border-radius: 4px; }

/* base row: credits left, back to top right */
.f-base { width: min(calc(94 * var(--u)), 100%); margin: calc(8 * var(--u)) auto 0; padding-top: calc(1.8 * var(--u)); border-top: 1px solid rgba(43, 45, 49, .14);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.foot .legal { width: auto; margin: 0; padding: 0; border: 0; max-width: 62em; font-size: max(12px, calc(.95 * var(--u))); line-height: 1.5; color: rgba(43, 45, 49, .55); opacity: 1; }
.foot .legal a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.foot .legal a:hover { color: var(--ink); }
.f-top { flex: none; font-size: max(12px, calc(1 * var(--u))); }

@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .foot { margin: 0; padding: 7vh 6vw 28px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .f-brand { grid-column: 1 / -1; }
  .f-line { font-size: 1.25rem; } .foot h3 { font-size: .95rem; margin-bottom: 14px; } .f-col { gap: 12px; }
  .foot .flink, .f-col .flink { font-size: 1rem; }
  .f-base { flex-direction: column; gap: 14px; margin-top: 48px; padding-top: 18px; } .foot .legal { font-size: .8rem; } .f-top { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .foot .flink, .f-top, .foot .flink::after, .f-top::after { transition: none; } }
