.rc-site-footer {
  --footer-accent: var(--a11y-link, #75edff);
  --footer-line: var(--a11y-border, #286371);
  --footer-divider: var(--a11y-border, #346b76);
  --footer-ink: var(--a11y-fg, #f5f3fa);
  --footer-muted: var(--a11y-fg, #bdb9c7);
  --footer-social-size: clamp(35px, 3.5cqw, 42px);
  container: rc-footer / inline-size;
  background: radial-gradient(ellipse at 0% 90%, #102a32, transparent 58%), #070b0d;
  color: var(--footer-ink);
  font: 1rem/normal "ASUR Manrope", system-ui, sans-serif;
  text-align: start;
  scroll-margin-block-start: 5.25rem;
}

.rc-site-footer::before {
  content: "";
  display: block;
  block-size: 3px;
  background: var(--a11y-border, linear-gradient(90deg, #ff4d54, #007fff));
}

.rc-site-footer .rc-footer-shell {
  --footer-max-width: 1280px;
  --footer-padding-inline: clamp(16px, 4.25cqw, 58px);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(26px, 4cqw, 48px);
  width: min(100%, var(--footer-max-width));
  min-height: 348px;
  margin-inline: auto;
  padding: clamp(26px, 4.3cqw, 57px) var(--footer-padding-inline) 13px;
  /* Keep links clear of the page's fixed accessibility and scroll controls. */
  padding-inline-end: max(var(--footer-padding-inline), calc(
    80px / var(--portfolio-accessibility-scale, 1) - max(0px, (100cqw - var(--footer-max-width)) / 2)
  ));
}

.rc-site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "brand projects contact" "brand social social";
  gap: clamp(17px, 2.6cqw, 32px) clamp(14px, 2.65cqw, 39px);
  align-items: start;
}

.rc-site-footer .footer-main > * { min-width: 0; }
.rc-site-footer :is(.footer-links, .footer-socials) { margin: 0; padding: 0; list-style: none; }
.rc-site-footer :is(.footer-links, .footer-socials) > li { list-style: none; }

.rc-site-footer .footer-brand {
  grid-area: brand;
  align-self: stretch;
  padding-inline-end: clamp(11px, 2.7cqw, 30px);
  border-inline-end: 1px solid var(--footer-divider);
}

.rc-site-footer .footer-logo { display: inline-flex; max-width: 100%; }
.rc-site-footer .footer-logo img { display: block; width: clamp(100px, 14cqw, 152px); max-width: 100%; height: auto; }

.rc-site-footer .footer-bio {
  max-width: 40ch;
  margin: 13px 0 0;
  color: var(--footer-muted);
  font-size: clamp(.8rem, 1.23cqw, .95rem);
  line-height: 1.64;
}

.rc-site-footer .footer-heading {
  margin: 0 0 .86em;
  color: var(--footer-accent);
  font: 650 clamp(.98rem, 1.66cqw, 1.27rem)/1.2 "ASUR Outfit", system-ui, sans-serif;
  letter-spacing: -.025em;
}

.rc-site-footer .footer-projects { grid-area: projects; }
.rc-site-footer .footer-links { display: grid; gap: 4px; }

.rc-site-footer a { text-decoration: none; }

.rc-site-footer .footer-links a {
  display: inline-flex;
  align-items: first baseline;
  gap: 8px;
  max-width: 100%;
  min-height: 25px;
  padding: 3px 0;
  color: var(--footer-muted);
  font-size: clamp(.77rem, 1.18cqw, .92rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-underline-offset: .23em;
}

.rc-site-footer .footer-links a::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  align-self: flex-start;
  margin: .45em .1em 0 .11em;
  border: solid var(--footer-accent);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

.rc-site-footer .footer-links a:hover { color: var(--footer-ink); text-decoration: underline; }
.rc-site-footer .footer-contact { grid-area: contact; }

.rc-site-footer .footer-contact :is(.footer-email, .footer-phone) {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  color: var(--footer-ink);
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}

.rc-site-footer .footer-contact-value {
  font-size: clamp(.8rem, 1.22cqw, .98rem);
  font-weight: 720;
  line-height: 1.36;
}

.rc-site-footer .footer-contact :is(.footer-email, .footer-phone):hover .footer-contact-value {
  color: var(--footer-accent);
  text-decoration: underline;
}

.rc-site-footer .footer-contact-label {
  display: block;
  margin-bottom: 3px;
  color: var(--footer-muted);
  font-size: clamp(.68rem, 1cqw, .76rem);
  font-weight: 700;
  line-height: 1.35;
}

.rc-site-footer .footer-social {
  grid-area: social;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 16px;
  padding-top: 11px;
  border-top: 1px solid var(--footer-divider);
}

.rc-site-footer .footer-social .footer-heading { margin: 0; }
.rc-site-footer .footer-social .footer-links-page {
  color: var(--footer-accent);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.rc-site-footer .footer-socials { display: flex; flex-wrap: wrap; gap: 7px; }
.rc-site-footer .footer-socials li { --network: #aa93fd; }
.rc-site-footer .footer-socials li:nth-child(3n+2) { --network: #86eaff; }
.rc-site-footer .footer-socials li:nth-child(3n) { --network: #ff87ba; }

.rc-site-footer .footer-socials a {
  box-sizing: border-box;
  display: grid;
  width: var(--footer-social-size);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--a11y-border, color-mix(in srgb, var(--network) 68%, #262233));
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #201f33 25%, #1d1a2c 65%, #29243c);
  color: var(--a11y-link, var(--network));
  font-size: calc(var(--footer-social-size) * .38);
  line-height: 1;
}

.rc-site-footer .footer-socials a:hover {
  border-color: currentColor;
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 30%, transparent);
}

.rc-site-footer a:focus-visible { outline: 2px solid var(--a11y-focus, var(--footer-accent)); outline-offset: 3px; }

.rc-site-footer .footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  min-height: 47px;
  padding-top: 8px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: clamp(.69rem, 1.1cqw, .82rem);
}

.rc-site-footer .footer-base p { margin: 0; color: inherit; font-size: inherit; line-height: 1.4; }
.rc-site-footer .footer-up {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--footer-accent);
  font-weight: 750;
}
.rc-site-footer .footer-up span { font-size: 1.1rem; line-height: 1; }
.rc-site-footer .footer-up:hover { text-decoration: underline; text-underline-offset: .25em; }

body:is(.a11y-grayscale, .a11y-light) .rc-site-footer .footer-logo img {
  padding: 4px;
  border-radius: 4px;
  background-color: #292b37;
}

@media (forced-colors: active) {
  .rc-site-footer::before {
    background: CanvasText;
    forced-color-adjust: none;
  }

  .rc-site-footer .footer-logo img {
    background-color: #292b37;
    forced-color-adjust: none;
  }
}

@container rc-footer (max-width: 760px) {
  .rc-site-footer .rc-footer-shell { --footer-social-size: 38px; min-height: 0; padding-top: 20px; }
  .rc-site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" "projects contact" "social social";
    gap: 23px 16px;
  }
  .rc-site-footer .footer-brand {
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid var(--footer-divider);
  }
}

@container rc-footer (max-width: 480px) {
  .rc-site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "projects" "contact" "social";
    gap: 23px;
  }
  .rc-site-footer .footer-links a { min-height: 31px; }
  .rc-site-footer .footer-up { min-height: 39px; }
}
