.site-footer {
  margin-top: clamp(56px, 8vw, 100px);
  padding: clamp(36px, 6vw, 64px) 0 24px;
  background: var(--forest);
  color: var(--cream);
}
.site-footer a { color: inherit; text-decoration-color: rgba(255, 248, 236, .55); text-underline-offset: 3px; }
.footer-inner { display: grid; justify-items: start; gap: 18px; }
.footer-brand { display: inline-flex; padding: 12px 16px; border-radius: 8px; background: var(--cream); }
.footer-brand .brand-lockup { display: block; width: min(270px, 62vw); height: auto; }
.site-footer .motto { max-width: 38ch; font: italic 1.28rem/1.35 var(--serif); color: var(--cream); }
.footer-navigation { width: 100%; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-social a { display: inline-flex; min-height: 40px; align-items: center; }
.footer-email, .footer-made { color: rgba(255, 248, 236, .82); }
.footer-email a { font-weight: 700; }
.site-footer .footer-social { gap: 12px; }
.site-footer .footer-social a { width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255, 248, 236, .3); border-radius: 50%; text-decoration: none; }
.site-footer .footer-social img { display: block; width: 22px; height: 22px; max-width: none; }
.footer-social a:hover { background: rgba(255, 248, 236, .12); }
.footer-social a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }
.photo-credits { width: 100%; max-width: 76ch; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 248, 236, .24); color: rgba(255, 248, 236, .84); font-size: .9rem; }
.photo-credits summary { width: fit-content; cursor: pointer; font-weight: 700; color: var(--cream); }
.photo-credit-list { display: grid; gap: 6px; padding-left: 20px; }
.photo-credits p { margin-top: 10px; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-brand, .footer-navigation, .photo-credits { grid-column: 1 / -1; }
  .site-footer .motto { align-self: center; justify-self: end; text-align: right; }
  .footer-email, .footer-social { align-self: center; }
  .footer-made { grid-column: 1 / -1; }
}
/* Reset page-specific footer grid areas so this layout is identical everywhere. */
.site-footer { margin-top: 0; background: var(--forest-deep); }
.site-footer .wrap { padding-block: 0; }
.site-footer .footer-inner { grid-template-areas: none; grid-template-columns: 1fr; }
.site-footer .footer-inner > * { grid-area: auto; margin: 0; }
.site-footer .footer-brand { padding: 0; background: transparent; }
.site-footer .footer-brand .brand-lockup { width: min(280px, 80vw); height: auto; box-sizing: border-box; }
.site-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer .footer-social { justify-content: flex-start; }
.site-footer .footer-made { text-align: left; }
.site-footer .photo-credits { max-width: none; padding-top: 20px; }
@media (min-width: 760px) {
 .site-footer .footer-inner { grid-template-columns: 1fr 1fr; grid-template-areas: "brand nav" "motto nav" "email social" "made made" "credits credits"; column-gap: 70px; row-gap: 18px; }
 .site-footer .footer-brand { grid-area: brand; }
 .site-footer .motto { grid-area: motto; text-align: left; justify-self: start; }
 .site-footer .footer-navigation { grid-area: nav; }
 .site-footer .footer-email { grid-area: email; }
 .site-footer .footer-social { grid-area: social; }
 .site-footer .footer-made { grid-area: made; }
 .site-footer .photo-credits { grid-area: credits; }
}
/* Credits stay available but quiet (review, 5 Oct). */
.site-footer .photo-credits { margin-top: 0; padding-top: 10px; border-top-color: rgba(255, 248, 236, .12); color: rgba(255, 248, 236, .55); font-size: .72rem; }
.site-footer .photo-credits summary { font-weight: 400; color: rgba(255, 248, 236, .6); }
.site-footer .photo-credits a { color: inherit; }
/* Credits beside "Hecho en Madrid" (review, 6 Oct). */
@media (min-width: 760px) {
 .site-footer .footer-inner { grid-template-areas: "brand nav" "motto nav" "email social" "made credits"; }
 .site-footer .photo-credits { justify-self: end; text-align: right; border-top: 0; padding-top: 0; align-self: center; }
 .site-footer .photo-credits summary { margin-left: auto; }
 .site-footer .photo-credits[open] { text-align: left; }
}
/* Left column stays compact: logo, motto, email, socials stacked (6 Oct). */
@media (min-width: 760px) {
 .site-footer .footer-inner { grid-template-areas: "brand nav" "motto nav" "email nav" "social nav" "made credits"; grid-template-rows: auto auto auto 1fr auto; row-gap: 12px; align-items: start; }
 .site-footer .footer-brand, .site-footer .motto, .site-footer .footer-email, .site-footer .footer-social { align-self: start; margin: 0; }
 .site-footer .footer-made, .site-footer .photo-credits { margin-top: 18px; }
}
